diff options
author | Max Horn | 2006-03-29 10:35:45 +0000 |
---|---|---|
committer | Max Horn | 2006-03-29 10:35:45 +0000 |
commit | b1514bb833339526b53e9638bffa5eb214fae8ef (patch) | |
tree | 26f084bb3f5a38039446d26962891b3df6d712bb /test | |
parent | ebeaa6a5c10101cab91bc151d69a6f31eed6b819 (diff) | |
download | scummvm-rg350-b1514bb833339526b53e9638bffa5eb214fae8ef.tar.gz scummvm-rg350-b1514bb833339526b53e9638bffa5eb214fae8ef.tar.bz2 scummvm-rg350-b1514bb833339526b53e9638bffa5eb214fae8ef.zip |
Added a minimal README for our unit tests, and moved their build rule to a new test/module.mk file
svn-id: r21490
Diffstat (limited to 'test')
-rw-r--r-- | test/README | 5 | ||||
-rw-r--r-- | test/module.mk | 17 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/README b/test/README new file mode 100644 index 0000000000..eadb0f1080 --- /dev/null +++ b/test/README @@ -0,0 +1,5 @@ +This directory contains some unit tests for ScummVM. They are based on +CxxTest <http://cxxtest.sourceforge.net/>, which you can find in the cxxtest +subdirectory, including its manual. + +To run the unit tests, simply use "make test".
\ No newline at end of file diff --git a/test/module.mk b/test/module.mk new file mode 100644 index 0000000000..f5cd40f117 --- /dev/null +++ b/test/module.mk @@ -0,0 +1,17 @@ +###################################################################### +# Unit/regression tests, based on CxxTest. +# Use the 'test' target to run them. +# Edit 'TESTS' to add more tests. +###################################################################### + +CXXTEST := test/cxxtest +TESTS := test/common/*.h +CPPFLAGS += -I$(CXXTEST) +test: runner + ./runner +runner: runner.o common/libcommon.a + $(CXX) -o $@ $+ +runner.cpp: $(TESTS) + $(CXXTEST)/cxxtestgen.py --error-printer -o $@ $+ + +.PHONY: test |