aboutsummaryrefslogtreecommitdiffstats
path: root/test/ssh/login.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/ssh/login.exp')
-rwxr-xr-xtest/ssh/login.exp52
1 files changed, 0 insertions, 52 deletions
diff --git a/test/ssh/login.exp b/test/ssh/login.exp
deleted file mode 100755
index 0a05b2dd1..000000000
--- a/test/ssh/login.exp
+++ /dev/null
@@ -1,52 +0,0 @@
1#!/usr/bin/expect -f
2# This file is part of Firejail project
3# Copyright (C) 2014-2023 Firejail Authors
4# License GPL v2
5
6set timeout 10
7spawn $env(SHELL)
8match_max 100000
9
10send -- "ssh firejail-test@0\r"
11expect {
12 timeout {puts "TESTING ERROR 0\n";exit}
13 -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" {puts "OK\n"}
14 "an existing sandbox was detected" {puts "OK\n"}
15}
16sleep 1
17
18send -- "ps aux | wc -l\r"
19expect {
20 timeout {puts "TESTING ERROR 1\n";exit}
21 "5"
22}
23after 100
24
25send -- "ls -l /home | grep drw | wc -l\r"
26expect {
27 timeout {puts "TESTING ERROR 2\n";exit}
28 "1"
29}
30after 100
31
32send -- "cat /proc/self/status | grep Seccomp\r"
33expect {
34 timeout {puts "TESTING ERROR 3\n";exit}
35 "2"
36}
37after 100
38
39send -- "cat /proc/self/status | grep CapBnd\r"
40expect {
41 timeout {puts "TESTING ERROR 4\n";exit}
42 "0000000000000000"
43}
44after 100
45
46# preparing scp/sftp tests
47send -- "rm testfile\r"
48
49send -- "exit\r"
50sleep 1
51
52puts "\nall done\n"