add_definitions( -DWNT )
ENDIF()
-SET( CPPUNIT_INCLUDES $ENV{CPPUNIT_ROOT}/include )
+SET( CPPUNIT_INCLUDES $ENV{cppUNIT_ROOT}/include )
SET( CAS_INCLUDES $ENV{CASROOT}/inc )
SET( QT_INCLUDES $ENV{QTDIR}/include $ENV{QTDIR}/include/QtCore $ENV{QTDIR}/include/QtGui $ENV{QTDIR}/include/QtTest )
SET( KERNEL_INCLUDES $ENV{KERNEL_ROOT_DIR}/include/salome )
SET( QT_LIBRARIES QtCore QtGui QtTest )
ENDIF()
-link_directories( $ENV{CPPUNIT_ROOT}/lib )
+link_directories( $ENV{cppUNIT_ROOT}/lib )
IF( ${WIN32} )
SET( CPPUNIT_LIBRARIES cppunitd )
ELSE()
IF( ${WIN32} )
add_custom_command( TARGET HYDROData_tests POST_BUILD COMMAND $(TargetPath) COMMENT "Running tests" )
ENDIF()
+
+INSTALL(TARGETS HYDROData_tests EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})
#include <BRep_Builder.hxx>
#include <BRepCheck_Analyzer.hxx>
-const QString REF_DATA_PATH = qgetenv( "HYDRO_REFERENCE_DATA" );
-const QString DEF_STR_PATH = qgetenv( "HYDRO_SRC_DIR" ) + "/src/HYDROGUI/resources/def_strickler_table.txt";
+#define _DEVDEBUG_
+#include "HYDRO_trace.hxx"
+
+//const QString REF_DATA_PATH = qgetenv( "HYDRO_REFERENCE_DATA" );
+const QString REF_DATA_PATH = qgetenv( "HYDRO_DIR" ) + "/../../src/HYDRO/src/HYDRO_tests/reference_data";
+const QString DEF_STR_PATH = qgetenv( "HYDRO_DIR" ) + "/../../src/HYDRO/src/HYDROGUI/resources/def_strickler_table.txt";
void test_HYDROData_LandCoverMap::test_add_2_objects()
{
{
QString aFFileName = REF_DATA_PATH + "/CLC06-cut_1.shp";
QString aSFileName = REF_DATA_PATH + "/CLC06-cut_1_res.shp";
+
//This test verify only some geom data (shp+shx) without any dbf reading/writing
{
+ DEBTRACE("aFFileName: " << aFFileName.toStdString());
+ DEBTRACE("aSFileName: " << aSFileName.toStdString());
Handle(HYDROData_Document) aDoc = HYDROData_Document::Document(1);
HYDROData_ShapeFile anImporter;
QStringList PolygonList;
TopTools_SequenceOfShape PolygonFaces;
int Type = -1;
+ DEBTRACE("---");
//import LCM from file (#2-4; #12-14 polygons)
CPPUNIT_ASSERT( anImporter.ImportPolygons(aDoc, aFFileName, PolygonList, PolygonFaces, Type));
aMapFace2ST.Add( TopoDS::Face( PolygonFaces(12) ), "" );
aMapFace2ST.Add( TopoDS::Face( PolygonFaces(13) ), "" );
aMapFace2ST.Add( TopoDS::Face( PolygonFaces(14) ), "" );
+ DEBTRACE("---");
LCM->StoreLandCovers(aMapFace2ST);
LCM->SetName("lcm_1");
QStringList aNonExpList;
anExporter.Export(aSFileName, LCM, aNonExpList);
CPPUNIT_ASSERT (aNonExpList.empty());
+ DEBTRACE("---");
aDoc->Close();
}