File tree Expand file tree Collapse file tree 1 file changed +6
-19
lines changed
Expand file tree Collapse file tree 1 file changed +6
-19
lines changed Original file line number Diff line number Diff line change 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)
2423BASEDIR=$( dirname " $0 " )
2524cd " $BASEDIR "
2625
2726BINDIR=" ."
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
4129run_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
5341echo Performing a quick sanity check...
54- echo " Testing using binaries from: $BINDIR "
5542
5643mkdir -p actual
5744rm -f actual/*
You can’t perform that action at this time.
0 commit comments