Skip to content

Commit 3392477

Browse files
committed
Automatically execute tests
1 parent fda7a0f commit 3392477

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/tests/loadtxt/Makefile.manual

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ LDFLAGS = -L../.. -lstdlib
99

1010
OBJS = $(PROGS_SRC:.f90=.o)
1111
PROGS = $(OBJS:.o=)
12+
TESTPROGS = $(PROGS:=TEST)
1213

1314

1415

15-
.PHONY: all clean test
16+
.PHONY: all clean test $(TESTPROGS)
1617

1718
all: $(PROGS)
1819

1920
$(PROGS): %: %.o
2021
$(FC) $(FFLAGS) $(CPPFLAGS) -o $@ $^ $(LDFLAGS)
2122

22-
test:
23-
./test_loadtxt
24-
./test_loadtxt_qp
25-
./test_savetxt
26-
./test_savetxt_qp
23+
test: $(TESTPROGS)
24+
25+
$(TESTPROGS):
26+
./$(@:TEST=)
2727

2828
clean:
2929
$(RM) $(PROGS) $(OBJS) tmp.dat tmp_qp.dat

0 commit comments

Comments
 (0)