From 3ef31230a61ce74e2ae8bb116f7b4e338dd69ae6 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 17 Nov 2013 11:11:45 +1100 Subject: Switch unit tests to Catch framework. --- test/unit/test.mak | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 test/unit/test.mak (limited to 'test/unit/test.mak') diff --git a/test/unit/test.mak b/test/unit/test.mak new file mode 100644 index 000000000..07562e664 --- /dev/null +++ b/test/unit/test.mak @@ -0,0 +1,27 @@ +# Build all the unit tests with Microsoft Visual C++ using nmake +# Tested with Visual C++ 2010 and 2013 + +DEL = del /q +EXE = unitTest.exe + +INCLUDEDIRS = /I../../include /I../../src /I../../lexlib + +CXXFLAGS = /EHsc /wd 4805 $(INCLUDEDIRS) + +# Files in this directory containing tests +TESTSRC=test*.cxx +# Files being tested from scintilla/src directory +TESTEDSRC=../../src/ContractionState.cxx ../../src/RunStyles.cxx ../../src/CharClassify.cxx + +TESTS=$(EXE) + +all: $(TESTS) + +test: $(TESTS) + $(EXE) + +clean: + $(DEL) $(TESTS) *.o *.obj *.exe + +$(EXE): $(TESTSRC) $(TESTEDSRC) $(@B).obj + $(CXX) $(CXXFLAGS) /Fe$@ $** -- cgit v1.2.3