xref: /haiku/src/tests/kits/app/bapplication/testapps/Jamfile (revision e3d41cfac62767ca4be2b15f8f44de04d3f05933)
18909e4baSIngo WeinholdSubDir OBOS_TOP src tests kits app bapplication testapps ;
28909e4baSIngo Weinhold
3*e3d41cfaSIngo WeinholdSubDirHdrs [ FDirName $(OBOS_TOP) src tests kits app common ] ;
4*e3d41cfaSIngo Weinhold
5*e3d41cfaSIngo Weinholdlocal commonObjects = <src!tests!kits!app!common>CommonTestApp$(SUFOBJ) ;
6*e3d41cfaSIngo Weinhold
7c9640d94SIngo Weinholdrule SimpleBAppTestApp
8c9640d94SIngo Weinhold{
9*e3d41cfaSIngo Weinhold	# SimpleBAppTestApp <sources> : <resources> : <use objects> ;
10c9640d94SIngo Weinhold	local sources = $(1) ;
11c9640d94SIngo Weinhold	local resources = $(2) ;
12*e3d41cfaSIngo Weinhold	local useObjects = $(3) ;
13c9640d94SIngo Weinhold	local name = $(sources[1]) ;
14c9640d94SIngo Weinhold	name = $(name:B) ;
15*e3d41cfaSIngo Weinhold	SimpleBAppTestApp2 $(name) : $(sources) : $(resources) : $(useObjects) ;
16c9640d94SIngo Weinhold}
1737eae717SIngo Weinhold
18c9640d94SIngo Weinholdrule SimpleBAppTestApp2
19c9640d94SIngo Weinhold{
20*e3d41cfaSIngo Weinhold	# SimpleBAppTestApp <name> : <sources> : <resources> : <use objects> ;
21c9640d94SIngo Weinhold	local name = $(1) ;
22c9640d94SIngo Weinhold	local sources = $(2) ;
23c9640d94SIngo Weinhold	local resources = $(3) ;
24*e3d41cfaSIngo Weinhold	local useObjects = $(4) ;
25c9640d94SIngo Weinhold	local r5name = $(name)_r5 ;
2637eae717SIngo Weinhold
27*e3d41cfaSIngo Weinhold	local useR5Objects ;
28*e3d41cfaSIngo Weinhold	local object ;
29*e3d41cfaSIngo Weinhold	for object in $(useObjects) {
30*e3d41cfaSIngo Weinhold		useR5Objects += $(object:B=$(object:B)_r5) ;
31*e3d41cfaSIngo Weinhold	}
32*e3d41cfaSIngo Weinhold
33c9640d94SIngo Weinhold	if $(resources) {
34c9640d94SIngo Weinhold		AddResources $(name) : $(resources) ;
35c9640d94SIngo Weinhold		AddResources $(r5name) : $(resources) ;
36c9640d94SIngo Weinhold	}
37c9640d94SIngo Weinhold	CommonUnitTest $(name)
38c9640d94SIngo Weinhold		: $(sources)
3937eae717SIngo Weinhold		: kits app
40*e3d41cfaSIngo Weinhold		: <boot!home!config!lib>libopenbeos.so be stdc++.r4 $(useObjects)
41*e3d41cfaSIngo Weinhold		: be stdc++.r4 $(useR5Objects)
4237eae717SIngo Weinhold		: app support
4337eae717SIngo Weinhold	;
44c9640d94SIngo Weinhold}
4537eae717SIngo Weinhold
46c9640d94SIngo Weinholdrule CopyBAppTestApp
47c9640d94SIngo Weinhold{
48c9640d94SIngo Weinhold	# CopyBAppTestApp  <target> : <source> ;
49c9640d94SIngo Weinhold	local target = $(1) ;
50c9640d94SIngo Weinhold	local source = $(2) ;
51c9640d94SIngo Weinhold	local r5target = $(target)_r5 ;
52c9640d94SIngo Weinhold	local r5source = $(source)_r5 ;
53c9640d94SIngo Weinhold	MakeLocate $(target) : [ FDirName $(OBOS_TEST_DIR) kits app ] ;
54c9640d94SIngo Weinhold	MakeLocate $(r5target) : [ FDirName $(OBOS_TEST_DIR) kits app ] ;
55c9640d94SIngo Weinhold	File $(target) : $(source) ;
56c9640d94SIngo Weinhold	File $(r5target) : $(r5source) ;
57c9640d94SIngo Weinhold	local file ;
58c9640d94SIngo Weinhold	for file in $(target) $(r5target) {
59c9640d94SIngo Weinhold		MODE on $(file) = $(EXEMODE) ;
60c9640d94SIngo Weinhold		MimeSet $(file) ;
61c9640d94SIngo Weinhold	}
62c9640d94SIngo Weinhold}
6337eae717SIngo Weinhold
64ff952badSIngo Weinhold# BApplication::BApplication() test apps
65ff952badSIngo Weinhold#
66ff952badSIngo Weinhold
67c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp1.cpp ;
68c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp1a.cpp ;
69c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp1b.cpp ;
70c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp2.cpp ;
71c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp2a.cpp ;
72c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp2b.cpp ;
73c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp3.cpp ;
74c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp3a.cpp ;
75c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp3b.cpp ;
76c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp4.cpp : BApplicationTestApp4.rsrc ;
77c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp4a.cpp : BApplicationTestApp4.rsrc ;
78c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp4b.cpp : BApplicationTestApp4.rsrc ;
79c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp5.cpp : BApplicationTestApp5.rsrc ;
80c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp5a.cpp : BApplicationTestApp5.rsrc ;
81c9640d94SIngo WeinholdSimpleBAppTestApp BApplicationTestApp5b.cpp : BApplicationTestApp5.rsrc ;
82c9640d94SIngo Weinhold
83ff952badSIngo Weinhold
84ff952badSIngo Weinhold# BApplication::Run() test apps
85ff952badSIngo Weinhold#
86ff952badSIngo Weinhold
87*e3d41cfaSIngo Weinholdlocal runTestApp1 = [ FGristFiles AppRunTestApp1$(SUFOBJ) ] ;
88*e3d41cfaSIngo Weinhold
89*e3d41cfaSIngo WeinholdSimpleBAppTestApp AppRunTestApp1.cpp : AppRunTestApp1.rsrc
90*e3d41cfaSIngo Weinhold				   : $(commonObjects) ;
91*e3d41cfaSIngo WeinholdSimpleBAppTestApp2 AppRunTestApp2 : $(runTestApp1) : AppRunTestApp2.rsrc
92*e3d41cfaSIngo Weinhold				   : $(commonObjects) ;
93*e3d41cfaSIngo WeinholdSimpleBAppTestApp2 AppRunTestApp3 : $(runTestApp1) : AppRunTestApp3.rsrc
94*e3d41cfaSIngo Weinhold				   : $(commonObjects) ;
95*e3d41cfaSIngo WeinholdSimpleBAppTestApp2 AppRunTestApp4 : $(runTestApp1) : AppRunTestApp4.rsrc
96*e3d41cfaSIngo Weinhold				   : $(commonObjects) ;
97*e3d41cfaSIngo WeinholdSimpleBAppTestApp2 AppRunTestApp5 : $(runTestApp1) : AppRunTestApp5.rsrc
98*e3d41cfaSIngo Weinhold				   : $(commonObjects) ;
99*e3d41cfaSIngo WeinholdSimpleBAppTestApp2 AppRunTestApp6 : $(runTestApp1) : AppRunTestApp6.rsrc
100*e3d41cfaSIngo Weinhold				   : $(commonObjects) ;
101c9640d94SIngo Weinhold
102c9640d94SIngo WeinholdCopyBAppTestApp AppRunTestApp3a : AppRunTestApp3 ;
103c9640d94SIngo WeinholdCopyBAppTestApp AppRunTestApp4a : AppRunTestApp4 ;
104c9640d94SIngo WeinholdCopyBAppTestApp AppRunTestApp5a : AppRunTestApp5 ;
105c9640d94SIngo WeinholdCopyBAppTestApp AppRunTestApp6a : AppRunTestApp6 ;
106ff952badSIngo Weinhold
107ff952badSIngo Weinhold
108ff952badSIngo Weinhold# BApplication::Quit() test apps
109ff952badSIngo Weinhold#
110ff952badSIngo Weinhold
111*e3d41cfaSIngo WeinholdSimpleBAppTestApp AppQuitTestApp1.cpp : : $(commonObjects) ;
112*e3d41cfaSIngo WeinholdSimpleBAppTestApp AppQuitTestApp2.cpp : : $(commonObjects) ;
113*e3d41cfaSIngo WeinholdSimpleBAppTestApp AppQuitTestApp3.cpp : : $(commonObjects) ;
114*e3d41cfaSIngo WeinholdSimpleBAppTestApp AppQuitTestApp4.cpp : : $(commonObjects) ;
115ff952badSIngo Weinhold
116ff952badSIngo Weinhold
117ff952badSIngo Weinhold# BApplication::QuitRequested() test apps
118ff952badSIngo Weinhold#
119ff952badSIngo Weinhold
120*e3d41cfaSIngo WeinholdSimpleBAppTestApp AppQuitRequestedTestApp1.cpp : : $(commonObjects) ;
121