2d7378a676de2db887a2dac2bdd59766990200d4
1 /********************* */
2 /*! \file configuration_black.h
4 ** Original author: Morgan Deters
5 ** Major contributors: none
6 ** Minor contributors (to current version): none
7 ** This file is part of the CVC4 project.
8 ** Copyright (c) 2009-2014 New York University and The University of Iowa
9 ** See the file COPYING in the top-level source directory for licensing
10 ** information.\endverbatim
12 ** \brief Black box testing of CVC4::Configuration.
14 ** Black box testing of CVC4::Configuration.
17 #include <cxxtest/TestSuite.h>
19 #include "util/configuration.h"
24 class ConfigurationBlack
: public CxxTest::TestSuite
{
28 void testStaticFlags() {
32 #else /* CVC4_DEBUG */
34 #endif /* CVC4_DEBUG */
39 #else /* CVC4_TRACING */
41 #endif /* CVC4_TRACING */
46 #else /* CVC4_MUZZLE */
48 #endif /* CVC4_MUZZLE */
50 const bool assertions
=
51 #ifdef CVC4_ASSERTIONS
53 #else /* CVC4_ASSERTIONS */
55 #endif /* CVC4_ASSERTIONS */
60 #else /* CVC4_COVERAGE */
62 #endif /* CVC4_COVERAGE */
64 const bool profiling
=
67 #else /* CVC4_PROFILING */
69 #endif /* CVC4_PROFILING */
71 TS_ASSERT( Configuration::isDebugBuild() == debug
);
72 TS_ASSERT( Configuration::isTracingBuild() == tracing
);
73 TS_ASSERT( Configuration::isMuzzledBuild() == muzzled
);
74 TS_ASSERT( Configuration::isAssertionBuild() == assertions
);
75 TS_ASSERT( Configuration::isCoverageBuild() == coverage
);
76 TS_ASSERT( Configuration::isProfilingBuild() == profiling
);
79 void testPackageName() {
80 TS_ASSERT( Configuration::getPackageName() == "cvc4" );
84 // just test that the functions exist
85 Configuration::getVersionString();
86 Configuration::getVersionMajor();
87 Configuration::getVersionMinor();
88 Configuration::getVersionRelease();
92 // just test that the function exists
93 Configuration::about();