fork of https://github.com/oxigraph/rocksdb and https://github.com/facebook/rocksdb for nextgraph and oxigraph
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
411 B
19 lines
411 B
12 years ago
|
#!/bin/bash
|
||
|
#A shell script for Jenknis to run valgrind on rocksdb tests
|
||
|
#Returns 0 on success when there are no failed tests
|
||
|
|
||
|
VALGRIND_DIR=VALGRIND_LOGS
|
||
|
make valgrind_check
|
||
|
NUM_FAILED_TESTS=`wc -l $VALGRIND_DIR/valgrind_failed_tests | awk '{print $1}'`
|
||
|
if [ $NUM_FAILED_TESTS -le '1' ]; then
|
||
|
{
|
||
|
echo No tests have valgrind errors;
|
||
|
exit 0;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
cat $VALGRIND_DIR/valgrind_failed_tests;
|
||
|
exit 1;
|
||
|
}
|
||
|
fi
|