xref: /haiku/src/tests/servers/registrar/Jamfile (revision fc75f2df0c666dcc61be83c4facdd3132340c2fb)
1SubDir HAIKU_TOP src tests servers registrar ;
2
3UsePublicHeaders [ FDirName add-ons registrar ] ;
4UseArchHeaders $(TARGET_ARCH) ;
5
6# some test programs
7
8SetSubDirSupportedPlatformsBeOSCompatible ;
9
10SimpleTest RegistrarTest1
11	: RegistrarTest1.cpp
12	: be $(TARGET_LIBSUPC++)
13;
14
15SimpleTest RosterShell
16	: RosterShell.cpp
17	: be $(TARGET_LIBSTDC++)
18;
19
20SimpleTest message_deliverer_test : message_deliverer_test.cpp : be ;
21
22
23# libbe_test related stuff
24
25SetSubDirSupportedPlatforms libbe_test ;
26
27SimpleTest run_test_registrar
28	: run_test_registrar.cpp
29	: be
30;
31
32# a shutdown working with the emulation under R5
33UsePrivateHeaders app ;
34UsePrivateHeaders kernel ;
35
36SimpleTest <test>shutdown
37	: shutdown.cpp
38	: be ;
39
40SEARCH on [ FGristFiles shutdown.cpp ] = [ FDirName $(HAIKU_TOP) src bin ] ;
41
42# Two small test apps for testing the shutdown process.
43
44SimpleTest no_shutdown_reply
45	: no_shutdown_reply.cpp
46	: be
47;
48
49SimpleTest negative_shutdown_reply
50	: negative_shutdown_reply.cpp
51	: be
52;
53
54SimpleTest user_shutdown_reply
55	: user_shutdown_reply.cpp
56	: be
57;
58
59
60# the registrar itself
61
62UsePrivateHeaders app ;
63UsePrivateHeaders shared ;
64UsePrivateHeaders storage ;
65UsePrivateHeaders tracker ;
66UsePrivateSystemHeaders ;
67
68SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src servers registrar ] ;
69SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src servers registrar mime ] ;
70
71Server test_registrar
72 	:
73	AppInfoList.cpp
74	AppInfoListMessagingTargetSet.cpp
75	Clipboard.cpp
76	ClipboardHandler.cpp
77	Event.cpp
78	EventMaskWatcher.cpp
79	EventQueue.cpp
80 	FakeAuthenticationManager.cpp
81	MessageDeliverer.cpp
82	MessageEvent.cpp
83	MessageHandler.cpp
84	MessageRunnerManager.cpp
85	MessagingService.cpp
86	MIMEManager.cpp
87	PriorityMessageQueue.cpp
88	RecentApps.cpp
89	RecentEntries.cpp
90	Registrar.cpp
91	RegistrarThread.cpp
92	RegistrarThreadManager.cpp
93	RosterAppInfo.cpp
94	RosterSettingsCharStream.cpp
95	ShutdownProcess.cpp
96	TextSnifferAddon.cpp
97	TRoster.cpp
98	Watcher.cpp
99	WatchingService.cpp
100
101	# mime
102	AssociatedTypes.cpp
103	CreateAppMetaMimeThread.cpp
104	Database.cpp
105	InstalledTypes.cpp
106	MimeSnifferAddon.cpp
107	MimeSnifferAddonManager.cpp
108	MimeUpdateThread.cpp
109	SnifferRules.cpp
110	Supertype.cpp
111	SupportingApps.cpp
112	UpdateMimeInfoThread.cpp
113
114	R5Compatibility.cpp
115	:
116	be $(HAIKU_LOCALE_LIBS) $(TARGET_LIBSTDC++)
117	:
118	registrar.rdef
119;
120
121if $(TARGET_PLATFORM) = libbe_test {
122	HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : test_registrar
123		: tests!apps ;
124	HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : run_test_registrar
125		: tests!apps ;
126}
127