Skip to content

Commit f834ebd

Browse files
committed
Run main.test in the project root directory
1 parent 342e99b commit f834ebd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ $(EXECUTABLE): $(ALLFILES)
2020
.PHONY: tests
2121
tests: $(EXECUTABLE)
2222
cd tests && $(MAKE)
23+
tests/main.test
2324

2425
.PHONY: clean
2526
clean:

tests/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ OBJECTS_NO_MAIN := $(subst $(OBJ_HOME)/main.o,,$(OBJECTS))
55

66
.PHONY: run
77
run: $(TEST_FILE)
8-
./$(TEST_FILE)
8+
99

1010
$(TEST_FILE): ../$(EXECUTABLE) $(TEST_LINK_FILES) $(wildcard *.cpp)
1111
$(CXX) $(CXXFLAGS) $(TEST_INCLUDE) $(wildcard *.cpp) -o $@ $(TEST_LINK_FILES) $(OBJECTS_NO_MAIN) $(LDFLAGS)

0 commit comments

Comments
 (0)