From 020c5449036c461ea1829e854da43429322059d6 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 24 Apr 2016 06:32:15 -0400 Subject: testing --- test/environment/csh.exp | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 test/environment/csh.exp (limited to 'test/environment/csh.exp') diff --git a/test/environment/csh.exp b/test/environment/csh.exp new file mode 100755 index 000000000..10ad3607e --- /dev/null +++ b/test/environment/csh.exp @@ -0,0 +1,43 @@ +#!/usr/bin/expect -f +# This file is part of Firejail project +# Copyright (C) 2014-2016 Firejail Authors +# License GPL v2 + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail --private --tracelog --csh\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "Child process initialized" +} +sleep 1 + +send -- "ls -al;pwd\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + ".cshrc" +} +expect { + timeout {puts "TESTING ERROR 1.1\n";exit} + "home" +} +send -- "env | grep SHELL;pwd\r" +expect { + timeout {puts "TESTING ERROR 2\n";exit} + "SHELL" +} +expect { + timeout {puts "TESTING ERROR 2.1\n";exit} + "/bin/csh" +} +expect { + timeout {puts "TESTING ERROR 2.2\n";exit} + "home" +} +send -- "exit\r" +sleep 1 + +puts "\n" + -- cgit v1.2.3-70-g09d2