diff options
author | 2016-05-03 10:33:10 -0400 | |
---|---|---|
committer | 2016-05-03 10:33:10 -0400 | |
commit | 723dde8d085f6b2510fcf210721d0de8e8f14a86 (patch) | |
tree | c3c10c494c72eb1c3f0cda4a3b0be748a4ce42d4 /test/network/bandwidth.exp | |
parent | networking features testing (diff) | |
download | firejail-723dde8d085f6b2510fcf210721d0de8e8f14a86.tar.gz firejail-723dde8d085f6b2510fcf210721d0de8e8f14a86.tar.zst firejail-723dde8d085f6b2510fcf210721d0de8e8f14a86.zip |
networking features testing
Diffstat (limited to 'test/network/bandwidth.exp')
-rwxr-xr-x | test/network/bandwidth.exp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/network/bandwidth.exp b/test/network/bandwidth.exp index 33b351296..a3dc9b55f 100755 --- a/test/network/bandwidth.exp +++ b/test/network/bandwidth.exp | |||
@@ -1,4 +1,7 @@ | |||
1 | #!/usr/bin/expect -f | 1 | #!/usr/bin/expect -f |
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2016 Firejail Authors | ||
4 | # License GPL v2 | ||
2 | 5 | ||
3 | set timeout 10 | 6 | set timeout 10 |
4 | spawn $env(SHELL) | 7 | spawn $env(SHELL) |
@@ -51,11 +54,11 @@ expect { | |||
51 | } | 54 | } |
52 | sleep 1 | 55 | sleep 1 |
53 | 56 | ||
54 | send -- "firejail --bandwidth=test status; pwd\r" | 57 | send -- "firejail --bandwidth=test status; echo done\r" |
55 | expect { | 58 | expect { |
56 | timeout {puts "TESTING ERROR 8\n";exit} | 59 | timeout {puts "TESTING ERROR 8\n";exit} |
57 | "rate 80Kbit burst 10Kb" {puts "TESTING ERROR 9\n";exit} | 60 | "rate 80Kbit burst 10Kb" {puts "TESTING ERROR 9\n";exit} |
58 | "home" {puts "ok\n"} | 61 | "done" |
59 | } | 62 | } |
60 | sleep 1 | 63 | sleep 1 |
61 | 64 | ||