diff --git a/src/tests/kits/Jamfile b/src/tests/kits/Jamfile index 3839c35709..eb611bf836 100644 --- a/src/tests/kits/Jamfile +++ b/src/tests/kits/Jamfile @@ -1,5 +1,11 @@ SubDir OBOS_TOP src tests kits ; SubInclude OBOS_TOP src tests kits app ; +SubInclude OBOS_TOP src tests kits interface ; +SubInclude OBOS_TOP src tests kits media ; +SubInclude OBOS_TOP src tests kits midi ; +SubInclude OBOS_TOP src tests kits net ; SubInclude OBOS_TOP src tests kits storage ; +SubInclude OBOS_TOP src tests kits support ; +SubInclude OBOS_TOP src tests kits translation ; diff --git a/src/tests/kits/interface/Jamfile b/src/tests/kits/interface/Jamfile new file mode 100644 index 0000000000..1631ea8d4c --- /dev/null +++ b/src/tests/kits/interface/Jamfile @@ -0,0 +1,4 @@ +SubDir OBOS_TOP src tests kits interface ; + +SubInclude OBOS_TOP src tests kits interface bprintjob ; + diff --git a/src/tests/kits/interface/bprintjob/Jamfile b/src/tests/kits/interface/bprintjob/Jamfile new file mode 100644 index 0000000000..44bde12831 --- /dev/null +++ b/src/tests/kits/interface/bprintjob/Jamfile @@ -0,0 +1,14 @@ +SubDir OBOS_TOP src tests kits interface bprintjob ; + +SimpleTest print_test + : PrintTestApp.cpp + PrintTestWindow.cpp + PrintTestView.cpp + PrintJob.cpp # Link against the library later. + : root be +; + +# Tell Jam where to find these sources +SEARCH on [ FGristFiles PrintJob.cpp ] + = [ FDirName $(OBOS_TOP) src kits interface ] ; + diff --git a/src/tests/kits/media/Jamfile b/src/tests/kits/media/Jamfile new file mode 100644 index 0000000000..5f580ad41c --- /dev/null +++ b/src/tests/kits/media/Jamfile @@ -0,0 +1,14 @@ +SubDir OBOS_TOP src tests kits media ; + +SimpleTest AreaTest : AreaTest.cpp : be root ; + +SimpleTest BufferTest : BufferTest.cpp : libmedia.so be root ; + +SimpleTest SizeofTest : SizeofTest.cpp : be root ; + +SimpleTest TimedEventQueueTest : TimedEventQueueTest.cpp + : libmedia.so be root ; + + +SubInclude OBOS_TOP src tests kits media nodetest ; + diff --git a/src/tests/kits/media/nodetest/Jamfile b/src/tests/kits/media/nodetest/Jamfile new file mode 100644 index 0000000000..49d7a190d2 --- /dev/null +++ b/src/tests/kits/media/nodetest/Jamfile @@ -0,0 +1,10 @@ +SubDir OBOS_TOP src tests kits media nodetest ; + +SimpleTest NodeTest + : main.cpp + misc.cpp + ConsumerNode.cpp + ProducerNode.cpp + : libmedia.so be root +; + diff --git a/src/tests/kits/midi/Jamfile b/src/tests/kits/midi/Jamfile new file mode 100644 index 0000000000..2facd4d62c --- /dev/null +++ b/src/tests/kits/midi/Jamfile @@ -0,0 +1,8 @@ +SubDir OBOS_TOP src tests kits midi ; + +SimpleTest test1 : test1.cpp : libmidi.so be stdc++.r4 ; + +SubInclude OBOS_TOP src tests kits midi midi_player ; +SubInclude OBOS_TOP src tests kits midi midi_player_replacement ; +SubInclude OBOS_TOP src tests kits midi synth_file_reader ; + diff --git a/src/tests/kits/midi/midi_player/Jamfile b/src/tests/kits/midi/midi_player/Jamfile new file mode 100644 index 0000000000..6eac0f5d68 --- /dev/null +++ b/src/tests/kits/midi/midi_player/Jamfile @@ -0,0 +1,9 @@ +SubDir OBOS_TOP src tests kits midi midi_player ; + +SimpleTest MidiPlayer + : MidiPlayer.cpp + Midi1To2Bridge.cpp + MidiDelay.cpp + : midi midi2 be stdc++.r4 +; + diff --git a/src/tests/kits/midi/midi_player_replacement/Jamfile b/src/tests/kits/midi/midi_player_replacement/Jamfile new file mode 100644 index 0000000000..7fec74b981 --- /dev/null +++ b/src/tests/kits/midi/midi_player_replacement/Jamfile @@ -0,0 +1,17 @@ +SubDir OBOS_TOP src tests kits midi midi_player_replacement ; + +SimpleTest MidiPlayer2 + : # Midi Class + MidiDelay.cpp + + # Application + MidiPlayerWindow.cpp + MidiPlayerView.cpp + + # Display View + Scope.cpp + Activity.cpp + + : midi be tracker +; + diff --git a/src/tests/kits/midi/synth_file_reader/Jamfile b/src/tests/kits/midi/synth_file_reader/Jamfile new file mode 100644 index 0000000000..c1a0b8c32c --- /dev/null +++ b/src/tests/kits/midi/synth_file_reader/Jamfile @@ -0,0 +1,8 @@ +SubDir OBOS_TOP src tests kits midi synth_file_reader ; + +SimpleTest sfr + : SynthFileReader.cpp + main.cpp + : be root game +; + diff --git a/src/tests/kits/net/Jamfile b/src/tests/kits/net/Jamfile new file mode 100644 index 0000000000..979033d191 --- /dev/null +++ b/src/tests/kits/net/Jamfile @@ -0,0 +1,14 @@ +SubDir OBOS_TOP src tests kits net ; + +# bonefish: Tried to get the first test compiling. It complained about not +# being able to find some headers, thus I added the respective include dirs +# until it was asking for headers we currently don't have +# (sys/select.h, sys/sockio.h). + +#UsePosixHeaders ; +#SubDirHdrs [ FDirName $(OBOS_TOP) headers posix sys ] ; +#SubDirHdrs [ FDirName $(OBOS_TOP) headers posix net ] ; +#UsePrivateHeaders kernel ; +#UseArchHeaders $(OBOS_ARCH) ; + +#SimpleTest at_client : at_client.c : ; diff --git a/src/tests/kits/support/Jamfile b/src/tests/kits/support/Jamfile new file mode 100644 index 0000000000..70fd5f1af9 --- /dev/null +++ b/src/tests/kits/support/Jamfile @@ -0,0 +1,6 @@ +SubDir OBOS_TOP src tests kits support ; + +SubInclude OBOS_TOP src tests kits support barchivable ; +SubInclude OBOS_TOP src tests kits support bautolock ; +SubInclude OBOS_TOP src tests kits support blocker ; + diff --git a/src/tests/kits/support/barchivable/Jamfile b/src/tests/kits/support/barchivable/Jamfile new file mode 100644 index 0000000000..03abb7fc4e --- /dev/null +++ b/src/tests/kits/support/barchivable/Jamfile @@ -0,0 +1,24 @@ +SubDir OBOS_TOP src tests kits support barchivable ; + +# Fails to compile. Remove the "if" when it does. +if "" { + +SubDirHdrs [ FDirName $(OBOS_TOP) src tests kits app ] ; + +CommonUnitTest BArchivableTester + : main.cpp + BArchivableTester.cpp + FindInstantiationFuncTester.cpp + InstantiateObjectTester.cpp + LocalTestObject.cpp + ValidateInstantiationTester.cpp + : kits support + : libopenbeos.so be stdc++.r4 + : be stdc++.r4 + : support +; + +} # if "" + +SubInclude OBOS_TOP src tests kits support barchivable remoteobjectdef ; + diff --git a/src/tests/kits/support/barchivable/remoteobjectdef/Jamfile b/src/tests/kits/support/barchivable/remoteobjectdef/Jamfile new file mode 100644 index 0000000000..c8419ffbe1 --- /dev/null +++ b/src/tests/kits/support/barchivable/remoteobjectdef/Jamfile @@ -0,0 +1,10 @@ +SubDir OBOS_TOP src tests kits support barchivable remoteobjectdef ; + +CommonUnitTest RemoteTestObject + : RemoteTestObject.cpp + : kits support + : libopenbeos.so be stdc++.r4 + : be stdc++.r4 + : support +; + diff --git a/src/tests/kits/support/bautolock/Jamfile b/src/tests/kits/support/bautolock/Jamfile new file mode 100644 index 0000000000..02f1e89176 --- /dev/null +++ b/src/tests/kits/support/bautolock/Jamfile @@ -0,0 +1,17 @@ +SubDir OBOS_TOP src tests kits support bautolock ; + +# Fails to compile. Remove the "if" when it does. +if "" { + +CommonUnitTest BAutolockTester + : AutolockLockerTest.cpp + AutolockLooperTest.cpp + AutolockTestAddon.cpp + : kits support + : libopenbeos.so be stdc++.r4 + : be stdc++.r4 + : support +; + +} # if "" + diff --git a/src/tests/kits/support/blocker/Jamfile b/src/tests/kits/support/blocker/Jamfile new file mode 100644 index 0000000000..7e166998a7 --- /dev/null +++ b/src/tests/kits/support/blocker/Jamfile @@ -0,0 +1,23 @@ +SubDir OBOS_TOP src tests kits support blocker ; + +# Fails to compile. Remove the "if" when it does. +if "" { + +CommonUnitTest BLockerTester + : BenaphoreLockCountTest1.cpp + ConcurrencyTest1.cpp + ConcurrencyTest2.cpp + ConstructionTest1.cpp + DestructionTest1.cpp + DestructionTest2.cpp + LockerTestAddon.cpp + LockerTestCase.cpp + SemaphoreLockCountTest1.cpp + : kits support + : libopenbeos.so be stdc++.r4 + : be stdc++.r4 + : support +; + +} # if "" + diff --git a/src/tests/kits/translation/Jamfile b/src/tests/kits/translation/Jamfile new file mode 100644 index 0000000000..ccbfe97fb3 --- /dev/null +++ b/src/tests/kits/translation/Jamfile @@ -0,0 +1,10 @@ +SubDir OBOS_TOP src tests kits translation ; + +SimpleTest BitmapStreamTest : BitmapStreamTest.cpp + : libtranslation.so be ; + +SimpleTest TranslatorRosterTest : TranslatorRosterTest.cpp + : libtranslation.so be ; + +SubInclude OBOS_TOP src tests kits translation multitest ; + diff --git a/src/tests/kits/translation/multitest/Jamfile b/src/tests/kits/translation/multitest/Jamfile new file mode 100644 index 0000000000..ad12e8ee6c --- /dev/null +++ b/src/tests/kits/translation/multitest/Jamfile @@ -0,0 +1,10 @@ +SubDir OBOS_TOP src tests kits translation multitest ; + +SimpleTest MultiTest + : MainControlWindow.cpp + MultiTest.cpp + WorkView.cpp + WorkWindow.cpp + : libtranslation.so be +; +