Skip to content
Snippets Groups Projects
Commit ecbc3a21 authored by Brian Carrier's avatar Brian Carrier
Browse files

Applied changes from Benson for unit test build

parent ecfbc6ef
No related branches found
No related tags found
No related merge requests found
...@@ -72,6 +72,18 @@ need to be in your PATH if you want to run the TSK commands without ...@@ -72,6 +72,18 @@ need to be in your PATH if you want to run the TSK commands without
specifying '/usr/local/bin' everytime. specifying '/usr/local/bin' everytime.
If you get an error like:
libtool: Version mismatch error. This is libtool 2.2.10, but the
libtool: definition of this LT_INIT comes from libtool 2.2.4.
libtool: You should recreate aclocal.m4 with macros from libtool 2.2.10
libtool: and run autoconf again.
Run:
./bootstrap
and then go back to running configure and make.
CONFIGURE OPTIONS CONFIGURE OPTIONS
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
There are some arguments to 'configure' that you can supply to There are some arguments to 'configure' that you can supply to
...@@ -92,6 +104,10 @@ if it is installed. ...@@ -92,6 +104,10 @@ if it is installed.
the libewf installation (the directory should have 'lib' and 'include' the libewf installation (the directory should have 'lib' and 'include'
directories in it). directories in it).
-----------------------------------------------------------------------------
If you are compiling
----------------------------------------------------------------------------- -----------------------------------------------------------------------------
Brian Carrier Brian Carrier
carrier <at> sleuthkit <dot> org carrier <at> sleuthkit <dot> org
# dummy
# dummy
...@@ -3,7 +3,7 @@ LDADD = ../../tsk3/libtsk3.la $(CPPUNIT_LIBS) ...@@ -3,7 +3,7 @@ LDADD = ../../tsk3/libtsk3.la $(CPPUNIT_LIBS)
LDFLAGS = -static LDFLAGS = -static
noinst_PROGRAMS = test_base noinst_PROGRAMS = test_base
test_base_SOURCES= test_base.cpp errors_test.cpp test_base_SOURCES= test_base.cpp errors_test.cpp errors_test.h
indent: indent:
indent *.cpp *.h indent *.cpp *.h
......
/*
* errors_test.h
*
* Created on: Oct 22, 2010
* Author: benson
*/
#ifndef ERRORS_TEST_H_
#define ERRORS_TEST_H_
#include <cppunit/extensions/HelperMacros.h>
class ErrorsTest : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE( ErrorsTest );
CPPUNIT_TEST(testInitialState);
CPPUNIT_TEST(testLengthChecks);
#ifdef HAVE_PTHREAD
CPPUNIT_TEST(testMultithreaded);
#endif
CPPUNIT_TEST_SUITE_END();
public:
void setUp();
void tearDown();
void testConstructor();
void testInitialState();
void testLengthChecks();
#ifdef HAVE_PTHREAD
void testMultithreaded();
#endif
};
#endif /* ERRORS_TEST_H_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment