Skip to content

Commit 3384a18

Browse files
committed
Revert run-tests.sh to only support Makefile-based local builds
1 parent 459385d commit 3384a18

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

test-high/run-tests.sh

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,26 @@
1919
# For additional information about the PCG random number generation scheme,
2020
# visit http://www.pcg-random.org/.
2121
#
22-
# Determine where the executables are
23-
# Priority: Current Dir -> ../build/test-high/Debug -> ../build/test-high/Release -> ../build/test-high
22+
# Determine where the executables are (standard Makefile behavior)
2423
BASEDIR=$(dirname "$0")
2524
cd "$BASEDIR"
2625

2726
BINDIR="."
28-
if [ ! -f "./check-pcg32" ] && [ ! -f "./check-pcg32.exe" ]; then
29-
if [ -f "../build/test-high/Debug/check-pcg32.exe" ]; then
30-
BINDIR="../build/test-high/Debug"
31-
elif [ -f "../build/test-high/Release/check-pcg32.exe" ]; then
32-
BINDIR="../build/test-high/Release"
33-
elif [ -f "../build/test-high/check-pcg32.exe" ]; then
34-
BINDIR="../build/test-high"
35-
elif [ -f "../build/test-high/check-pcg32" ]; then
36-
BINDIR="../build/test-high"
37-
fi
38-
fi
3927

4028
# Function to run a test, handling potential .exe extension
4129
run_test() {
4230
TEST_NAME=$1
43-
if [ -f "$BINDIR/$TEST_NAME.exe" ]; then
44-
"$BINDIR/$TEST_NAME.exe"
45-
elif [ -f "$BINDIR/$TEST_NAME" ]; then
46-
"$BINDIR/$TEST_NAME"
31+
if [ -f "./$TEST_NAME.exe" ]; then
32+
"./$TEST_NAME.exe"
33+
elif [ -f "./$TEST_NAME" ]; then
34+
"./$TEST_NAME"
4735
else
48-
echo "ERROR: $TEST_NAME not found in $BINDIR" >&2
36+
echo "ERROR: $TEST_NAME not found in $PWD" >&2
4937
return 1
5038
fi
5139
}
5240

5341
echo Performing a quick sanity check...
54-
echo "Testing using binaries from: $BINDIR"
5542

5643
mkdir -p actual
5744
rm -f actual/*

0 commit comments

Comments
 (0)