private-etc: kdiff3, gzip, gunzip, tar etc

This commit is contained in:
netblue30 2023-02-10 14:38:57 -05:00
parent 8983cff10a
commit 29da82d08a
4 changed files with 15 additions and 11 deletions

View file

@ -44,6 +44,7 @@ x11 none
private-cache
private-dev
private-etc
dbus-user none
dbus-system none

View file

@ -52,6 +52,7 @@ disable-mnt
private-bin kdiff3
private-cache
private-dev
private-etc @x11
dbus-user none
dbus-system none

View file

@ -7,20 +7,14 @@ set timeout 10
spawn $env(SHELL)
match_max 100000
send -- "/bin/gzip -c /usr/bin/firejail > firejail_t1\r"
sleep 1
send -- "rm index.html*\r"
after 500
send -- "firejail /bin/gzip -c /usr/bin/firejail > firejail_t2\r"
sleep 1
send -- "diff -s firejail_t1 firejail_t2\r"
send -- "firejail gzip -c ../../mkdeb.sh | firejail gunzip -c\r"
expect {
timeout {puts "TESTING ERROR 1\n";exit}
"firejail_t1 and firejail_t2 are identical"
"This file is part of Firejail project"
}
send -- "rm firejail_t*\r"
sleep 1
after 500
puts "\nall done\n"

View file

@ -7,6 +7,14 @@ export MALLOC_CHECK_=3
export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
export LC_ALL=C
if command -v gzip
then
echo "TESTING: gzip"
./gzip.exp
else
echo "TESTING SKIP: md5sum not found"
fi
if command -v md5sum
then
echo "TESTING: md5sum"