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.
16 lines
440 B
16 lines
440 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
|
||
|
|
||
12 years ago
|
VALGRIND_DIR=build_tools/VALGRIND_LOGS
|
||
12 years ago
|
make clean
|
||
12 years ago
|
make -j$(nproc) valgrind_check
|
||
12 years ago
|
NUM_FAILED_TESTS=$((`wc -l $VALGRIND_DIR/valgrind_failed_tests | awk '{print $1}'` - 1))
|
||
12 years ago
|
if [ $NUM_FAILED_TESTS -lt 1 ]; then
|
||
12 years ago
|
echo No tests have valgrind errors
|
||
|
exit 0
|
||
12 years ago
|
else
|
||
12 years ago
|
cat $VALGRIND_DIR/valgrind_failed_tests
|
||
|
exit 1
|
||
12 years ago
|
fi
|