diff options
Diffstat (limited to 'test/sysutils/file.exp')
-rwxr-xr-x | test/sysutils/file.exp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/sysutils/file.exp b/test/sysutils/file.exp new file mode 100755 index 000000000..a8ad84d12 --- /dev/null +++ b/test/sysutils/file.exp | |||
@@ -0,0 +1,18 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2016 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | spawn $env(SHELL) | ||
8 | match_max 100000 | ||
9 | |||
10 | send -- "echo 'test string for firejail test' > /tmp/firejail_test.txt; firejail file /tmp/firejail_test.txt\r" | ||
11 | expect { | ||
12 | timeout {puts "TESTING ERROR 1\n";exit} | ||
13 | "ASCII text" | ||
14 | } | ||
15 | send -- "rm /tmp/firejail_test.txt\r" | ||
16 | sleep 1 | ||
17 | |||
18 | puts "\nall done\n" | ||