diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-06 20:40:45 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-06 20:40:45 -0400 |
commit | 7526e567cd80ceec483ce3546f6fe9897e6ffd48 (patch) | |
tree | 5de7f1534ec0574b59c831838dd6d75a33d2f996 /test/cpu-print.exp | |
parent | ssh/scp/sftp fixes (diff) | |
download | firejail-7526e567cd80ceec483ce3546f6fe9897e6ffd48.tar.gz firejail-7526e567cd80ceec483ce3546f6fe9897e6ffd48.tar.zst firejail-7526e567cd80ceec483ce3546f6fe9897e6ffd48.zip |
--cpu.print
Diffstat (limited to 'test/cpu-print.exp')
-rwxr-xr-x | test/cpu-print.exp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/cpu-print.exp b/test/cpu-print.exp new file mode 100755 index 000000000..d8e3fbb04 --- /dev/null +++ b/test/cpu-print.exp | |||
@@ -0,0 +1,21 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --name=test --cpu=1,2\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 2 | ||
13 | |||
14 | spawn $env(SHELL) | ||
15 | send -- "firejail --cpu.print=test\r" | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 1\n";exit} | ||
18 | "Cpus_allowed_list: 1-2" | ||
19 | } | ||
20 | sleep 1 | ||
21 | puts "\nall done\n" | ||