aboutsummaryrefslogtreecommitdiffstats
path: root/test/fs/tab.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/fs/tab.exp')
-rwxr-xr-xtest/fs/tab.exp46
1 files changed, 46 insertions, 0 deletions
diff --git a/test/fs/tab.exp b/test/fs/tab.exp
new file mode 100755
index 000000000..cc9e11ed5
--- /dev/null
+++ b/test/fs/tab.exp
@@ -0,0 +1,46 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2022 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10
11send -- "firejail --private ls -al\r"
12expect {
13 timeout {puts "TESTING ERROR 0\n";exit}
14 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
15}
16expect {
17 timeout {puts "TESTING ERROR 1\n";exit}
18 ".inputrc"
19}
20sleep 1
21
22send -- "firejail --private --tab ls -al\r"
23expect {
24 timeout {puts "TESTING ERROR 2\n";exit}
25 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
26}
27expect {
28 timeout {puts "TESTING ERROR 3\n";exit}
29 ".inputrc" {puts "TESTING ERROR 4\n";exit}
30 "Parent is shutting down"
31}
32sleep 1
33
34send -- "firejail --private --profile=tab.profile ls -al\r"
35expect {
36 timeout {puts "TESTING ERROR 5\n";exit}
37 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms"
38}
39expect {
40 timeout {puts "TESTING ERROR 6\n";exit}
41 ".inputrc" {puts "TESTING ERROR 7\n";exit}
42 "Parent is shutting down"
43}
44sleep 1
45
46puts "\nall done\n"