From 27ff3923e11b3724908dbe073160e5542c92376e Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 21 Jul 2015 01:42:48 +0100 Subject: Switch to run rule for capturing output, undate paths in tests --- project2/ice/unittests/Jamfile.jam | 24 ++++++++++++++++-------- project2/ice/unittests/testClient.cpp | 1 - project2/ice/unittests/testClientCompile.cpp | 2 +- project2/ice/unittests/testDaemon.cpp | 1 - project2/ice/unittests/testDaemonCompile.cpp | 2 +- 5 files changed, 18 insertions(+), 12 deletions(-) diff --git a/project2/ice/unittests/Jamfile.jam b/project2/ice/unittests/Jamfile.jam index 8e83b1c..4c9f94a 100644 --- a/project2/ice/unittests/Jamfile.jam +++ b/project2/ice/unittests/Jamfile.jam @@ -39,9 +39,9 @@ lib unittestr : path-constant me : . ; -unit-test testClientCompile : +run [ glob testClientCompile.cpp ] - : + : : : ROOT=\"$(me)\" unittest.ice unittest @@ -53,11 +53,13 @@ unit-test testClientCompile : ..//IceUtil ..//boost_filesystem testClient.xml + : + testClientCompile : ; -unit-test testClient : +run [ glob testClient.cpp ] - : + : : : ROOT=\"$(me)\" unittest.ice unittestr @@ -71,11 +73,13 @@ unit-test testClient : ..//IceUtil ..//boost_filesystem testClient.xml + : + testClient : ; -unit-test testDaemonCompile : +run [ glob testDaemonCompile.cpp ] - : + : : : ROOT=\"$(me)\" unittest.ice unittest @@ -86,11 +90,13 @@ unit-test testDaemonCompile : ..//Ice ..//IceUtil ..//boost_filesystem + : + testDaemonCompile : ; -unit-test testDaemon : +run [ glob testDaemon.cpp ] - : + : : : ROOT=\"$(me)\" unittest.ice unittestr @@ -111,5 +117,7 @@ unit-test testDaemon : views/UnitTest/SimpleInterface/SomeRowsParams.xml views/UnitTestComplex/ComplexInterface/ComplexRow.xml tasks/UnitTestComplex/ComplexInterface/ComplexParam.xml + : + testDaemon : ; diff --git a/project2/ice/unittests/testClient.cpp b/project2/ice/unittests/testClient.cpp index 55663a0..87ec04f 100644 --- a/project2/ice/unittests/testClient.cpp +++ b/project2/ice/unittests/testClient.cpp @@ -18,7 +18,6 @@ #define XSTR(s) STR(s) #define STR(s) #s const auto bindir = boost::filesystem::canonical("/proc/self/exe").parent_path(); -const auto componentdir = bindir.parent_path() / "component"; const boost::filesystem::path iceroot(XSTR(ROOT)); const auto headers = iceroot.parent_path().parent_path(); diff --git a/project2/ice/unittests/testClientCompile.cpp b/project2/ice/unittests/testClientCompile.cpp index ef4b0ea..5369884 100644 --- a/project2/ice/unittests/testClientCompile.cpp +++ b/project2/ice/unittests/testClientCompile.cpp @@ -13,8 +13,8 @@ #define XSTR(s) STR(s) #define STR(s) #s const auto bindir = boost::filesystem::canonical("/proc/self/exe").parent_path(); -const auto componentdir = bindir.parent_path() / "component"; const boost::filesystem::path iceroot(XSTR(ROOT)); +const auto componentdir = iceroot / "bin" / bindir.parent_path().leaf() / "component"; const auto headers = iceroot.parent_path().parent_path(); static diff --git a/project2/ice/unittests/testDaemon.cpp b/project2/ice/unittests/testDaemon.cpp index 4015f4a..f12935d 100644 --- a/project2/ice/unittests/testDaemon.cpp +++ b/project2/ice/unittests/testDaemon.cpp @@ -13,7 +13,6 @@ #define XSTR(s) STR(s) #define STR(s) #s const auto bindir = boost::filesystem::canonical("/proc/self/exe").parent_path(); -const auto componentdir = bindir.parent_path() / "component"; const boost::filesystem::path iceroot(XSTR(ROOT)); const auto headers = iceroot.parent_path().parent_path(); diff --git a/project2/ice/unittests/testDaemonCompile.cpp b/project2/ice/unittests/testDaemonCompile.cpp index d93dbf0..95fb6f2 100644 --- a/project2/ice/unittests/testDaemonCompile.cpp +++ b/project2/ice/unittests/testDaemonCompile.cpp @@ -9,8 +9,8 @@ #define XSTR(s) STR(s) #define STR(s) #s const auto bindir = boost::filesystem::canonical("/proc/self/exe").parent_path(); -const auto componentdir = bindir.parent_path() / "component"; const boost::filesystem::path iceroot(XSTR(ROOT)); +const auto componentdir = iceroot / "bin" / bindir.parent_path().leaf() / "component"; const auto headers = iceroot.parent_path().parent_path(); static -- cgit v1.2.3