1SubDir HAIKU_TOP src tests kits app broster testapps ;
2
3AddSubDirSupportedPlatforms libbe_test ;
4
5#SubDirHdrs [ FDirName $(HAIKU_TOP) src tests kits app common ] ;
6SubDirHdrs [ FDirName $(HAIKU_TOP) src tests kits app broster ] ;
7
8UsePrivateHeaders app ;
9
10#local commonObjects = <src!tests!kits!app!common>CommonTestApp$(SUFOBJ) ;
11
12rule SimpleBRosterTestApp
13{
14	# SimpleBRosterTestApp <sources> : <resources> : <use objects> ;
15	local sources = $(1) ;
16	local resources = $(2) ;
17	local useObjects = $(3) ;
18	local name = $(sources[1]) ;
19	name = $(name:B) ;
20	SimpleBRosterTestApp2 $(name) : $(sources) : $(resources) : $(useObjects) ;
21}
22
23rule SimpleBRosterTestApp2
24{
25	# SimpleBRosterTestApp <name> : <sources> : <resources> : <use objects> ;
26	local name = $(1) ;
27	local sources = $(2) ;
28	local resources = $(3) ;
29	local useObjects = $(4) ;
30
31	UnitTest $(name)
32		: $(sources)
33		: be [ TargetLibstdc++ ] $(useObjects)
34		: $(resources)
35	;
36}
37
38rule CopyBRosterTestApp
39{
40	# CopyBRosterTestApp  <target> : <source> ;
41	local target = $(1) ;
42	local source = $(2) ;
43
44	MakeLocate $(target) : $(TARGET_UNIT_TEST_DIR) ;
45	File $(target) : $(source) ;
46	MODE on $(target) = $(EXEMODE) ;
47	MimeSet $(target) ;
48}
49
50# BRoster::Launch() test apps
51#
52
53SimpleBRosterTestApp RecentAppsTestQualifyingApp.cpp RecentAppsTestApp.cpp ;
54SimpleBRosterTestApp RecentAppsTestNonQualifyingApp.cpp RecentAppsTestApp.cpp ;
55SimpleBRosterTestApp RecentAppsTestEmptyApp.cpp RecentAppsTestApp.cpp ;
56SimpleBRosterTestApp RecentAppsTestControlApp.cpp RecentAppsTestApp.cpp ;
57SimpleBRosterTestApp RosterBroadcastTestApp1.cpp ;
58SimpleBRosterTestApp RosterLaunchTestApp1.cpp ;
59SimpleBRosterTestApp RosterWatchingTestApp1.cpp ;
60