aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/features/test.sh')
-rwxr-xr-xtest/features/test.sh51
1 files changed, 31 insertions, 20 deletions
diff --git a/test/features/test.sh b/test/features/test.sh
index b600cec31..c3a4f21ae 100755
--- a/test/features/test.sh
+++ b/test/features/test.sh
@@ -1,13 +1,17 @@
1#!/bin/bash 1#!/bin/bash
2OVERLAY="overlay" 2OVERLAY="overlay"
3CHROOT="chroot"
3 4
4while [ $# -gt 0 ]; do # Until you run out of parameters . . . 5while [ $# -gt 0 ]; do # Until you run out of parameters . . .
5 case "$1" in 6 case "$1" in
6 --nooverlay) 7 --nooverlay)
7 OVERLAY="" 8 OVERLAY="none"
9 ;;
10 --nochroot)
11 CHROOT="none"
8 ;; 12 ;;
9 --help) 13 --help)
10 echo "./test.sh [--nooverlay|--help] | grep TESTING" 14 echo "./test.sh [--nooverlay|--nochroot|--help] | grep TESTING"
11 exit 15 exit
12 ;; 16 ;;
13 esac 17 esac
@@ -21,59 +25,66 @@ done
21# Feature testing 25# Feature testing
22# 26#
23 27
28####################
24# Default features 29# Default features
30####################
25echo "TESTING: 1.1 disable /boot" 31echo "TESTING: 1.1 disable /boot"
26./1.1.exp $OVERLAY 32./1.1.exp $OVERLAY $CHROOT
27 33
28echo "TESTING: 1.2 new /proc" 34echo "TESTING: 1.2 new /proc"
29./1.2.exp $OVERLAY 35./1.2.exp $OVERLAY $CHROOT
30 36
31echo "TESTING: 1.4 mask other users" 37echo "TESTING: 1.4 mask other users"
32./1.4.exp $OVERLAY 38./1.4.exp $OVERLAY $CHROOT
33 39
34echo "TESTING: 1.5 PID namespace" 40echo "TESTING: 1.5 PID namespace"
35./1.5.exp $OVERLAY 41./1.5.exp $OVERLAY $CHROOT
36 42
37echo "TESTING: 1.6 new /var/log" 43echo "TESTING: 1.6 new /var/log"
38./1.6.exp $OVERLAY 44./1.6.exp $OVERLAY $CHROOT
39 45
40echo "TESTING: 1.7 new /var/tmp" 46echo "TESTING: 1.7 new /var/tmp"
41./1.7.exp $OVERLAY 47./1.7.exp $OVERLAY $CHROOT
42 48
43echo "TESTING: 1.8 disable /etc/firejail and ~/.config/firejail" 49echo "TESTING: 1.8 disable /etc/firejail and ~/.config/firejail"
44./1.8.exp $OVERLAY 50./1.8.exp $OVERLAY $CHROOT
45 51
46echo "TESTING: 1.10 disable /selinux" 52echo "TESTING: 1.10 disable /selinux"
47./1.10.exp $OVERLAY 53./1.10.exp $OVERLAY $CHROOT
48 54
55####################
49# networking features 56# networking features
57####################
50echo "TESTING: 2.1 hostname" 58echo "TESTING: 2.1 hostname"
51./2.1.exp $OVERLAY 59./2.1.exp $OVERLAY $CHROOT
52 60
53echo "TESTING: 2.2 DNS" 61echo "TESTING: 2.2 DNS"
54./2.2.exp $OVERLAY 62./2.2.exp $OVERLAY $CHROOT
55 63
56echo "TESTING: 2.3 mac-vlan" 64echo "TESTING: 2.3 mac-vlan"
57./2.3.exp $OVERLAY 65./2.3.exp $OVERLAY $CHROOT
58 66
59echo "TESTING: 2.4 bridge" 67echo "TESTING: 2.4 bridge"
60./2.4.exp $OVERLAY 68./2.4.exp $OVERLAY $CHROOT
61 69
62echo "TESTING: 2.5 interface" 70echo "TESTING: 2.5 interface"
63./2.5.exp $OVERLAY 71./2.5.exp $OVERLAY $CHROOT
64 72
65echo "TESTING: 2.6 Default gateway" 73echo "TESTING: 2.6 Default gateway"
66./2.6.exp $OVERLAY 74./2.6.exp $OVERLAY $CHROOT
67 75
76####################
77# filesystem features
78####################
68echo "TESTING: 3.1 tmpfs" 79echo "TESTING: 3.1 tmpfs"
69./3.1.exp $OVERLAY 80./3.1.exp $OVERLAY $CHROOT
70 81
71echo "TESTING: 3.2 read-only" 82echo "TESTING: 3.2 read-only"
72./3.2.exp $OVERLAY 83./3.2.exp $OVERLAY $CHROOT
73 84
74echo "TESTING: 3.3 blacklist" 85echo "TESTING: 3.3 blacklist"
75./3.3.exp $OVERLAY 86./3.3.exp $OVERLAY $CHROOT
76 87
77echo "TESTING: 3.4 whitelist" 88echo "TESTING: 3.4 whitelist"
78./3.4.exp $OVERLAY 89./3.4.exp $OVERLAY $CHROOT
79 90