xref: /haiku/src/tests/servers/registrar/Jamfile (revision 8e8f7748d39f8407894a5ab79f7b4f93bc4f4652)
1SubDir HAIKU_TOP src tests servers registrar ;
2
3UsePublicHeaders [ FDirName add-ons registrar ] ;
4UseArchHeaders $(TARGET_KERNEL_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 ] ;
70SEARCH_SOURCE += [ FDirName $(HAIKU_TOP) src kits storage mime ] ;
71
72Server test_registrar
73 	:
74	AppInfoList.cpp
75	AppInfoListMessagingTargetSet.cpp
76	Clipboard.cpp
77	ClipboardHandler.cpp
78	Event.cpp
79	EventMaskWatcher.cpp
80	EventQueue.cpp
81 	FakeAuthenticationManager.cpp
82	MessageDeliverer.cpp
83	MessageEvent.cpp
84	MessageHandler.cpp
85	MessageRunnerManager.cpp
86	MessagingService.cpp
87	MIMEManager.cpp
88	PriorityMessageQueue.cpp
89	RecentApps.cpp
90	RecentEntries.cpp
91	Registrar.cpp
92	RosterAppInfo.cpp
93	RosterSettingsCharStream.cpp
94	ShutdownProcess.cpp
95	TextSnifferAddon.cpp
96	TRoster.cpp
97	Watcher.cpp
98	WatchingService.cpp
99
100	# mime
101	CreateAppMetaMimeThread.cpp
102	MimeUpdateThread.cpp
103	RegistrarThread.cpp
104	RegistrarThreadManager.cpp
105	UpdateMimeInfoThread.cpp
106
107	R5Compatibility.cpp
108	:
109	libstorage_kit_mime.a
110	be localestub $(TARGET_LIBSTDC++)
111	:
112	registrar.rdef
113;
114
115if $(TARGET_PLATFORM) = libbe_test {
116	HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : test_registrar
117		: tests!apps ;
118	HaikuInstall install-test-apps : $(HAIKU_APP_TEST_DIR) : run_test_registrar
119		: tests!apps ;
120}
121