diff options
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 62 |
1 files changed, 16 insertions, 46 deletions
diff --git a/Makefile.in b/Makefile.in index c00d20c64..5fbbfead9 100644 --- a/Makefile.in +++ b/Makefile.in | |||
@@ -74,6 +74,7 @@ clean: | |||
74 | for dir in $$(dirname $(ALL_ITEMS)) $(MYDIRS); do \ | 74 | for dir in $$(dirname $(ALL_ITEMS)) $(MYDIRS); do \ |
75 | $(MAKE) -C $$dir clean; \ | 75 | $(MAKE) -C $$dir clean; \ |
76 | done | 76 | done |
77 | $(MAKE) -C test clean | ||
77 | rm -f $(MANPAGES) $(MANPAGES:%=%.gz) firejail*.rpm | 78 | rm -f $(MANPAGES) $(MANPAGES:%=%.gz) firejail*.rpm |
78 | rm -f $(SECCOMP_FILTERS) | 79 | rm -f $(SECCOMP_FILTERS) |
79 | rm -f test/utils/index.html* | 80 | rm -f test/utils/index.html* |
@@ -181,7 +182,7 @@ uninstall: | |||
181 | @echo "If you want to install a different version of firejail, you might also need to run 'rm -fr $(DESTDIR)$(sysconfdir)/firejail', see #2038." | 182 | @echo "If you want to install a different version of firejail, you might also need to run 'rm -fr $(DESTDIR)$(sysconfdir)/firejail', see #2038." |
182 | 183 | ||
183 | DISTFILES = "src etc m4 platform contrib configure configure.ac Makefile.in install.sh mkman.sh mketc.sh mkdeb.sh.in COPYING README RELNOTES" | 184 | DISTFILES = "src etc m4 platform contrib configure configure.ac Makefile.in install.sh mkman.sh mketc.sh mkdeb.sh.in COPYING README RELNOTES" |
184 | DISTFILES_TEST = "test/apps test/apps-x11 test/apps-x11-xorg test/root test/fcopy test/environment test/profiles test/utils test/compile test/filters test/network test/arguments test/fs test/sysutils test/chroot" | 185 | DISTFILES_TEST = "test/Makefile.in test/apps test/apps-x11 test/apps-x11-xorg test/root test/fcopy test/environment test/profiles test/utils test/compile test/filters test/network test/arguments test/fs test/sysutils test/chroot" |
185 | 186 | ||
186 | dist: | 187 | dist: |
187 | mv config.status config.status.old | 188 | mv config.status config.status.old |
@@ -227,45 +228,11 @@ scan-build: clean | |||
227 | # make test | 228 | # make test |
228 | # | 229 | # |
229 | 230 | ||
231 | TESTS=profiles private-lib apps apps-x11 apps-x11-xorg sysutils utils environment filters arguments fs fcopy fnetfilter | ||
232 | TEST_TARGETS=$(patsubst %,test-%,$(TESTS)) | ||
230 | 233 | ||
231 | test-profiles: | 234 | $(TEST_TARGETS): |
232 | cd test/profiles; ./profiles.sh | grep TESTING | 235 | $(MAKE) -C test $(subst test-,,$@) |
233 | |||
234 | test-private-lib: | ||
235 | cd test/private-lib; ./private-lib.sh | grep TESTING | ||
236 | |||
237 | test-apps: | ||
238 | cd test/apps; ./apps.sh | grep TESTING | ||
239 | |||
240 | test-apps-x11: | ||
241 | cd test/apps-x11; ./apps-x11.sh | grep TESTING | ||
242 | |||
243 | test-apps-x11-xorg: | ||
244 | cd test/apps-x11-xorg; ./apps-x11-xorg.sh | grep TESTING | ||
245 | |||
246 | test-sysutils: | ||
247 | cd test/sysutils; ./sysutils.sh | grep TESTING | ||
248 | |||
249 | test-utils: | ||
250 | cd test/utils; ./utils.sh | grep TESTING | ||
251 | |||
252 | test-environment: | ||
253 | cd test/environment; ./environment.sh | grep TESTING | ||
254 | |||
255 | test-filters: | ||
256 | cd test/filters; ./filters.sh | grep TESTING | ||
257 | |||
258 | test-arguments: | ||
259 | cd test/arguments; ./arguments.sh | grep TESTING | ||
260 | |||
261 | test-fs: | ||
262 | cd test/fs; ./fs.sh | grep TESTING | ||
263 | |||
264 | test-fcopy: | ||
265 | cd test/fcopy; ./fcopy.sh | grep TESTING | ||
266 | |||
267 | test-fnetfilter: | ||
268 | cd test/fnetfilter; ./fnetfilter.sh | grep TESTING | ||
269 | 236 | ||
270 | test: test-profiles test-private-lib test-fcopy test-fnetfilter test-fs test-utils test-sysutils test-environment test-apps test-apps-x11 test-apps-x11-xorg test-filters test-arguments | 237 | test: test-profiles test-private-lib test-fcopy test-fnetfilter test-fs test-utils test-sysutils test-environment test-apps test-apps-x11 test-apps-x11-xorg test-filters test-arguments |
271 | echo "TEST COMPLETE" | 238 | echo "TEST COMPLETE" |
@@ -276,6 +243,9 @@ test-noprofiles: test-private-lib test-fcopy test-fnetfilter test-fs test-utils | |||
276 | test-travis: test-profiles test-fcopy test-fnetfilter test-fs test-utils test-sysutils test-environment test-filters test-arguments | 243 | test-travis: test-profiles test-fcopy test-fnetfilter test-fs test-utils test-sysutils test-environment test-filters test-arguments |
277 | echo "TEST COMPLETE" | 244 | echo "TEST COMPLETE" |
278 | 245 | ||
246 | test-github: test-fcopy test-fnetfilter test-utils test-sysutils test-environment test-arguments | ||
247 | echo "TEST COMPLETE" | ||
248 | |||
279 | ########################################## | 249 | ########################################## |
280 | # Individual tests, some of them require root access | 250 | # Individual tests, some of them require root access |
281 | # The tests are very intrusive, by the time you are done | 251 | # The tests are very intrusive, by the time you are done |
@@ -284,32 +254,32 @@ test-travis: test-profiles test-fcopy test-fnetfilter test-fs test-utils test-sy | |||
284 | 254 | ||
285 | # a firejail-test account is required, public/private key setup | 255 | # a firejail-test account is required, public/private key setup |
286 | test-ssh: | 256 | test-ssh: |
287 | cd test/ssh; ./ssh.sh | grep TESTING | 257 | $(MAKE) -C test $(subst test-,,$@) |
288 | 258 | ||
289 | # requires root access | 259 | # requires root access |
290 | test-chroot: | 260 | test-chroot: |
291 | cd test/chroot; ./chroot.sh | grep testing | 261 | $(MAKE) -C test $(subst test-,,$@) |
292 | 262 | ||
293 | # Huge appimage files, not included in "make dist" archive | 263 | # Huge appimage files, not included in "make dist" archive |
294 | test-appimage: | 264 | test-appimage: |
295 | cd test/appimage; ./appimage.sh | grep TESTING | 265 | $(MAKE) -C test $(subst test-,,$@) |
296 | 266 | ||
297 | # Root access, network devices are created before the test | 267 | # Root access, network devices are created before the test |
298 | # restart your computer to get rid of these devices | 268 | # restart your computer to get rid of these devices |
299 | test-network: | 269 | test-network: |
300 | cd test/network; ./network.sh | grep TESTING | 270 | $(MAKE) -C test $(subst test-,,$@) |
301 | 271 | ||
302 | # requires the same setup as test-network | 272 | # requires the same setup as test-network |
303 | test-stress: | 273 | test-stress: |
304 | cd test/stress; ./stress.sh | grep TESTING | 274 | $(MAKE) -C test $(subst test-,,$@) |
305 | 275 | ||
306 | # Tests running a root user | 276 | # Tests running a root user |
307 | test-root: | 277 | test-root: |
308 | cd test/root; su -c ./root.sh | grep TESTING | 278 | $(MAKE) -C test $(subst test-,,$@) |
309 | 279 | ||
310 | # OverlayFS is not available on all platforms | 280 | # OverlayFS is not available on all platforms |
311 | test-overlay: | 281 | test-overlay: |
312 | cd test/overlay; ./overlay.sh | grep TESTING | 282 | $(MAKE) -C test $(subst test-,,$@) |
313 | 283 | ||
314 | # For testing hidepid system, the command to set it up is "mount -o remount,rw,hidepid=2 /proc" | 284 | # For testing hidepid system, the command to set it up is "mount -o remount,rw,hidepid=2 /proc" |
315 | 285 | ||