From 4ece607b8f833cf0974bcf2a5e41f0504cbbff59 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 28 Jun 2016 07:58:20 -0400 Subject: sysutils --- test/sysutils/gzip.exp | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 test/sysutils/gzip.exp (limited to 'test/sysutils/gzip.exp') diff --git a/test/sysutils/gzip.exp b/test/sysutils/gzip.exp new file mode 100755 index 000000000..ab0e727de --- /dev/null +++ b/test/sysutils/gzip.exp @@ -0,0 +1,26 @@ +#!/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 -- "/bin/gzip -c /usr/bin/firejail > firejail_t1\r" +sleep 1 + +send -- "firejail /bin/gzip -c /usr/bin/firejail > firejail_t2\r" +sleep 1 + +send -- "diff -s firejail_t1 firejail_t2\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "firejail_t1 and firejail_t2 are identical" +} + +send -- "rm firejail_t*\r" +sleep 1 + + +puts "\nall done\n" -- cgit v1.2.3-54-g00ecf