From acf8efb878b84882a9df61eff51fdcaceb522a4c Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 8 Mar 2023 16:23:30 -0500 Subject: testing --- test/firecfg/firecfg.exp | 13 +++++++++++++ test/firecfg/firecfg.sh | 5 +++++ 2 files changed, 18 insertions(+) (limited to 'test/firecfg') diff --git a/test/firecfg/firecfg.exp b/test/firecfg/firecfg.exp index 0249fb7fa..755eea3a1 100755 --- a/test/firecfg/firecfg.exp +++ b/test/firecfg/firecfg.exp @@ -12,7 +12,20 @@ expect { timeout {puts "TESTING ERROR 0\n";exit} "ping: symbolic link to /usr/bin/firejail" } +after 100 +send -- "file /tmp/ttt/ping\r" +expect { + timeout {puts "TESTING ERROR 0\n";exit} + "ping: symbolic link to /usr/bin/firejail" +} +after 100 + +send -- "firecfg --list\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "/usr/local/bin/ping" +} after 100 puts "\nall done\n" diff --git a/test/firecfg/firecfg.sh b/test/firecfg/firecfg.sh index 6b03cc841..6f2bb5244 100755 --- a/test/firecfg/firecfg.sh +++ b/test/firecfg/firecfg.sh @@ -7,6 +7,11 @@ export MALLOC_CHECK_=3 export MALLOC_PERTURB_=$(($RANDOM % 255 + 1)) export LC_ALL=C +sudo mkdir /tmp/ttt sudo firecfg +sudo firecfg --bindir=/tmp/ttt + echo "TESTING: firecfg (test/firecfg/firecfg.exp)" ./firecfg.exp + +sudo rm -fr /tmp/ttt -- cgit v1.2.3-54-g00ecf