diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-07-20 23:26:02 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-07-20 23:26:02 +0100 |
commit | ce46b82d0323fc54c387fb2e3c8c6f1813834189 (patch) | |
tree | b496a0baed998294f69653a294d006882cb69e33 | |
parent | The slicer feature should not be propergated, it's library specific whether i... (diff) | |
download | slicer-ce46b82d0323fc54c387fb2e3c8c6f1813834189.tar.bz2 slicer-ce46b82d0323fc54c387fb2e3c8c6f1813834189.tar.xz slicer-ce46b82d0323fc54c387fb2e3c8c6f1813834189.zip |
Switch to run rule for capturing output, undate paths in tests
-rw-r--r-- | slicer/test/Jamfile.jam | 24 | ||||
-rw-r--r-- | slicer/test/fileStructure.cpp | 8 |
2 files changed, 21 insertions, 11 deletions
diff --git a/slicer/test/Jamfile.jam b/slicer/test/Jamfile.jam index cd3a8eb..aac9662 100644 --- a/slicer/test/Jamfile.jam +++ b/slicer/test/Jamfile.jam @@ -24,6 +24,8 @@ lib types : <library>included//included ; +path-constant me : . ; + lib common : helpers.cpp conversions.cpp @@ -36,6 +38,7 @@ lib common : <library>boost_filesystem <library>boost_utf <implicit-dependency>types + <define>ROOT=\"$(me)\" : : <library>types <library>boost_filesystem @@ -46,20 +49,20 @@ lib common : <implicit-dependency>types ; -unit-test preprocess : - preprocessor.cpp - : +run preprocessor.cpp + : : : <linkflags>-rdynamic <library>dl <library>common <include>.. <library>../slicer//slicer <dependency>../tool//slicer + : + preprocess ; -unit-test compilation : - compilation.cpp - : +run compilation.cpp + : : : <include>.. <library>../slicer//slicer <library>types @@ -68,11 +71,12 @@ unit-test compilation : <library>common <include>.. <library>../slicer//slicer + : + compilation ; -unit-test serializers : - serializers.cpp - : +run serializers.cpp + : : : <dependency>preprocess <library>slicer-test <library>common @@ -80,5 +84,7 @@ unit-test serializers : <library>../slicer//slicer <library>../xml//slicer-xml <library>../json//slicer-json + : + serializers ; diff --git a/slicer/test/fileStructure.cpp b/slicer/test/fileStructure.cpp index 7152e7b..0d27ce1 100644 --- a/slicer/test/fileStructure.cpp +++ b/slicer/test/fileStructure.cpp @@ -2,11 +2,15 @@ #include <boost/test/unit_test.hpp> #include <boost/filesystem/convenience.hpp> +#define XSTR(s) STR(s) +#define STR(s) #s +const boost::filesystem::path root(XSTR(ROOT)); + FileStructure::FileStructure() : me(boost::filesystem::canonical("/proc/self/exe")), base("types"), - bjamout(me.parent_path().parent_path().parent_path().leaf() / me.parent_path().parent_path().leaf() / me.parent_path().leaf()), - root(me.parent_path().parent_path().parent_path().parent_path()), + bjamout("bin" / me.parent_path().parent_path().leaf() / me.parent_path().leaf()), + root(::root), included(root / "included"), slice(fs::change_extension(root / base, ".ice")), tmp(root / "bin" / "slicer") |