Redis Server started in Tests now shutdowns at end of tests (#61)

Redis Server started in tests now shutdowns at end of tests.
This commit is contained in:
Wapaul1
2016-11-23 21:47:53 -08:00
committed by Robert Nishihara
parent 8147b62964
commit 800bf8deb3
+4
View File
@@ -49,8 +49,11 @@ test: hiredis redis $(BUILD)/common_tests $(BUILD)/task_table_tests $(BUILD)/obj
./build/redis_tests
./build/task_table_tests
./build/object_table_tests
./thirdparty/redis/src/redis-cli shutdown
valgrind: test
./thirdparty/redis/src/redis-server &
sleep 1s
valgrind --leak-check=full --error-exitcode=1 ./build/common_tests
valgrind --leak-check=full --error-exitcode=1 ./build/db_tests
valgrind --leak-check=full --error-exitcode=1 ./build/io_tests
@@ -58,5 +61,6 @@ valgrind: test
valgrind --leak-check=full --error-exitcode=1 ./build/redis_tests
valgrind --leak-check=full --error-exitcode=1 ./build/task_table_tests
valgrind --leak-check=full --error-exitcode=1 ./build/object_table_tests
./thirdparty/redis/src/redis-cli shutdown
FORCE: