diff options
author | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-10-10 20:14:04 +0000 |
---|---|---|
committer | arseny.kapoulkine <arseny.kapoulkine@99668b35-9821-0410-8761-19e4c4f06640> | 2009-10-10 20:14:04 +0000 |
commit | 52aa5325f333d263f9845b9f182350c5e0194cc3 (patch) | |
tree | 57024ef3ea203212279bc341b05c4011b50f6822 /Jamfile.jam | |
parent | 78eddacef534e450735598dc960a25c41baf4e36 (diff) |
Initial test building support along with a stub test file
git-svn-id: http://pugixml.googlecode.com/svn/trunk@138 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'Jamfile.jam')
-rw-r--r-- | Jamfile.jam | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Jamfile.jam b/Jamfile.jam new file mode 100644 index 0000000..bebeae5 --- /dev/null +++ b/Jamfile.jam @@ -0,0 +1,18 @@ +# Latest jamplus is needed to use this
+# Targets:
+# pugixml - build pugixml library
+# tests - build pugixml test suite
+# run_tests - run pugixml test suite
+# coverage - get test suite coverage
+
+include "Jamrules.jam" ;
+
+BUILD = build/mingw/debug ;
+CCFLAGS = -fprofile-arcs -ftest-coverage ;
+LDFLAGS = -fprofile-arcs ;
+GCOVFLAGS = -n ;
+
+Library pugixml : src/pugixml.cpp src/pugixpath.cpp ;
+Application tests : tests/main.cpp : pugixml ;
+Test run_tests : tests ;
+Coverage coverage : run_tests ;
|