diff options
Diffstat (limited to 'test/root/git.exp')
-rwxr-xr-x | test/root/git.exp | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/test/root/git.exp b/test/root/git.exp new file mode 100755 index 000000000..c5ddeee89 --- /dev/null +++ b/test/root/git.exp | |||
@@ -0,0 +1,51 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | |||
8 | |||
9 | send -- "firejail --version\r" | ||
10 | expect { | ||
11 | timeout {puts "TESTING ERROR 1\n";exit} | ||
12 | "git install support is disabled" { puts "TESTING: git support not available in current build\n"; exit} | ||
13 | "git install support is enabled" { puts "git support available\n"} | ||
14 | } | ||
15 | |||
16 | set timeout 120 | ||
17 | send -- "firejail --git-install\r" | ||
18 | expect { | ||
19 | timeout {puts "TESTING ERROR 2\n";exit} | ||
20 | "Cloning into" | ||
21 | } | ||
22 | expect { | ||
23 | timeout {puts "TESTING ERROR 3\n";exit} | ||
24 | "Configuration options" | ||
25 | } | ||
26 | expect { | ||
27 | timeout {puts "TESTING ERROR 4\n";exit} | ||
28 | "src/fseccomp/fseccomp default seccomp" | ||
29 | } | ||
30 | expect { | ||
31 | timeout {puts "TESTING ERROR 5\n";exit} | ||
32 | "Mainline git Firejail version was installed in" | ||
33 | } | ||
34 | after 100 | ||
35 | |||
36 | send -- "firejail --git-uninstall\r" | ||
37 | expect { | ||
38 | timeout {puts "TESTING ERROR 6\n";exit} | ||
39 | "Cloning into" | ||
40 | } | ||
41 | expect { | ||
42 | timeout {puts "TESTING ERROR 7\n";exit} | ||
43 | "Configuration options" | ||
44 | } | ||
45 | expect { | ||
46 | timeout {puts "TESTING ERROR 8\n";exit} | ||
47 | "Firejail mainline git version uninstalled from" | ||
48 | } | ||
49 | after 100 | ||
50 | |||
51 | puts "\nall done\n" | ||