From 020c5449036c461ea1829e854da43429322059d6 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 24 Apr 2016 06:32:15 -0400 Subject: testing --- test/environment/zsh.exp | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 test/environment/zsh.exp (limited to 'test/environment/zsh.exp') diff --git a/test/environment/zsh.exp b/test/environment/zsh.exp new file mode 100755 index 000000000..2604b2be5 --- /dev/null +++ b/test/environment/zsh.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 --zsh\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} + ".zshrc" +} +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} + "/usr/bin/zsh" +} +expect { + timeout {puts "TESTING ERROR 2.2\n";exit} + "home" +} +send -- "exit\r" +sleep 1 + +puts "\n" + -- cgit v1.2.3-54-g00ecf