title: How to launch cppunit test?
body: <p>I am trying to run cppunit for the first time but I get following error. I have already installed but I think there is a problem with the <strong>cppunit-config</strong>  Anyone has an idea how to fix this?
  I have seen a report bug on nebeans but I don't know how to run cppunit-config from terminal?</p>
  
  <p><a href="https://netbeans.org/bugzilla/show_bug.cgi?id=230617" rel="nofollow">https://netbeans.org/bugzilla/show_bug.cgi?id=230617</a></p>
  
  <pre><code>"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
  "/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/GNU-MacOSX/exercise1
  make[2]: `dist/Debug/GNU-MacOSX/exercise1' is up to date.
  "/usr/bin/make" -f nbproject/Makefile-Debug.mk SUBPROJECTS= .build-tests-conf
  "/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/GNU-MacOSX/exercise1
  make[2]: `dist/Debug/GNU-MacOSX/exercise1' is up to date.
  mkdir -p build/Debug/GNU-MacOSX/tests/TestFiles
  g++       -o build/Debug/GNU-MacOSX/tests/TestFiles/f1 build/Debug/GNU-MacOSX/tests/tests/newtestclass.o build/Debug/GNU-MacOSX/tests/tests/newtestrunner.o build/Debug/GNU-MacOSX/main_nomain.o  `cppunit-config --libs`   
  /bin/sh: cppunit-config: command not found
  Undefined symbols for architecture x86_64:
    "CppUnit::TestResult::addListener(CppUnit::TestListener*)", referenced from:
        _main in newtestrunner.o
    "CppUnit::TestResult::TestResult(CppUnit::SynchronizedObject::SynchronizationObject*)", referenced from:
        _main in newtestrunner.o
    "CppUnit::TestResult::~TestResult()", referenced from:
        _main in newtestrunner.o
    "CppUnit::TestRunner::run(CppUnit::TestResult&amp;, std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;)", referenced from:
        _main in newtestrunner.o
    "CppUnit::TestRunner::addTest(CppUnit::Test*)", referenced from:
        _main in newtestrunner.o
    "CppUnit::TestRunner::TestRunner()", referenced from:
        _main in newtestrunner.o
    "CppUnit::TestRunner::~TestRunner()", referenced from:
        _main in newtestrunner.o
    "CppUnit::CompilerOutputter::write()", referenced from:
        _main in newtestrunner.o
    "CppUnit::CompilerOutputter::CompilerOutputter(CppUnit::TestResultCollector*, std::basic_ostream&lt;char, std::char_traits&lt;char&gt; &gt;&amp;, std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;)", referenced from:
        _main in newtestrunner.o
    "CppUnit::CompilerOutputter::~CompilerOutputter()", referenced from:
        _main in newtestrunner.o
    "CppUnit::TestFactoryRegistry::getRegistry(std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;)", referenced from:
        CppUnit::AutoRegisterSuite&lt;newtestclass&gt;::AutoRegisterSuite()in newtestclass.o
        _main in newtestrunner.o
    "CppUnit::TestFactoryRegistry::registerFactory(CppUnit::TestFactory*)", referenced from:
        CppUnit::AutoRegisterSuite&lt;newtestclass&gt;::AutoRegisterSuite()in newtestclass.o
    "CppUnit::TestFactoryRegistry::unregisterFactory(CppUnit::TestFactory*)", referenced from:
        CppUnit::AutoRegisterSuite&lt;newtestclass&gt;::~AutoRegisterSuite()in newtestclass.o
    "CppUnit::TestFactoryRegistry::isValid()", referenced from:
        CppUnit::AutoRegisterSuite&lt;newtestclass&gt;::~AutoRegisterSuite()in newtestclass.o
    "CppUnit::TestResultCollector::TestResultCollector(CppUnit::SynchronizedObject::SynchronizationObject*)", referenced from:
        _main in newtestrunner.o
    "CppUnit::TestResultCollector::~TestResultCollector()", referenced from:
        _main in newtestrunner.o
    "CppUnit::BriefTestProgressListener::BriefTestProgressListener()", referenced from:
        _main in newtestrunner.o
    "CppUnit::BriefTestProgressListener::~BriefTestProgressListener()", referenced from:
        _main in newtestrunner.o
    "CppUnit::TestSuiteBuilderContextBase::addTest(CppUnit::Test*)", referenced from:
        newtestclass::addTestsToSuite(CppUnit::TestSuiteBuilderContextBase&amp;)         in newtestclass.o
    "CppUnit::TestSuiteBuilderContextBase::TestSuiteBuilderContextBase(CppUnit::TestSuite&amp;, CppUnit::TestNamer const&amp;, CppUnit::TestFixtureFactory&amp;)", referenced from:
        newtestclass::suite()      in newtestclass.o
    "CppUnit::TestSuiteBuilderContextBase::~TestSuiteBuilderContextBase()", referenced from:
        newtestclass::suite()      in newtestclass.o
    "CppUnit::TestSuiteBuilderContextBase::~TestSuiteBuilderContextBase()", referenced from:
        CppUnit::TestSuiteBuilderContext&lt;newtestclass&gt;::~TestSuiteBuilderContext()in newtestclass.o
        CppUnit::TestSuiteBuilderContext&lt;newtestclass&gt;::~TestSuiteBuilderContext()in newtestclass.o
    "CppUnit::TestCase::run(CppUnit::TestResult*)", referenced from:
        vtable for CppUnit::TestCaller&lt;newtestclass&gt;in newtestclass.o
    "CppUnit::TestCase::TestCase(std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;)", referenced from:
        CppUnit::TestCaller&lt;newtestclass&gt;::TestCaller(std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;, void (newtestclass::*)(), newtestclass*)in newtestclass.o
    "CppUnit::TestCase::~TestCase()", referenced from:
        CppUnit::TestCaller&lt;newtestclass&gt;::~TestCaller()in newtestclass.o
        CppUnit::TestCaller&lt;newtestclass&gt;::~TestCaller()in newtestclass.o
    "CppUnit::TestNamer::TestNamer(std::type_info const&amp;)", referenced from:
        newtestclass::getTestNamer__()       in newtestclass.o
    "CppUnit::TestNamer::~TestNamer()", referenced from:
        ___tcf_0 in newtestclass.o
    "CppUnit::TestSuite::TestSuite(std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt;)", referenced from:
        newtestclass::suite()      in newtestclass.o
    "CppUnit::TestSuccessListener::wasSuccessful() const", referenced from:
        _main in newtestrunner.o
    "CppUnit::TestSuiteBuilderContextBase::getTestNameFor(std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;) const", referenced from:
        newtestclass::addTestsToSuite(CppUnit::TestSuiteBuilderContextBase&amp;)         in newtestclass.o
    "CppUnit::TestSuiteBuilderContextBase::makeTestFixture() const", referenced from:
        CppUnit::TestSuiteBuilderContext&lt;newtestclass&gt;::makeFixture() const   in newtestclass.o
    "CppUnit::Test::findTestPath(CppUnit::Test const*, CppUnit::TestPath&amp;) const", referenced from:
        vtable for CppUnit::TestCaller&lt;newtestclass&gt;in newtestclass.o
    "CppUnit::Test::findTestPath(std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;, CppUnit::TestPath&amp;) const", referenced from:
        vtable for CppUnit::TestCaller&lt;newtestclass&gt;in newtestclass.o
    "CppUnit::Test::getChildTestAt(int) const", referenced from:
        vtable for CppUnit::TestCaller&lt;newtestclass&gt;in newtestclass.o
    "CppUnit::Test::resolveTestPath(std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;) const", referenced from:
        vtable for CppUnit::TestCaller&lt;newtestclass&gt;in newtestclass.o
    "CppUnit::Test::checkIsValidIndex(int) const", referenced from:
        vtable for CppUnit::TestCaller&lt;newtestclass&gt;in newtestclass.o
    "CppUnit::Test::findTest(std::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; const&amp;) const", referenced from:
        vtable for CppUnit::TestCaller&lt;newtestclass&gt;in newtestclass.o
    "CppUnit::TestCase::getName() const", referenced from:
        vtable for CppUnit::TestCaller&lt;newtestclass&gt;in newtestclass.o
    "CppUnit::TestLeaf::countTestCases() const", referenced from:
        vtable for CppUnit::TestCaller&lt;newtestclass&gt;in newtestclass.o
    "CppUnit::TestLeaf::doGetChildTestAt(int) const", referenced from:
        vtable for CppUnit::TestCaller&lt;newtestclass&gt;in newtestclass.o
    "CppUnit::TestLeaf::getChildTestCount() const", referenced from:
        vtable for CppUnit::TestCaller&lt;newtestclass&gt;in newtestclass.o
    "typeinfo for CppUnit::TestSuiteBuilderContextBase", referenced from:
        typeinfo for CppUnit::TestSuiteBuilderContext&lt;newtestclass&gt;in newtestclass.o
    "typeinfo for CppUnit::TestCase", referenced from:
        typeinfo for CppUnit::TestCaller&lt;newtestclass&gt;in newtestclass.o
    "vtable for CppUnit::TestSuiteBuilderContextBase", referenced from:
        CppUnit::TestSuiteBuilderContextBase::TestSuiteBuilderContextBase(CppUnit::TestSuiteBuilderContextBase const&amp;)in newtestclass.o
    NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
  ld: symbol(s) not found for architecture x86_64
  collect2: ld returned 1 exit status
  make[1]: *** [build/Debug/GNU-MacOSX/tests/TestFiles/f1] Error 1
  make: *** [.build-tests-impl] Error 2
  
  
  BUILD TESTS FAILED (exit value 2, total time: 236ms)
  </code></pre>