mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-27 02:44:18 +00:00
ae558b5c42
Summary: some changes require make clean to be done before make. auto_roll_Logger_test was failing on valgrind possibly due to this. Test Plan: valgrind ./auto_roll_logger_test Reviewers: sheki Reviewed By: sheki Differential Revision: https://reviews.facebook.net/D10509
16 lines
428 B
Bash
Executable file
16 lines
428 B
Bash
Executable file
#!/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 clean
|
|
make -j$(nproc) valgrind_check
|
|
NUM_FAILED_TESTS=$((`wc -l $VALGRIND_DIR/valgrind_failed_tests | awk '{print $1}'` - 1))
|
|
if [ $NUM_FAILED_TESTS -lt 1 ]; then
|
|
echo No tests have valgrind errors
|
|
exit 0
|
|
else
|
|
cat $VALGRIND_DIR/valgrind_failed_tests
|
|
exit 1
|
|
fi
|