Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Now it builds.
authoronesphore <ndayishimiye.o@husky.neu.edu>
Thu, 21 Jun 2018 09:47:03 +0000 (11:47 +0200)
committeronesphore <ndayishimiye.o@husky.neu.edu>
Thu, 21 Jun 2018 09:47:03 +0000 (11:47 +0200)
src/mc/snapshot/unitTest/PageStore_unit_BOOST.cpp
src/mc/snapshot/unitTest/mc_snapshot_unit_BOOST.cpp
tools/cmake/Tests.cmake

index ab92c0d..a1ec5cc 100644 (file)
@@ -26,7 +26,7 @@ TODO: comment
 
 #include <memory>
 
 
 #include <memory>
 
-#include "/home/onesphore/simgrid/src/mc/PageStore.hpp"
+#include "src/mc/PageStore.hpp"
 
 static int value = 0;
 
 
 static int value = 0;
 
index c07260f..e64472c 100644 (file)
@@ -22,10 +22,10 @@ TODO: comment
 
 #include <sys/mman.h>
 
 
 #include <sys/mman.h>
 
-#include "simgrid/src/mc/mc_config.hpp"
-#include "simgrid/src/mc/mc_mmu.hpp"
-#include "simgrid/src/mc/mc_private.hpp"
-#include "simgrid/src/mc/mc_snapshot.hpp"
+#include "src/mc/mc_config.hpp"
+#include "src/mc/mc_mmu.hpp"
+#include "src/mc/mc_private.hpp"
+#include "src/mc/mc_snapshot.hpp"
 
 
 static inline void init_memory(void* mem, size_t size)
 
 
 static inline void init_memory(void* mem, size_t size)
index 3604f8e..2e86d12 100644 (file)
@@ -100,16 +100,16 @@ if(Boost_UNIT_TEST_FRAMEWORK_FOUND)
     APPEND PROPERTY
            INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}"
           )
     APPEND PROPERTY
            INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}"
           )
-  add_executable       (unit_snapshot src/mc/snapshot/unitTest/mc_snapshot_unit_BOOST.cpp)
-  # add_library(boost_unit_test_framework SHARED IMPORTED)
-  # set_target_properties(boost_unit_test_framework PROPERTIES IMPORTED_LOCATION ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY})
-  target_link_libraries(unit_snapshot simgrid boost_unit_test_framework)
-  ADD_TEST(unit_snapshot ${CMAKE_BINARY_DIR}/unit_tmgr --build_info=yes)
-  set_property(
-    TARGET unit_snapshot
-    APPEND PROPERTY
-           INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}"
-          )
+  if (SIMGRID_HAVE_MC)
+    add_executable       (unit_snapshot src/mc/snapshot/unitTest/mc_snapshot_unit_BOOST.cpp)
+    target_link_libraries(unit_snapshot simgrid boost_unit_test_framework)
+    ADD_TEST(unit_snapshot ${CMAKE_BINARY_DIR}/unit_snapshot --build_info=yes)
+    set_property(
+      TARGET unit_snapshot
+      APPEND PROPERTY
+             INCLUDE_DIRECTORIES "${INTERNAL_INCLUDES}"
+            )
+  endif()
 
 
 else()
 
 
 else()