aboutsummaryrefslogtreecommitdiffstats
path: root/test/test-profile.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-profile.exp')
-rwxr-xr-xtest/test-profile.exp20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/test-profile.exp b/test/test-profile.exp
new file mode 100755
index 000000000..89fe9c10a
--- /dev/null
+++ b/test/test-profile.exp
@@ -0,0 +1,20 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7if { $argc != 1 } {
8 puts "TESTING ERROR: argument missing"
9 puts "Usage: test-profile.exp profile_name"
10 exit
11}
12
13send -- "firejail --profile=$argv\r"
14expect {
15 timeout {puts "TESTING ERROR 0\n";exit}
16 "Child process initialized"
17}
18send -- "exit\r"
19after 100
20puts "\n"