aboutsummaryrefslogtreecommitdiffstats
path: root/test/features
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 21:20:14 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2015-12-23 21:20:14 -0500
commitc0dc4e056589c41b423e9a5c1fe5edd2b845967a (patch)
treee61d391ac05062514c2ae692378ac8171a02da59 /test/features
parent0.9.36 testing (diff)
downloadfirejail-c0dc4e056589c41b423e9a5c1fe5edd2b845967a.tar.gz
firejail-c0dc4e056589c41b423e9a5c1fe5edd2b845967a.tar.zst
firejail-c0dc4e056589c41b423e9a5c1fe5edd2b845967a.zip
0.9.36 testing
Diffstat (limited to 'test/features')
-rwxr-xr-xtest/features/1.2.exp24
-rwxr-xr-xtest/features/test.sh33
2 files changed, 32 insertions, 25 deletions
diff --git a/test/features/1.2.exp b/test/features/1.2.exp
index 0b92247f1..623957f5f 100755
--- a/test/features/1.2.exp
+++ b/test/features/1.2.exp
@@ -36,10 +36,10 @@ expect {
36 timeout {puts "TESTING ERROR 1.4\n";exit} 36 timeout {puts "TESTING ERROR 1.4\n";exit}
37 "proc /proc/sysrq-trigger proc" 37 "proc /proc/sysrq-trigger proc"
38} 38}
39expect { 39#expect {
40 timeout {puts "TESTING ERROR 1.5\n";exit} 40# timeout {puts "TESTING ERROR 1.5\n";exit}
41 "proc /proc/sys/kernel/hotplug" 41# "proc /proc/sys/kernel/hotplug"
42} 42#}
43expect { 43expect {
44 timeout {puts "TESTING ERROR 1.6\n";exit} 44 timeout {puts "TESTING ERROR 1.6\n";exit}
45 "proc /proc/irq proc" 45 "proc /proc/irq proc"
@@ -69,10 +69,10 @@ if { $overlay == "overlay" } {
69 timeout {puts "TESTING ERROR 3.1\n";exit} 69 timeout {puts "TESTING ERROR 3.1\n";exit}
70 "proc /proc proc" 70 "proc /proc proc"
71 } 71 }
72 expect { 72# expect {
73 timeout {puts "TESTING ERROR 3.2\n";exit} 73# timeout {puts "TESTING ERROR 3.2\n";exit}
74 "proc /proc proc" 74# "proc /proc proc"
75 } 75# }
76 expect { 76 expect {
77 timeout {puts "TESTING ERROR 3.3\n";exit} 77 timeout {puts "TESTING ERROR 3.3\n";exit}
78 "proc /proc/sys proc" 78 "proc /proc/sys proc"
@@ -81,10 +81,10 @@ if { $overlay == "overlay" } {
81 timeout {puts "TESTING ERROR 3.4\n";exit} 81 timeout {puts "TESTING ERROR 3.4\n";exit}
82 "proc /proc/sysrq-trigger proc" 82 "proc /proc/sysrq-trigger proc"
83 } 83 }
84 expect { 84# expect {
85 timeout {puts "TESTING ERROR 3.5\n";exit} 85# timeout {puts "TESTING ERROR 3.5\n";exit}
86 "proc /proc/sys/kernel/hotplug" 86# "proc /proc/sys/kernel/hotplug"
87 } 87# }
88 expect { 88 expect {
89 timeout {puts "TESTING ERROR 3.6\n";exit} 89 timeout {puts "TESTING ERROR 3.6\n";exit}
90 "proc /proc/irq proc" 90 "proc /proc/irq proc"
diff --git a/test/features/test.sh b/test/features/test.sh
index c3a4f21ae..d4bcead0b 100755
--- a/test/features/test.sh
+++ b/test/features/test.sh
@@ -1,6 +1,7 @@
1#!/bin/bash 1#!/bin/bash
2OVERLAY="overlay" 2OVERLAY="overlay"
3CHROOT="chroot" 3CHROOT="chroot"
4NETWORK="network"
4 5
5while [ $# -gt 0 ]; do # Until you run out of parameters . . . 6while [ $# -gt 0 ]; do # Until you run out of parameters . . .
6 case "$1" in 7 case "$1" in
@@ -10,8 +11,11 @@ while [ $# -gt 0 ]; do # Until you run out of parameters . . .
10 --nochroot) 11 --nochroot)
11 CHROOT="none" 12 CHROOT="none"
12 ;; 13 ;;
14 --nonetwork)
15 NETWORK="none"
16 ;;
13 --help) 17 --help)
14 echo "./test.sh [--nooverlay|--nochroot|--help] | grep TESTING" 18 echo "./test.sh [--nooverlay|--nochroot|--nonetwork|--help] | grep TESTING"
15 exit 19 exit
16 ;; 20 ;;
17 esac 21 esac
@@ -55,23 +59,26 @@ echo "TESTING: 1.10 disable /selinux"
55#################### 59####################
56# networking features 60# networking features
57#################### 61####################
58echo "TESTING: 2.1 hostname" 62if [ $NETWORK == "network" ]
59./2.1.exp $OVERLAY $CHROOT 63then
64 echo "TESTING: 2.1 hostname"
65 ./2.1.exp $OVERLAY $CHROOT
60 66
61echo "TESTING: 2.2 DNS" 67 echo "TESTING: 2.2 DNS"
62./2.2.exp $OVERLAY $CHROOT 68 ./2.2.exp $OVERLAY $CHROOT
63 69
64echo "TESTING: 2.3 mac-vlan" 70 echo "TESTING: 2.3 mac-vlan"
65./2.3.exp $OVERLAY $CHROOT 71 ./2.3.exp $OVERLAY $CHROOT
66 72
67echo "TESTING: 2.4 bridge" 73 echo "TESTING: 2.4 bridge"
68./2.4.exp $OVERLAY $CHROOT 74 ./2.4.exp $OVERLAY $CHROOT
69 75
70echo "TESTING: 2.5 interface" 76 echo "TESTING: 2.5 interface"
71./2.5.exp $OVERLAY $CHROOT 77 ./2.5.exp $OVERLAY $CHROOT
72 78
73echo "TESTING: 2.6 Default gateway" 79 echo "TESTING: 2.6 Default gateway"
74./2.6.exp $OVERLAY $CHROOT 80 ./2.6.exp $OVERLAY $CHROOT
81fi
75 82
76#################### 83####################
77# filesystem features 84# filesystem features