]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
refs #1092: patch for installation folders of test scripts and data
authorasl <asl@opencascade.com>
Wed, 14 Dec 2016 05:55:19 +0000 (08:55 +0300)
committerasl <asl@opencascade.com>
Wed, 14 Dec 2016 05:55:19 +0000 (08:55 +0300)
doc/salome/examples/CMakeLists.txt
src/HYDRO_tests/TestViewer.cxx
src/HYDRO_tests/reference_data/CMakeLists.txt
src/HYDRO_tests/test_HYDROData_CalcCase.cxx
src/HYDRO_tests/test_HYDROData_ShapeFile.cxx

index 5c89302e763cf7bdffe37083f5ca7d0d7bc6a22c..53ebb89e184c07232597176280f17e2e49931762 100644 (file)
@@ -58,8 +58,9 @@ SET(HYDRO_SAMPLES
 
 # Application tests
 
-SET(TEST_INSTALL_DIRECTORY ${SALOME_INSTALL_SCRIPT_SCRIPTS}/test/HYDRO)
-INSTALL(FILES ${EXAMPLES_TESTS} ${HYDRO_SAMPLES} DESTINATION ${TEST_INSTALL_DIRECTORY})
+SET(TEST_INSTALL_DIRECTORY ${SALOME_INSTALL_SCRIPT_SCRIPTS}/test)
+INSTALL(FILES ${EXAMPLES_TESTS} DESTINATION ${TEST_INSTALL_DIRECTORY})
+INSTALL(FILES ${HYDRO_SAMPLES} DESTINATION ${TEST_INSTALL_DIRECTORY}/HYDRO)
 
 INSTALL(FILES CTestTestfileInstall.cmake
         DESTINATION ${TEST_INSTALL_DIRECTORY}
index f48beeac744da81d17d52c15ab3f1d1152567966..ab5e774470ff41b0eb11b6e87a4dc4601ee90b22 100644 (file)
@@ -278,7 +278,7 @@ bool TestViewer::AssertImages( QString& theMessage, const QImage* theImage, cons
   if( theCase )
     myKey = theCase;
 
-  QString anExpectedRefFilePath = qgetenv( "HYDRO_ROOT_DIR" ) + "/bin/salome/test";
+  QString anExpectedRefFilePath = qgetenv( "HYDRO_ROOT_DIR" ) + "/bin/salome/test/HYDRO";
   anExpectedRefFilePath += "/" + myKey + ".png";
   QImage anExpectedRefImage; 
   anExpectedRefImage.load( anExpectedRefFilePath );
@@ -388,7 +388,7 @@ bool TestViewer::areScriptsEqual( const QString& theBaseName,
                                   int theLinesToOmit,
                                   QString& theMsg )
 {
-  QString anExpectedRefFilePath = qgetenv( "HYDRO_ROOT_DIR" ) + "/bin/salome/test";
+  QString anExpectedRefFilePath = qgetenv( "HYDRO_ROOT_DIR" ) + "/bin/salome/test/HYDRO";
   anExpectedRefFilePath += "/" + theBaseName;
   
   QString anActualFilePath = QDir::tempPath() + "/" + theBaseName;
index d315e492bf8d8dbedb9049569c1182de1ee1efce..dedc104ae2953e6c80266f2175cdd9634a2cf739 100644 (file)
@@ -121,5 +121,5 @@ SET(REFERENCE_DATA
 
 # Application tests
 
-SET(TEST_INSTALL_DIRECTORY ${SALOME_INSTALL_BINS}/test)
+SET(TEST_INSTALL_DIRECTORY ${SALOME_INSTALL_BINS}/test/HYDRO)
 INSTALL(FILES ${REFERENCE_DATA} DESTINATION ${TEST_INSTALL_DIRECTORY})
index f0b327fb413e804e6f2ad0c52fc7cae95268d026..1350b9aaaf28841f98f3018bde5a5e254fbd5059 100644 (file)
@@ -35,7 +35,7 @@
 #include <BRepTools.hxx>
 
 
-QString REF_DATA_PATH = qgetenv( "HYDRO_ROOT_DIR" ) + "/bin/salome/test";
+QString REF_DATA_PATH = qgetenv( "HYDRO_ROOT_DIR" ) + "/bin/salome/test/HYDRO";
 
 
 void test_HYDROData_CalcCase::test_add_int_wires()
index 752811948dccf863a0a47f3764804645e97f23c3..b4007ceaab6b03cbaab3386bb72d37b7f12274aa 100644 (file)
@@ -21,7 +21,7 @@
 #include <QStringList>
 #include <vector>
 
-const QString REF_PATH = qgetenv( "HYDRO_ROOT_DIR" ) + "/bin/salome/test";
+const QString REF_PATH = qgetenv( "HYDRO_ROOT_DIR" ) + "/bin/salome/test/HYDRO";
 
 bool test_HYDROData_ShapeFile::compare_two_files(const QString& File1, const QString& File2)
 {