aboutsummaryrefslogtreecommitdiffstats
path: root/test/profiles/test-profile.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-21 14:37:53 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-21 14:37:53 -0400
commitad2f7bc496e3cc83bca2381515312dd2ef6fc7f1 (patch)
tree0a923afb486b1f13ab35d26138cdbf51e0961aec /test/profiles/test-profile.exp
parent--read-write option (diff)
downloadfirejail-ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1.tar.gz
firejail-ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1.tar.zst
firejail-ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1.zip
make test-profiles
Diffstat (limited to 'test/profiles/test-profile.exp')
-rwxr-xr-xtest/profiles/test-profile.exp23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/profiles/test-profile.exp b/test/profiles/test-profile.exp
new file mode 100755
index 000000000..590b42652
--- /dev/null
+++ b/test/profiles/test-profile.exp
@@ -0,0 +1,23 @@
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
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10if { $argc != 1 } {
11 puts "TESTING ERROR: argument missing"
12 puts "Usage: test-profile.exp profile_name"
13 exit
14}
15
16send -- "firejail --profile=$argv /bin/bash\r"
17expect {
18 timeout {puts "TESTING ERROR 0\n";exit}
19 "Child process initialized"
20}
21send -- "exit\r"
22after 100
23puts "\n"