Skip to content

Commit

Permalink
Specify test scripts with path
Browse files Browse the repository at this point in the history
We used to specify test scripts by their basename in src/Makefile.
It caused an issue when there's a file with the same name under src/
or lib/.
  • Loading branch information
shirok committed Dec 28, 2024
1 parent bbf12b4 commit df1c534
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ test : gosh$(EXEEXT) test-vmstack$(EXEEXT) test-arith$(EXEEXT) test-extra$(EXEEX
@for testfile in $(TESTFILES); do \
GAUCHE_TEST_RECORD_FILE=$(TESTRECORD) \
top_srcdir=$(top_srcdir) \
./gosh -ftest -I$(top_srcdir)/test $$testfile >> test.log; \
./gosh -ftest -I$(top_srcdir)/test $(top_srcdir)/test/$$testfile >> test.log; \
done
@GAUCHE_TEST_RECORD_FILE=$(TESTRECORD) \
top_srcdir=$(top_srcdir) \
Expand All @@ -498,7 +498,7 @@ test2 : gosh$(EXEEXT)
GAUCHE_TEST_RECORD_FILE=$(TESTRECORD) \
top_srcdir=$(top_srcdir) \
top_builddir=$(top_builddir) \
./gosh -ftest -I$(top_srcdir)/test $$testfile >> test.log; \
./gosh -ftest -I$(top_srcdir)/test $(top_srcdir)/test/$$testfile >> test.log; \
done

# test-summary-check is called at the end of all tests and set up exit status.
Expand Down

0 comments on commit df1c534

Please sign in to comment.