summaryrefslogtreecommitdiff
path: root/slicer/test/preprocessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'slicer/test/preprocessor.cpp')
-rw-r--r--slicer/test/preprocessor.cpp46
1 files changed, 0 insertions, 46 deletions
diff --git a/slicer/test/preprocessor.cpp b/slicer/test/preprocessor.cpp
index b715d50..fadbac9 100644
--- a/slicer/test/preprocessor.cpp
+++ b/slicer/test/preprocessor.cpp
@@ -2,12 +2,8 @@
#include <boost/test/unit_test.hpp>
#include <tool/parser.h>
-#include <boost/filesystem/convenience.hpp>
-#include <boost/filesystem/operations.hpp>
#include <boost/format.hpp>
-#include <boost/function.hpp>
#include <buffer.h>
-#include <types.h>
#include "helpers.h"
#include "fileStructure.h"
@@ -63,47 +59,5 @@ BOOST_AUTO_TEST_CASE( slicer_test_counts_interfacesOnly )
BOOST_REQUIRE_EQUAL(0, count);
}
-BOOST_AUTO_TEST_CASE( slicer_test_ice )
-{
- const fs::path cpp = fs::change_extension(tmp / base, ".cpp");
- BOOST_TEST_CHECKPOINT("cpp: " << cpp);
- fs::remove(cpp);
- const std::string doslice = stringbf(
- "%s -I%s --headerPrefix='\"\"' %s %s",
- root.parent_path() / "tool" / bjamout / "slicer",
- included,
- slice, cpp);
- BOOST_TEST_CHECKPOINT("slicer: " << doslice);
- system(doslice);
-
- const fs::path obj = fs::change_extension(tmp / base, ".o");
- const std::string compile = stringbf(
- "g++ -Os -fPIC -c -std=c++1y -fvisibility=hidden -I%s -I tmp -I /usr/include/adhocutil -I /usr/include/Ice -I /usr/include/IceUtil -I %s -I %s -I %s -I %s -I %s %s -o %s",
- root.parent_path() / "slicer",
- root / bjamout,
- root,
- included / bjamout,
- root.parent_path(),
- root.parent_path() / "slicer" / bjamout,
- cpp, obj);
- BOOST_TEST_CHECKPOINT("compile: " << compile);
- system(compile);
-
- const fs::path so = fs::change_extension(tmp / ("libslicer" + slice.filename().string()), ".so");
- const std::string link = stringbf(
- "g++ -shared -Wl,--strip-all,--gc-sections -lboost_date_time -lIce -lIceUtil %s/lib%s.so %s/lib%s.so %s -o %s",
- root / bjamout, base,
- included / bjamout, included.leaf(),
- obj, so);
- BOOST_TEST_CHECKPOINT("link: " << link);
- system(link);
-
- BOOST_TEST_CHECKPOINT("load: " << so);
- auto handle = loadlib(so);
-
- BOOST_TEST_CHECKPOINT("unload: " << handle);
- closelib(handle);
-}
-
BOOST_AUTO_TEST_SUITE_END();