aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/test.sh
blob: c3a4f21ae92bf6b42c0d127d79c47f174e0c97a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/bin/bash
OVERLAY="overlay"
CHROOT="chroot"

while [ $# -gt 0 ]; do    # Until you run out of parameters . . .
    case "$1" in
    --nooverlay)
    	OVERLAY="none"
	;;
    --nochroot)
    	CHROOT="none"
	;;
    --help)
    	echo "./test.sh [--nooverlay|--nochroot|--help] | grep TESTING"
    	exit
    	;;
    esac
    shift       # Check next set of parameters.
done




#
# Feature testing
#

####################
# Default features
####################
echo "TESTING: 1.1 disable /boot"
./1.1.exp $OVERLAY $CHROOT

echo "TESTING: 1.2 new /proc"
./1.2.exp $OVERLAY $CHROOT

echo "TESTING: 1.4 mask other users"
./1.4.exp $OVERLAY $CHROOT

echo "TESTING: 1.5 PID namespace"
./1.5.exp $OVERLAY $CHROOT

echo "TESTING: 1.6 new /var/log"
./1.6.exp $OVERLAY $CHROOT

echo "TESTING: 1.7 new /var/tmp"
./1.7.exp $OVERLAY $CHROOT

echo "TESTING: 1.8 disable /etc/firejail and ~/.config/firejail"
./1.8.exp $OVERLAY $CHROOT

echo "TESTING: 1.10 disable /selinux"
./1.10.exp $OVERLAY $CHROOT

####################
# networking features
####################
echo "TESTING: 2.1 hostname"
./2.1.exp $OVERLAY $CHROOT

echo "TESTING: 2.2 DNS"
./2.2.exp $OVERLAY $CHROOT

echo "TESTING: 2.3 mac-vlan"
./2.3.exp $OVERLAY $CHROOT

echo "TESTING: 2.4 bridge"
./2.4.exp $OVERLAY $CHROOT

echo "TESTING: 2.5 interface"
./2.5.exp $OVERLAY $CHROOT

echo "TESTING: 2.6 Default gateway"
./2.6.exp $OVERLAY $CHROOT

####################
# filesystem features
####################
echo "TESTING: 3.1 tmpfs"
./3.1.exp $OVERLAY $CHROOT

echo "TESTING: 3.2 read-only"
./3.2.exp $OVERLAY $CHROOT

echo "TESTING: 3.3 blacklist"
./3.3.exp $OVERLAY $CHROOT

echo "TESTING: 3.4 whitelist"
./3.4.exp $OVERLAY $CHROOT