25 #include "grins_config.h"
27 #ifdef GRINS_HAVE_CPPUNIT
29 #include <libmesh/ignore_warnings.h>
30 #include <cppunit/extensions/HelperMacros.h>
31 #include <cppunit/TestCase.h>
32 #include <libmesh/restore_warnings.h>
36 #include "grins_test_paths.h"
43 #include <libmesh/ignore_warnings.h>
67 std::string filename = std::string(GRINS_TEST_UNIT_INPUT_SRCDIR)+
"/default_bc_builder.in";
71 std::set<std::string> sections;
75 CPPUNIT_ASSERT_EQUAL(4,(
int)sections.size());
76 CPPUNIT_ASSERT( sections.find(
"Velocity") != sections.end() );
77 CPPUNIT_ASSERT( sections.find(
"Pressure") != sections.end() );
78 CPPUNIT_ASSERT( sections.find(
"Temperature") != sections.end() );
79 CPPUNIT_ASSERT( sections.find(
"SpeciesMassFractions") != sections.end() );
87 #endif // GRINS_HAVE_CPPUNIT
CPPUNIT_TEST_SUITE_REGISTRATION(AntiochAirNASA9ThermoTest)
void setup_multiphysics_system(const std::string &filename)
CPPUNIT_TEST(test_parse_var_sections)
This class contains common functions used by various Builders throughout GRINS.
Helper class for setting up basic GRINS::MultiphysicsSystem for unit testing.
void test_parse_var_sections()
CPPUNIT_TEST_SUITE(BuilderHelperTest)
libMesh::UniquePtr< GetPot > _input
static void parse_var_sections(const GetPot &input, std::set< std::string > §ions)
Parses the input file for [Variables] first-level subsections.