]> SALOME platform Git repositories - modules/med.git/commitdiff
Salome HOME
Add missing test_environment for tests
authorana <ana@opencascade.com>
Tue, 13 May 2014 11:48:46 +0000 (15:48 +0400)
committerana <ana@opencascade.com>
Tue, 13 May 2014 11:48:46 +0000 (15:48 +0400)
src/MEDCalculator/Test/CMakeLists.txt
src/MEDCoupling/Test/CMakeLists.txt
src/MEDLoader/Test/CMakeLists.txt

index e94d12e608ff6f322ae2df41ccef6195835ecf0b..ab0344350d997cf372a1da692a1404564ed9fc1c 100644 (file)
@@ -42,5 +42,7 @@ SET(TestMEDCalculator_SOURCES
 ADD_EXECUTABLE(TestMEDCalculator ${TestMEDCalculator_SOURCES})
 TARGET_LINK_LIBRARIES(TestMEDCalculator medcalculatorspython medcalculator ${CPPUNIT_LIBRARIES} ${PLATFORM_LIBRARIES})
 ADD_TEST(TestMEDCalculator TestMEDCalculator)
+SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
+SET_TESTS_PROPERTIES(TestMEDCalculator PROPERTIES ENVIRONMENT "${tests_env}")
 
 INSTALL(TARGETS TestMEDCalculator DESTINATION ${SALOME_INSTALL_BINS})
index 7229ace0e9834298396cfc70bd6877ca469f830c..5f9901bab584674e3b2914e166fb7fbaf1168439 100644 (file)
@@ -54,17 +54,22 @@ SET(TestMEDCouplingExamples_SOURCES
   MEDCouplingBasicsTest0.cxx
   )
 
+SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
+
 ADD_EXECUTABLE(TestMEDCoupling ${TestMEDCoupling_SOURCES})
 TARGET_LINK_LIBRARIES(TestMEDCoupling medcoupling ${CPPUNIT_LIBRARIES} ${PLATFORM_LIBS})
 ADD_TEST(TestMEDCoupling TestMEDCoupling)
+SET_TESTS_PROPERTIES(TestMEDCoupling PROPERTIES ENVIRONMENT "${tests_env}")
 
 ADD_EXECUTABLE(TestMEDCouplingRemapper ${TestMEDCouplingRemapper_SOURCES})
 TARGET_LINK_LIBRARIES(TestMEDCouplingRemapper medcouplingremapper ${CPPUNIT_LIBRARIES} ${PLATFORM_LIBS})
 ADD_TEST(TestMEDCouplingRemapper TestMEDCouplingRemapper)
+SET_TESTS_PROPERTIES(TestMEDCouplingRemapper PROPERTIES ENVIRONMENT "${tests_env}")
 
 ADD_EXECUTABLE(TestMEDCouplingExamples ${TestMEDCouplingExamples_SOURCES})
 TARGET_LINK_LIBRARIES(TestMEDCouplingExamples medcoupling ${CPPUNIT_LIBRARIES} ${PLATFORM_LIBS})
 ADD_TEST(TestMEDCouplingExamples TestMEDCouplingExamples)
+SET_TESTS_PROPERTIES(TestMEDCouplingExamples PROPERTIES ENVIRONMENT "${tests_env}")
 
 INSTALL(TARGETS TestMEDCoupling TestMEDCouplingRemapper TestMEDCouplingExamples DESTINATION ${SALOME_INSTALL_BINS})
 
index f61e4aebdc6f344cedd5fa43ca20cc4a6e1a4ef5..479d925a82d3c44b446024c4237a1e7fab7d0637 100644 (file)
@@ -39,15 +39,17 @@ SET(TestSauvLoader_SOURCES
   SauvLoaderTest.cxx
   )
 
+SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
+
 ADD_EXECUTABLE(TestMEDLoader ${TestMEDLoader_SOURCES})
 TARGET_LINK_LIBRARIES(TestMEDLoader medloader ${CPPUNIT_LIBRARIES} ${PLATFORM_LIBS})
 ADD_TEST(TestMEDLoader TestMEDLoader)
+SET_TESTS_PROPERTIES(TestMEDLoader PROPERTIES ENVIRONMENT "${tests_env}")
 
 ADD_EXECUTABLE(TestSauvLoader ${TestSauvLoader_SOURCES})
 
 TARGET_LINK_LIBRARIES(TestSauvLoader medloader ${CPPUNIT_LIBRARIES} ${PLATFORM_LIBS})
 ADD_TEST(TestSauvLoader TestSauvLoader)
-SALOME_GENERATE_TESTS_ENVIRONMENT(tests_env)
 SET_TESTS_PROPERTIES(TestSauvLoader PROPERTIES ENVIRONMENT "${tests_env}")
 
 INSTALL(TARGETS TestMEDLoader TestSauvLoader DESTINATION ${SALOME_INSTALL_BINS})