Fixed unit tests build for platforms libbe_test and r5. Only randomly tested
a few whether they actually work. New pseudo target "unittests", which builds all unit tests for the currently set TARGET_PLATFORM. They are placed in generated/tests/<platform>/unittests. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14791 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
SubDir HAIKU_TOP src tests kernel core util ;
|
||||
|
||||
SetSubDirSupportedPlatformsBeOSCompatible ;
|
||||
AddSubDirSupportedPlatforms libbe_test ;
|
||||
|
||||
UsePrivateHeaders [ FDirName kernel util ] ;
|
||||
UsePrivateHeaders [ FDirName kernel ] ;
|
||||
UseHeaders [ FDirName $(HAIKU_TOP) src tests kits app ] ;
|
||||
|
||||
# Two versions of the test lib are not really needed until
|
||||
# we start linking to Be libraries, but it doesn't hurt...
|
||||
CommonTestLib libkernelutilstest.so
|
||||
UnitTestLib libkernelutilstest.so
|
||||
: KernelUtilsTestAddon.cpp
|
||||
# AVLTreeMapTest.cpp
|
||||
SinglyLinkedListTest.cpp
|
||||
@@ -14,9 +17,6 @@ CommonTestLib libkernelutilstest.so
|
||||
VectorMapTest.cpp
|
||||
VectorSetTest.cpp
|
||||
VectorTest.cpp
|
||||
: stdc++.r4
|
||||
: stdc++.r4
|
||||
:
|
||||
:
|
||||
: $(TARGET_LIBSTDC++)
|
||||
;
|
||||
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
#include <TestSuite.h>
|
||||
#include <TestSuiteAddon.h>
|
||||
//#include <AVLTreeMapTest.h>
|
||||
#include <SinglyLinkedListTest.h>
|
||||
#include <DoublyLinkedListTest.h>
|
||||
#include <VectorMapTest.h>
|
||||
#include <VectorSetTest.h>
|
||||
#include <VectorTest.h>
|
||||
|
||||
//#include "AVLTreeMapTest.h"
|
||||
#include "SinglyLinkedListTest.h"
|
||||
#include "DoublyLinkedListTest.h"
|
||||
#include "VectorMapTest.h"
|
||||
#include "VectorSetTest.h"
|
||||
#include "VectorTest.h"
|
||||
|
||||
|
||||
BTestSuite* getTestSuite() {
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#include <SinglyLinkedListTest.h>
|
||||
#include <cppunit/Test.h>
|
||||
#include <cppunit/TestCaller.h>
|
||||
#include <cppunit/TestSuite.h>
|
||||
#include <stdio.h>
|
||||
#include <TestUtils.h>
|
||||
|
||||
#include "SinglyLinkedListTest.h"
|
||||
#include "SinglyLinkedList.h"
|
||||
|
||||
SinglyLinkedListTest::SinglyLinkedListTest(std::string name)
|
||||
|
||||
Reference in New Issue
Block a user