Skip to content

Commit 2e19abc

Browse files
andy5995claude
andcommitted
tests: fix ctest path in build scripts
The scripts cd into build/ before running make, so --test-dir build resolved to build/build/. Drop --test-dir and let ctest run in the current directory instead. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 53d978e commit 2e19abc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

mk/linux/build-mg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ else
377377

378378
if [ $RUN_TESTS = 1 ]; then
379379
echo "==================> Running unit tests... <=================================="
380-
ctest --test-dir build --output-on-failure
380+
ctest --output-on-failure
381381
if [ $? -ne 0 ]; then
382382
echo 'ERROR: Tests failed.' >&2; exit 3
383383
fi

mk/macos/build-mg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ else
269269

270270
if [ "$RUN_TESTS" -eq "1" ]; then
271271
echo "==================> Running unit tests... <=================================="
272-
ctest --test-dir build --output-on-failure
272+
ctest --output-on-failure
273273
if [ "$?" -ne "0" ]; then echo 'ERROR: Tests failed.' >&2; exit 3; fi
274274
fi
275275
fi

0 commit comments

Comments
 (0)