mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-16 06:06:03 -06:00
private-etc: kdiff3, gzip, gunzip, tar etc
This commit is contained in:
parent
8983cff10a
commit
29da82d08a
4 changed files with 15 additions and 11 deletions
|
|
@ -44,6 +44,7 @@ x11 none
|
|||
|
||||
private-cache
|
||||
private-dev
|
||||
private-etc
|
||||
|
||||
dbus-user none
|
||||
dbus-system none
|
||||
|
|
|
|||
|
|
@ -52,6 +52,7 @@ disable-mnt
|
|||
private-bin kdiff3
|
||||
private-cache
|
||||
private-dev
|
||||
private-etc @x11
|
||||
|
||||
dbus-user none
|
||||
dbus-system none
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue