mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 07:30:54 +00:00
9f3a66a936
Summary: Fixed - Added timeouts for crash tests. They take around 9hrs. - Added oncall so we can get notifications for timeout etc. - Fixed a bug in the valgrind script - Cosmetic fix Test Plan: Manual run Reviewers: sdong igor CC: leveldb@ Task ID: #6968635 Blame Rev:
21 lines
517 B
Bash
Executable file
21 lines
517 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=build_tools/VALGRIND_LOGS
|
|
make clean
|
|
make -j$(nproc) valgrind_check
|
|
if [ $? -ne 0 ]; then
|
|
cat $VALGRIND_DIR/valgrind_failed_tests
|
|
exit 1
|
|
fi
|
|
|
|
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
|