1338b8dc3SIngo WeinholdSubDir HAIKU_TOP src tests kits app bapplication testapps ; 28909e4baSIngo Weinhold 3155b583aSIngo WeinholdAddSubDirSupportedPlatforms libbe_test ; 4155b583aSIngo Weinhold 5338b8dc3SIngo WeinholdSubDirHdrs [ FDirName $(HAIKU_TOP) src tests kits app common ] ; 6e3d41cfaSIngo Weinhold 7155b583aSIngo Weinholdlocal commonObjects = <src!tests!kits!app!common>CommonTestApp.o ; 8e3d41cfaSIngo Weinhold 9c9640d94SIngo Weinholdrule SimpleBAppTestApp 10c9640d94SIngo Weinhold{ 11e3d41cfaSIngo Weinhold # SimpleBAppTestApp <sources> : <resources> : <use objects> ; 12c9640d94SIngo Weinhold local sources = $(1) ; 13c9640d94SIngo Weinhold local resources = $(2) ; 14e3d41cfaSIngo Weinhold local useObjects = $(3) ; 15c9640d94SIngo Weinhold local name = $(sources[1]) ; 16c9640d94SIngo Weinhold name = $(name:B) ; 17e3d41cfaSIngo Weinhold SimpleBAppTestApp2 $(name) : $(sources) : $(resources) : $(useObjects) ; 18c9640d94SIngo Weinhold} 1937eae717SIngo Weinhold 20c9640d94SIngo Weinholdrule SimpleBAppTestApp2 21c9640d94SIngo Weinhold{ 22155b583aSIngo Weinhold # SimpleBAppTestApp2 <name> : <sources> : <resources> : <use objects> ; 23c9640d94SIngo Weinhold local name = $(1) ; 24c9640d94SIngo Weinhold local sources = $(2) ; 25c9640d94SIngo Weinhold local resources = $(3) ; 26e3d41cfaSIngo Weinhold local useObjects = $(4) ; 2737eae717SIngo Weinhold 28155b583aSIngo Weinhold UnitTest $(name) 29c9640d94SIngo Weinhold : $(sources) 30220d0402SOliver Tappe : be [ TargetLibstdc++ ] $(useObjects) 31155b583aSIngo Weinhold : $(resources) 3237eae717SIngo Weinhold ; 33c9640d94SIngo Weinhold} 3437eae717SIngo Weinhold 35c9640d94SIngo Weinholdrule CopyBAppTestApp 36c9640d94SIngo Weinhold{ 37c9640d94SIngo Weinhold # CopyBAppTestApp <target> : <source> ; 38c9640d94SIngo Weinhold local target = $(1) ; 39c9640d94SIngo Weinhold local source = $(2) ; 40155b583aSIngo Weinhold 41155b583aSIngo Weinhold MakeLocate $(target) : $(TARGET_UNIT_TEST_DIR) ; 42c9640d94SIngo Weinhold File $(target) : $(source) ; 43155b583aSIngo Weinhold MODE on $(target) = $(EXEMODE) ; 44155b583aSIngo Weinhold MimeSet $(target) ; 456abbd310SSimon South 466abbd310SSimon South UnitTestDependency $(target) ; 47c9640d94SIngo Weinhold} 4837eae717SIngo Weinhold 49ff952badSIngo Weinhold# BApplication::BApplication() test apps 50ff952badSIngo Weinhold# 51ff952badSIngo Weinhold 52c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp1.cpp ; 53c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp1a.cpp ; 54c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp1b.cpp ; 55c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp2.cpp ; 56c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp2a.cpp ; 57c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp2b.cpp ; 58c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp3.cpp ; 59c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp3a.cpp ; 60c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp3b.cpp ; 61*4fe78e34SAugustin CavalierSimpleBAppTestApp BApplicationTestApp4.cpp : BApplicationTestApp4.rdef ; 62*4fe78e34SAugustin CavalierSimpleBAppTestApp BApplicationTestApp4a.cpp : BApplicationTestApp4.rdef ; 63*4fe78e34SAugustin CavalierSimpleBAppTestApp BApplicationTestApp4b.cpp : BApplicationTestApp4.rdef ; 64*4fe78e34SAugustin CavalierSimpleBAppTestApp BApplicationTestApp5.cpp : BApplicationTestApp5.rdef ; 65*4fe78e34SAugustin CavalierSimpleBAppTestApp BApplicationTestApp5a.cpp : BApplicationTestApp5.rdef ; 66*4fe78e34SAugustin CavalierSimpleBAppTestApp BApplicationTestApp5b.cpp : BApplicationTestApp5.rdef ; 67c9640d94SIngo Weinhold 68ff952badSIngo Weinhold 69ff952badSIngo Weinhold# BApplication::Run() test apps 70ff952badSIngo Weinhold# 71ff952badSIngo Weinhold 72e3d41cfaSIngo Weinholdlocal runTestApp1 = [ FGristFiles AppRunTestApp1$(SUFOBJ) ] ; 73e3d41cfaSIngo Weinhold 74*4fe78e34SAugustin CavalierSimpleBAppTestApp AppRunTestApp1.cpp : AppRunTestApp1.rdef 75e3d41cfaSIngo Weinhold : $(commonObjects) ; 76*4fe78e34SAugustin CavalierSimpleBAppTestApp2 AppRunTestApp2 : $(runTestApp1) : AppRunTestApp2.rdef 77e3d41cfaSIngo Weinhold : $(commonObjects) ; 78*4fe78e34SAugustin CavalierSimpleBAppTestApp2 AppRunTestApp3 : $(runTestApp1) : AppRunTestApp3.rdef 79e3d41cfaSIngo Weinhold : $(commonObjects) ; 80*4fe78e34SAugustin CavalierSimpleBAppTestApp2 AppRunTestApp4 : $(runTestApp1) : AppRunTestApp4.rdef 81e3d41cfaSIngo Weinhold : $(commonObjects) ; 82*4fe78e34SAugustin CavalierSimpleBAppTestApp2 AppRunTestApp5 : $(runTestApp1) : AppRunTestApp5.rdef 83e3d41cfaSIngo Weinhold : $(commonObjects) ; 84*4fe78e34SAugustin CavalierSimpleBAppTestApp2 AppRunTestApp6 : $(runTestApp1) : AppRunTestApp6.rdef 85e3d41cfaSIngo Weinhold : $(commonObjects) ; 86c9640d94SIngo Weinhold 87c9640d94SIngo WeinholdCopyBAppTestApp AppRunTestApp3a : AppRunTestApp3 ; 88c9640d94SIngo WeinholdCopyBAppTestApp AppRunTestApp4a : AppRunTestApp4 ; 89c9640d94SIngo WeinholdCopyBAppTestApp AppRunTestApp5a : AppRunTestApp5 ; 90c9640d94SIngo WeinholdCopyBAppTestApp AppRunTestApp6a : AppRunTestApp6 ; 91ff952badSIngo Weinhold 92ff952badSIngo Weinhold 93ff952badSIngo Weinhold# BApplication::Quit() test apps 94ff952badSIngo Weinhold# 95ff952badSIngo Weinhold 96e3d41cfaSIngo WeinholdSimpleBAppTestApp AppQuitTestApp1.cpp : : $(commonObjects) ; 97e3d41cfaSIngo WeinholdSimpleBAppTestApp AppQuitTestApp2.cpp : : $(commonObjects) ; 98e3d41cfaSIngo WeinholdSimpleBAppTestApp AppQuitTestApp3.cpp : : $(commonObjects) ; 99e3d41cfaSIngo WeinholdSimpleBAppTestApp AppQuitTestApp4.cpp : : $(commonObjects) ; 100ff952badSIngo Weinhold 101ff952badSIngo Weinhold 102ff952badSIngo Weinhold# BApplication::QuitRequested() test apps 103ff952badSIngo Weinhold# 104ff952badSIngo Weinhold 105e3d41cfaSIngo WeinholdSimpleBAppTestApp AppQuitRequestedTestApp1.cpp : : $(commonObjects) ; 106