Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

SelfTest: refresh makefile

Commit
000e746415912ecaa6e87a59d4c4a7b7e1660a05
Author
Andy Sawyer ·
Parents
341a9c444313

Files · Download .tar.gz

Changes

 projects/SelfTest/makefile | 31 ++++++++++++++++++-------------
 1 file changed, 18 insertions(+), 13 deletions(-)

diff --git a/projects/SelfTest/makefile b/projects/SelfTest/makefile
index e5dec0dc..458b3dea 100644
--- a/projects/SelfTest/makefile
+++ b/projects/SelfTest/makefile
@@ -1,15 +1,16 @@
-SOURCES =	ApproxTests.cpp \
-			ClassTests.cpp \
-			ConditionTests.cpp \
-      		ExceptionTests.cpp \
-      		GeneratorTests.cpp \
-      		MessageTests.cpp \
-      		MiscTests.cpp \
-      		TestMain.cpp \
-      		TrickyTests.cpp \
-      		BDDTests.cpp \
-      		VariadicMacrosTests.cpp \
-      		catch_self_test.cpp
+SOURCES = ApproxTests.cpp \
+          ClassTests.cpp \
+          ConditionTests.cpp \
+          ExceptionTests.cpp \
+          GeneratorTests.cpp \
+          MessageTests.cpp \
+          MiscTests.cpp \
+          TestMain.cpp \
+          TrickyTests.cpp \
+          BDDTests.cpp \
+          VariadicMacrosTests.cpp
+
+
 OBJECTS    = $(patsubst %.cpp, %.o, $(SOURCES))
 CXX = g++
 CXXFLAGS  = -I../../include
@@ -17,5 +18,9 @@ CXXFLAGS  = -I../../include
 CatchSelfTest: $(OBJECTS)
 	$(CXX) -o $@ $^
 
+test: CatchSelfTest
+	./CatchSelfTest
+
 clean:
-	rm -f $(OBJECTS)
+	rm -f $(OBJECTS) CatchSelfTest
+