aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-12-06 18:06:46 -0500
committerLibravatar netblue30 <netblue30@yahoo.com>2017-12-06 18:06:46 -0500
commit30a15fe9d0907da202914b87111c700235319296 (patch)
treef198cc3ec1bb9b2c19e5410d952ca3951fcd0cae /test/utils
parenttesting (diff)
downloadfirejail-30a15fe9d0907da202914b87111c700235319296.tar.gz
firejail-30a15fe9d0907da202914b87111c700235319296.tar.zst
firejail-30a15fe9d0907da202914b87111c700235319296.zip
testing
Diffstat (limited to 'test/utils')
-rwxr-xr-xtest/utils/cpu-print.exp16
1 files changed, 12 insertions, 4 deletions
diff --git a/test/utils/cpu-print.exp b/test/utils/cpu-print.exp
index f639f7c9f..714745106 100755
--- a/test/utils/cpu-print.exp
+++ b/test/utils/cpu-print.exp
@@ -16,7 +16,11 @@ sleep 1
16send -- "cat /proc/self/status | grep Cpus\r" 16send -- "cat /proc/self/status | grep Cpus\r"
17expect { 17expect {
18 timeout {puts "TESTING ERROR 1\n";exit} 18 timeout {puts "TESTING ERROR 1\n";exit}
19 "Cpus_allowed_list: 0" 19 "Cpus"
20}
21expect {
22 timeout {puts "TESTING ERROR 2\n";exit}
23 "_allowed_list: 0"
20} 24}
21after 100 25after 100
22send -- "exit\r" 26send -- "exit\r"
@@ -25,7 +29,7 @@ sleep 1
25 29
26send -- "firejail --name=test --cpu=1\r" 30send -- "firejail --name=test --cpu=1\r"
27expect { 31expect {
28 timeout {puts "TESTING ERROR 1\n";exit} 32 timeout {puts "TESTING ERROR 3\n";exit}
29 "Child process initialized" 33 "Child process initialized"
30} 34}
31sleep 1 35sleep 1
@@ -33,8 +37,12 @@ sleep 1
33spawn $env(SHELL) 37spawn $env(SHELL)
34send -- "firejail --cpu.print=test\r" 38send -- "firejail --cpu.print=test\r"
35expect { 39expect {
36 timeout {puts "TESTING ERROR 2\n";exit} 40 timeout {puts "TESTING ERROR 4\n";exit}
37 "Cpus_allowed_list: 1" 41 "Cpus"
42}
43expect {
44 timeout {puts "TESTING ERROR 5\n";exit}
45 "_allowed_list: 1"
38} 46}
39after 100 47after 100
40puts "\nall done\n" 48puts "\nall done\n"