@@ -389,21 +389,22 @@ release: clean $(TARGET) |
| 389 | 389 | @echo "Release build complete! Binary size: $$(du -h $(TARGET) | cut -f1)" |
| 390 | 390 | |
| 391 | 391 | # Test suite targets |
| 392 | +FORTSH_ABS = $(CURDIR)/$(TARGET) |
| 392 | 393 | |
| 393 | 394 | # POSIX compliance: single canonical test script (fastest) |
| 394 | 395 | test-posix: $(TARGET) |
| 395 | 396 | @echo "Running POSIX compliance tests..." |
| 396 | | - FORTSH_BIN=$(TARGET) ./tests/posix_compliance_test.sh |
| 397 | + FORTSH_BIN=$(FORTSH_ABS) ./tests/posix_compliance_test.sh |
| 397 | 398 | |
| 398 | 399 | # Full POSIX suite: all shell-based POSIX test scripts via the comprehensive runner |
| 399 | 400 | test-posix-full: $(TARGET) |
| 400 | 401 | @echo "Running full POSIX compliance test suite..." |
| 401 | | - FORTSH_BIN=$(TARGET) ./tests/run_all_tests.sh --posix-only |
| 402 | + FORTSH_BIN=$(FORTSH_ABS) ./tests/run_all_tests.sh --posix-only |
| 402 | 403 | |
| 403 | 404 | # Quick POSIX suite: skip slow coverage/untested suites |
| 404 | 405 | test-posix-quick: $(TARGET) |
| 405 | 406 | @echo "Running quick POSIX compliance tests..." |
| 406 | | - FORTSH_BIN=$(TARGET) ./tests/run_all_tests.sh --posix-only --quick |
| 407 | + FORTSH_BIN=$(FORTSH_ABS) ./tests/run_all_tests.sh --posix-only --quick |
| 407 | 408 | |
| 408 | 409 | # Interactive PTY tests (requires Python venv with pexpect) |
| 409 | 410 | test-interactive: $(TARGET) |
@@ -425,12 +426,12 @@ test-interactive: $(TARGET) |
| 425 | 426 | # Full test run: POSIX + interactive (no memory rebuild) |
| 426 | 427 | test-full: $(TARGET) |
| 427 | 428 | @echo "Running full test suite (POSIX + interactive)..." |
| 428 | | - FORTSH_BIN=$(TARGET) ./tests/run_all_tests.sh --full |
| 429 | + FORTSH_BIN=$(FORTSH_ABS) ./tests/run_all_tests.sh --full |
| 429 | 430 | |
| 430 | 431 | # Everything including memory pool tests (SLOW: rebuilds fortsh) |
| 431 | 432 | test-all: $(TARGET) |
| 432 | 433 | @echo "Running all test suites..." |
| 433 | | - FORTSH_BIN=$(TARGET) ./tests/run_all_tests.sh --all |
| 434 | + FORTSH_BIN=$(FORTSH_ABS) ./tests/run_all_tests.sh --all |
| 434 | 435 | |
| 435 | 436 | # Help target |
| 436 | 437 | help: |