aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorLibravatar Reiner Herrmann <reiner@reiner-h.de>2020-10-24 20:15:46 +0200
committerLibravatar Reiner Herrmann <reiner@reiner-h.de>2020-10-24 20:15:46 +0200
commitcd752585e030c01404dde57a5aae211829e84882 (patch)
tree4e9774ac82794c270d64809ccbbe520a174818db /Makefile.in
parentbump version to new development version 0.9.65 (diff)
downloadfirejail-cd752585e030c01404dde57a5aae211829e84882.tar.gz
firejail-cd752585e030c01404dde57a5aae211829e84882.tar.zst
firejail-cd752585e030c01404dde57a5aae211829e84882.zip
refactor test targets and let build fail on test errors
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in57
1 files changed, 12 insertions, 45 deletions
diff --git a/Makefile.in b/Makefile.in
index c00d20c64..bc0fa0096 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*
@@ -227,45 +228,11 @@ scan-build: clean
227# make test 228# make test
228# 229#
229 230
231TESTS=profiles private-lib apps apps-x11 apps-x11-xorg sysutils utils environment filters arguments fs fcopy fnetfilter
232TEST_TARGETS=$(patsubst %,test-%,$(TESTS))
230 233
231test-profiles: 234$(TEST_TARGETS):
232 cd test/profiles; ./profiles.sh | grep TESTING 235 $(MAKE) -C test $(subst test-,,$@)
233
234test-private-lib:
235 cd test/private-lib; ./private-lib.sh | grep TESTING
236
237test-apps:
238 cd test/apps; ./apps.sh | grep TESTING
239
240test-apps-x11:
241 cd test/apps-x11; ./apps-x11.sh | grep TESTING
242
243test-apps-x11-xorg:
244 cd test/apps-x11-xorg; ./apps-x11-xorg.sh | grep TESTING
245
246test-sysutils:
247 cd test/sysutils; ./sysutils.sh | grep TESTING
248
249test-utils:
250 cd test/utils; ./utils.sh | grep TESTING
251
252test-environment:
253 cd test/environment; ./environment.sh | grep TESTING
254
255test-filters:
256 cd test/filters; ./filters.sh | grep TESTING
257
258test-arguments:
259 cd test/arguments; ./arguments.sh | grep TESTING
260
261test-fs:
262 cd test/fs; ./fs.sh | grep TESTING
263
264test-fcopy:
265 cd test/fcopy; ./fcopy.sh | grep TESTING
266
267test-fnetfilter:
268 cd test/fnetfilter; ./fnetfilter.sh | grep TESTING
269 236
270test: 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 237test: 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"
@@ -284,32 +251,32 @@ test-travis: test-profiles test-fcopy test-fnetfilter test-fs test-utils test-sy
284 251
285# a firejail-test account is required, public/private key setup 252# a firejail-test account is required, public/private key setup
286test-ssh: 253test-ssh:
287 cd test/ssh; ./ssh.sh | grep TESTING 254 $(MAKE) -C test $(subst test-,,$@)
288 255
289# requires root access 256# requires root access
290test-chroot: 257test-chroot:
291 cd test/chroot; ./chroot.sh | grep testing 258 $(MAKE) -C test $(subst test-,,$@)
292 259
293# Huge appimage files, not included in "make dist" archive 260# Huge appimage files, not included in "make dist" archive
294test-appimage: 261test-appimage:
295 cd test/appimage; ./appimage.sh | grep TESTING 262 $(MAKE) -C test $(subst test-,,$@)
296 263
297# Root access, network devices are created before the test 264# Root access, network devices are created before the test
298# restart your computer to get rid of these devices 265# restart your computer to get rid of these devices
299test-network: 266test-network:
300 cd test/network; ./network.sh | grep TESTING 267 $(MAKE) -C test $(subst test-,,$@)
301 268
302# requires the same setup as test-network 269# requires the same setup as test-network
303test-stress: 270test-stress:
304 cd test/stress; ./stress.sh | grep TESTING 271 $(MAKE) -C test $(subst test-,,$@)
305 272
306# Tests running a root user 273# Tests running a root user
307test-root: 274test-root:
308 cd test/root; su -c ./root.sh | grep TESTING 275 $(MAKE) -C test $(subst test-,,$@)
309 276
310# OverlayFS is not available on all platforms 277# OverlayFS is not available on all platforms
311test-overlay: 278test-overlay:
312 cd test/overlay; ./overlay.sh | grep TESTING 279 $(MAKE) -C test $(subst test-,,$@)
313 280
314# For testing hidepid system, the command to set it up is "mount -o remount,rw,hidepid=2 /proc" 281# For testing hidepid system, the command to set it up is "mount -o remount,rw,hidepid=2 /proc"
315 282