-
All classes now derive from GBase. ostream and GLog friends are removed since they are now implement at the GBase level.
-
On Mac OS X using the Apple gcc compiler, we need to include gomp_thread_attr in case we want OpenMP support. Some code has been added to the configure script to detect this specific need, and only if this specific need is met the variable HAVE_OPENMP_DARWIN_KLUGE is defined in config.h. We use then this varaible to include (or not) the following sequence: #ifdef HAVE_OPENMP_DARWIN_KLUGE #include <pthread.h> pthread_attr_t gomp_thread_attr; #endif
-
Added a test_value() method for integer comparisons that automatically informs about the mismatches. This increases the readability of the test results.
-
So far the classes have a GLog member. The output using GLog is however not satisfactory, hence we switched to std::cout. This should be okay, but maybe someday we want to clean the logger.
-
To conform to the former test output, we remove printing of the test suite header to the logger.
-
The Python code was removed as this required a linking of GammaLib with the Python library, which we want to avoid. Linking to Python should only be required by the Python wrappers. As we created a specific Python test suite GPythonTestSuite for Python unit tests, we can make GTestSuite abstract again, which is cleaner.
-
As Python version < 3 does not support abstract base classes, we had to make GTestSuite abstract so that we can derive a test suite in Python. A special append method was added to the Python interface that takes a PyObject as argument. The PyObject pointer is stored in a void array of pointers that is kept along with the function pointers. For a C++ function, the Python pointers are NULL. For a Python function, the C++ pointers are NULL. The run method checks then whether a C++ pointer or a Python pointer exists, and performs the adequat run command.
-
The run method now runs directly the test functions, instead of using the test case class for this.
-
…at derivates from GTestSuite.
-
Add a message for assertion tests