aboutsummaryrefslogtreecommitdiffstats
path: root/test/features/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/features/test.sh')
-rwxr-xr-xtest/features/test.sh119
1 files changed, 0 insertions, 119 deletions
diff --git a/test/features/test.sh b/test/features/test.sh
deleted file mode 100755
index b3e29bc28..000000000
--- a/test/features/test.sh
+++ /dev/null
@@ -1,119 +0,0 @@
1#!/bin/bash
2# This file is part of Firejail project
3# Copyright (C) 2014-2023 Firejail Authors
4# License GPL v2
5
6export LC_ALL=C
7OVERLAY="overlay"
8CHROOT="chroot"
9NETWORK="network"
10
11while [[ $# -gt 0 ]]; do # Until you run out of parameters . . .
12 case "$1" in
13 --nooverlay)
14 OVERLAY="none"
15 ;;
16 --nochroot)
17 CHROOT="none"
18 ;;
19 --nonetwork)
20 NETWORK="none"
21 ;;
22 --help)
23 echo "./test.sh [--nooverlay|--nochroot|--nonetwork|--help] | grep TESTING"
24 exit
25 ;;
26 esac
27 shift # Check next set of parameters.
28done
29
30#
31# Feature testing
32#
33
34####################
35# Default features
36####################
37echo "TESTING: 1.1 disable /boot"
38./1.1.exp "$OVERLAY" "$CHROOT"
39
40echo "TESTING: 1.2 new /proc"
41./1.2.exp "$OVERLAY" "$CHROOT"
42
43echo "TESTING: 1.4 mask other users"
44./1.4.exp "$OVERLAY" "$CHROOT"
45
46echo "TESTING: 1.5 PID namespace"
47./1.5.exp "$OVERLAY" "$CHROOT"
48
49echo "TESTING: 1.6 new /var/log"
50./1.6.exp "$OVERLAY" "$CHROOT"
51
52echo "TESTING: 1.7 new /var/tmp"
53./1.7.exp "$OVERLAY" "$CHROOT"
54
55echo "TESTING: 1.8 disable firejail config and run time information"
56./1.8.exp "$OVERLAY" "$CHROOT"
57
58echo "TESTING: 1.10 disable /selinux"
59./1.10.exp "$OVERLAY" "$CHROOT"
60
61####################
62# networking features
63####################
64if [[ $NETWORK == "network" ]]
65then
66 echo "TESTING: 2.1 hostname"
67 ./2.1.exp "$OVERLAY" "$CHROOT"
68
69 echo "TESTING: 2.2 DNS"
70 ./2.2.exp "$OVERLAY" "$CHROOT"
71
72 echo "TESTING: 2.3 mac-vlan"
73 ./2.3.exp "$OVERLAY" "$CHROOT"
74
75 echo "TESTING: 2.4 bridge"
76 ./2.4.exp "$OVERLAY" "$CHROOT"
77
78 echo "TESTING: 2.5 interface"
79 ./2.5.exp "$OVERLAY" "$CHROOT"
80
81 echo "TESTING: 2.6 Default gateway"
82 ./2.6.exp "$OVERLAY" "$CHROOT"
83fi
84
85####################
86# filesystem features
87####################
88echo "TESTING: 3.1 private (fails on OpenSUSE)"
89./3.1.exp "$OVERLAY" "$CHROOT"
90
91echo "TESTING: 3.2 read-only"
92./3.2.exp "$OVERLAY" "$CHROOT"
93
94echo "TESTING: 3.3 blacklist"
95./3.3.exp "$OVERLAY" "$CHROOT"
96
97echo "TESTING: 3.4 whitelist home (fails on OpenSUSE)"
98./3.4.exp "$OVERLAY" "$CHROOT"
99
100echo "TESTING: 3.5 private-dev"
101./3.5.exp "$OVERLAY" "$CHROOT"
102
103echo "TESTING: 3.6 private-etc"
104./3.6.exp notworking "$CHROOT"
105
106echo "TESTING: 3.7 private-tmp"
107./3.7.exp "$OVERLAY" "$CHROOT"
108
109echo "TESTING: 3.8 private-bin"
110./3.8.exp notworking notworking
111
112echo "TESTING: 3.9 whitelist dev"
113./3.9.exp "$OVERLAY" "$CHROOT"
114
115echo "TESTING: 3.10 whitelist tmp"
116./3.10.exp "$OVERLAY" "$CHROOT"
117
118echo "TESTING: 3.11 mkdir"
119./3.11.exp "$OVERLAY" "$CHROOT"