From b2b603eac941d2cdea97d7886dc7181c179a8160 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 29 Mar 2017 12:09:26 -0400 Subject: testing --- test/stress/env.exp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100755 test/stress/env.exp (limited to 'test/stress/env.exp') diff --git a/test/stress/env.exp b/test/stress/env.exp new file mode 100755 index 000000000..b327ba498 --- /dev/null +++ b/test/stress/env.exp @@ -0,0 +1,31 @@ +#!/usr/bin/expect -f +# This file is part of Firejail project +# Copyright (C) 2014-2017 Firejail Authors +# License GPL v2 + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +# env testing +send -- "firejail --profile=env.profile\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "Child process initialized" +} + +send -- "env | grep FJSTRESS77\r" +expect { + timeout {puts "TESTING ERROR 2\n";exit} + "FJSTRESS77=stress" +} + +send -- "env | grep FJSTRESS | wc -l\r" +expect { + timeout {puts "TESTING ERROR 3\n";exit} + "100" +} + +send -- "exit\r" +after 100 +puts "\nall done\n" -- cgit v1.2.3-54-g00ecf