diff options
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 57 |
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 | ||
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" |
@@ -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 |
286 | test-ssh: | 253 | test-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 |
290 | test-chroot: | 257 | test-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 |
294 | test-appimage: | 261 | test-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 |
299 | test-network: | 266 | test-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 |
303 | test-stress: | 270 | test-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 |
307 | test-root: | 274 | test-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 |
311 | test-overlay: | 278 | test-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 | ||