aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-09-08 08:58:30 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-09-08 08:58:30 -0400
commit22d6041c8fe43e025676ea254d3cbff7da7e3d4f (patch)
treeb6f07ab0af1564e38b16e856e645625ce6570921 /test
parentMerge pull request #771 from l29ah/master (diff)
downloadfirejail-22d6041c8fe43e025676ea254d3cbff7da7e3d4f.tar.gz
firejail-22d6041c8fe43e025676ea254d3cbff7da7e3d4f.tar.zst
firejail-22d6041c8fe43e025676ea254d3cbff7da7e3d4f.zip
0.9.42 testing
Diffstat (limited to 'test')
-rwxr-xr-xtest/profiles/profile_syntax.exp2
-rwxr-xr-xtest/sysrq-trigger.exp21
-rwxr-xr-xtest/test-root.sh5
3 files changed, 3 insertions, 25 deletions
diff --git a/test/profiles/profile_syntax.exp b/test/profiles/profile_syntax.exp
index c8cb99a5f..d1be2074a 100755
--- a/test/profiles/profile_syntax.exp
+++ b/test/profiles/profile_syntax.exp
@@ -25,7 +25,7 @@ sleep 1
25send -- "ls -l /etc/shadow\r" 25send -- "ls -l /etc/shadow\r"
26expect { 26expect {
27 timeout {puts "TESTING ERROR 3\n";exit} 27 timeout {puts "TESTING ERROR 3\n";exit}
28 "root root 0" 28 "root root"
29} 29}
30 30
31sleep 1 31sleep 1
diff --git a/test/sysrq-trigger.exp b/test/sysrq-trigger.exp
deleted file mode 100755
index 18fb4a01a..000000000
--- a/test/sysrq-trigger.exp
+++ /dev/null
@@ -1,21 +0,0 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 1
13
14send -- "echo b > /proc/sysrq-trigger\r"
15expect {
16 timeout {puts "TESTING ERROR 1\n";exit}
17 "Read-only file system"
18}
19sleep 1
20
21puts "\n"
diff --git a/test/test-root.sh b/test/test-root.sh
index aca48d334..0fdaf4ff7 100755
--- a/test/test-root.sh
+++ b/test/test-root.sh
@@ -44,9 +44,6 @@ then
44 ./servers6.exp 44 ./servers6.exp
45fi 45fi
46 46
47echo "TESTING: /proc/sysrq-trigger reset disabled (sysrq-trigger.exp)"
48./sysrq-trigger.exp
49
50echo "TESTING: seccomp umount (seccomp-umount.exp)" 47echo "TESTING: seccomp umount (seccomp-umount.exp)"
51./filters/seccomp-umount.exp 48./filters/seccomp-umount.exp
52 49
@@ -80,3 +77,5 @@ rm -f /tmp/chroot/etc/resolv.conf
80ln -s tmp /tmp/chroot/etc/resolv.conf 77ln -s tmp /tmp/chroot/etc/resolv.conf
81./chroot-resolvconf.exp 78./chroot-resolvconf.exp
82rm -f tmpfile 79rm -f tmpfile
80rm /tmp/chroot/etc/resolv.conf
81