[MOAB-dev] r3766 - MOAB/trunk/test/io

iulian at mcs.anl.gov iulian at mcs.anl.gov
Mon Apr 12 10:32:32 CDT 2010


Author: iulian
Date: 2010-04-12 10:32:32 -0500 (Mon, 12 Apr 2010)
New Revision: 3766

Added:
   MOAB/trunk/test/io/smf_test.cc
   MOAB/trunk/test/io/three.smf
Modified:
   MOAB/trunk/test/io/Makefile.am
Log:
add smf reader test


Modified: MOAB/trunk/test/io/Makefile.am
===================================================================
--- MOAB/trunk/test/io/Makefile.am	2010-04-10 15:28:22 UTC (rev 3765)
+++ MOAB/trunk/test/io/Makefile.am	2010-04-12 15:32:32 UTC (rev 3766)
@@ -30,7 +30,8 @@
 	$(EXODUS_TEST) \
         gmsh_test \
 	nastran_test \
-        stl_test 
+        stl_test \
+        smf_test
 
 check_PROGRAMS = $(TESTS)
 
@@ -62,5 +63,8 @@
 stl_test_SOURCES = $(srcdir)/../TestUtil.hpp stl_test.cc
 stl_test_DEPENDENCIES = $(LDADD)
 
+smf_test_SOURCES = $(srcdir)/../TestUtil.hpp smf_test.cc
+smf_test_DEPENDENCIES = $(LDADD)
+
 MOSTLYCLEANFILES = dumped_acis.sat 
 

Added: MOAB/trunk/test/io/smf_test.cc
===================================================================
--- MOAB/trunk/test/io/smf_test.cc	                        (rev 0)
+++ MOAB/trunk/test/io/smf_test.cc	2010-04-12 15:32:32 UTC (rev 3766)
@@ -0,0 +1,122 @@
+#include "TestUtil.hpp"
+#include "moab/Core.hpp"
+#define IS_BUILDING_MB
+#include "ReadSmf.hpp"
+#include "moab/Range.hpp"
+#include "FileOptions.hpp"
+
+using namespace moab;
+
+#ifdef SRCDIR
+static const char example[] = STRINGIFY(SRCDIR) "/three.smf";
+#else
+static const char example[] = "three.smf";
+#endif
+
+void read_file( Interface& moab, const char* input_file );
+void test_read_nodes();
+void test_read_triangles();
+
+int main()
+{
+  int result = 0;


More information about the moab-dev mailing list