@@ -132,7 +132,7 @@ jobs:
132132 if : true && !contains(github.event.inputs.skiptests, 'unittest')
133133 run : |
134134 if [ -f ./src/unit/valkey-unit-gtests ]; then
135- ./src/unit/valkey -unit-gtests -- accurate
135+ make test -unit accurate=1
136136 elif [ -f ./src/valkey-unit-tests ]; then
137137 ./src/valkey-unit-tests --accurate
138138 fi
@@ -218,7 +218,7 @@ jobs:
218218 if : true && !contains(github.event.inputs.skiptests, 'unittest')
219219 run : |
220220 if [ -f ./src/unit/valkey-unit-gtests ]; then
221- ./src/unit/valkey -unit-gtests -- accurate
221+ make test -unit accurate=1
222222 elif [ -f ./src/valkey-unit-tests ]; then
223223 ./src/valkey-unit-tests --accurate
224224 fi
@@ -283,7 +283,7 @@ jobs:
283283 if : true && !contains(github.event.inputs.skiptests, 'unittest')
284284 run : |
285285 if [ -f ./src/unit/valkey-unit-gtests ]; then
286- ./src/unit/valkey -unit-gtests -- accurate
286+ make test -unit accurate=1
287287 elif [ -f ./src/valkey-unit-tests ]; then
288288 ./src/valkey-unit-tests --accurate
289289 fi
@@ -464,7 +464,9 @@ jobs:
464464 if : true && !contains(github.event.inputs.skiptests, 'unittest')
465465 run : |
466466 if [ -f ./src/unit/valkey-unit-gtests ]; then
467- ./src/unit/valkey-unit-gtests --accurate
467+ make test-unit accurate=1 \
468+ GTEST_CFLAGS="-I/usr/src/googletest/googletest/include -I/usr/src/googletest/googlemock/include" \
469+ GTEST_LIBS="/usr/lib32/libgtest.a /usr/lib32/libgmock.a"
468470 elif [ -f ./src/valkey-unit-tests ]; then
469471 ./src/valkey-unit-tests --accurate
470472 fi
@@ -843,8 +845,8 @@ jobs:
843845 if : true && !contains(github.event.inputs.skiptests, 'unittest')
844846 run : |
845847 if [ -f ./src/unit/valkey-unit-gtests ]; then
846- valgrind --track-origins=yes --suppressions=./src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full --log-file=err.txt ./src/unit/valkey-unit-gtests --valgrind
847- if grep -q 0x err.txt; then cat err.txt; exit 1; fi
848+ ./deps/gtest-parallel/gtest-parallel valgrind -- -- track-origins=yes --suppressions=./src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full --log-file=err.%p .txt ./src/unit/valkey-unit-gtests --valgrind
849+ if grep -qlE '0x[0-9A-Fa-f]+:' err.*. txt 2>/dev/null ; then grep -lE '0x[0-9A-Fa-f]+:' err.*. txt | xargs cat ; exit 1; fi
848850 elif [ -f ./src/valkey-unit-tests ]; then
849851 valgrind --track-origins=yes --suppressions=./src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full --log-file=err.txt ./src/valkey-unit-tests --valgrind
850852 if grep -q 0x err.txt; then cat err.txt; exit 1; fi
@@ -931,8 +933,8 @@ jobs:
931933 if : true && !contains(github.event.inputs.skiptests, 'unittest')
932934 run : |
933935 if [ -f ./src/unit/valkey-unit-gtests ]; then
934- valgrind --track-origins=yes --suppressions=./src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full --log-file=err.txt ./src/unit/valkey-unit-gtests --valgrind
935- if grep -q 0x err.txt; then cat err.txt; exit 1; fi
936+ ./deps/gtest-parallel/gtest-parallel valgrind -- -- track-origins=yes --suppressions=./src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full --log-file=err.%p .txt ./src/unit/valkey-unit-gtests --valgrind
937+ if grep -qlE '0x[0-9A-Fa-f]+:' err.*. txt 2>/dev/null ; then grep -lE '0x[0-9A-Fa-f]+:' err.*. txt | xargs cat ; exit 1; fi
936938 elif [ -f ./src/valkey-unit-tests ]; then
937939 valgrind --track-origins=yes --suppressions=./src/valgrind.sup --show-reachable=no --show-possibly-lost=no --leak-check=full --log-file=err.txt ./src/valkey-unit-tests --valgrind
938940 if grep -q 0x err.txt; then cat err.txt; exit 1; fi
@@ -996,7 +998,7 @@ jobs:
996998 if : true && !contains(github.event.inputs.skiptests, 'unittest')
997999 run : |
9981000 if [ -f ./src/unit/valkey-unit-gtests ]; then
999- ./src/unit/valkey -unit-gtests
1001+ make test -unit
10001002 elif [ -f ./src/valkey-unit-tests ]; then
10011003 ./src/valkey-unit-tests
10021004 fi
@@ -1055,7 +1057,7 @@ jobs:
10551057 if : true && !contains(github.event.inputs.skiptests, 'unittest')
10561058 run : |
10571059 if [ -f ./src/unit/valkey-unit-gtests ]; then
1058- ./src/unit/valkey -unit-gtests --large-memory
1060+ make test -unit large_memory=1
10591061 elif [ -f ./src/valkey-unit-tests ]; then
10601062 ./src/valkey-unit-tests --large-memory
10611063 fi
@@ -1134,7 +1136,7 @@ jobs:
11341136 if : true && !contains(github.event.inputs.skiptests, 'unittest')
11351137 run : |
11361138 if [ -f ./src/unit/valkey-unit-gtests ]; then
1137- ./src/unit/valkey -unit-gtests -- accurate
1139+ make test -unit accurate=1
11381140 elif [ -f ./src/valkey-unit-tests ]; then
11391141 ./src/valkey-unit-tests --accurate
11401142 fi
@@ -1193,7 +1195,7 @@ jobs:
11931195 if : true && !contains(github.event.inputs.skiptests, 'unittest')
11941196 run : |
11951197 if [ -f ./src/unit/valkey-unit-gtests ]; then
1196- ./src/unit/valkey -unit-gtests -- accurate --large-memory
1198+ make test -unit accurate=1 large_memory=1
11971199 elif [ -f ./src/valkey-unit-tests ]; then
11981200 ./src/valkey-unit-tests --accurate --large-memory
11991201 fi
@@ -1268,7 +1270,7 @@ jobs:
12681270 if : true && !contains(github.event.inputs.skiptests, 'unittest')
12691271 run : |
12701272 if [ -f ./src/unit/valkey-unit-gtests ]; then
1271- ./src/unit/valkey -unit-gtests
1273+ make test -unit
12721274 elif [ -f ./src/valkey-unit-tests ]; then
12731275 ./src/valkey-unit-tests
12741276 fi
0 commit comments