testing fix

This commit is contained in:
netblue30 2022-07-10 11:07:46 -04:00
parent 29783d9704
commit 502b9bbd90
3 changed files with 54 additions and 9 deletions

5
README
View file

@ -67,6 +67,8 @@ Firejail Authors (alphabetical order)
0x7969 (https://github.com/0x7969)
- fix wire-desktop.profile
- add ferdi.profile
0x9fff00 (https://github.com/0x9fff00)
- add Colossal Order to steam.profile
7twin (https://github.com/7twin_)
- fix typos
- fix flameshot raw screenshots
@ -116,6 +118,8 @@ Alexander Gerasiov (https://github.com/gerasiov)
- profile updates
Alexander Stein (https://github.com/ajstein)
- added profile for qutebrowser
alkim0 (https://github.com/alkim0)
- warn when encountering EIO during remount
Amin Vakil (https://github.com/aminvakil)
- whois profile fix
- added profile for strawberry
@ -316,6 +320,7 @@ Davide Beatrici (https://github.com/davidebeatrici)
- minetest fixes
- map /dev/input with "--private-dev", add "--no-input" option to disable it
- whitelist /usr/share/TelegramDesktop in telegram.profile
- allow access to ~/.cache/winetricks
David Hyrule (https://github.com/Svaag)
- remove nou2f in ssh profile
Deelvesh Bunjun (https://github.com/DeelveshBunjun)

47
test/profiles/all-profiles.sh Executable file
View file

@ -0,0 +1,47 @@
#!/bin/bash
# This file is part of Firejail project
# Copyright (C) 2014-2022 Firejail Authors
# License GPL v2
export MALLOC_CHECK_=3
export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
export LC_ALL=C
echo "TESTING: profile comments (test/profiles/profilecomment.exp)"
./profile_comment.exp
echo "TESTING: profile conditional (test/profiles/conditional.exp)"
./conditional.exp
echo "TESTING: profile recursivity (test/profiles/profile_recursivity.exp)"
./profile_recursivity.exp
echo "TESTING: profile application name (test/profiles/profile_appname.exp)"
./profile_appname.exp
echo "TESTING: profile syntax (test/profiles/profile_syntax.exp)"
./profile_syntax.exp
echo "TESTING: profile syntax 2 (test/profiles/profile_syntax2.exp)"
./profile_syntax2.exp
echo "TESTING: ignore command (test/profiles/ignore.exp)"
./ignore.exp
echo "TESTING: profile read-only (test/profiles/profile_readonly.exp)"
./profile_readonly.exp
echo "TESTING: profile read-only links (test/profiles/profile_readonly.exp)"
./profile_followlnk.exp
echo "TESTING: profile no permissions (test/profiles/profile_noperm.exp)"
./profile_noperm.exp
PROFILES=`ls /etc/firejail/*.profile`
echo "TESTING: default profiles installed in /etc"
for PROFILE in $PROFILES
do
echo "TESTING: $PROFILE"
./test-profile.exp $PROFILE
done

View file

@ -37,15 +37,8 @@ echo "TESTING: profile read-only links (test/profiles/profile_readonly.exp)"
echo "TESTING: profile no permissions (test/profiles/profile_noperm.exp)"
./profile_noperm.exp
# GitHub CI doesn't have a /run/user/$UID directory. Using it to test a small number of profiles.
UID=`id -u`
if [ -d "/run/user/$UID" ]; then
PROFILES=`ls /etc/firejail/*.profile`
echo "TESTING: default profiles installed in /etc"
else
PROFILES=`ls /etc/firejail/transmission*.profile /etc/firejail/fi*.profile /etc/firejail/fl*.profile /etc/firejail/free*.profile`
echo "TESTING: small number of default profiles installed in /etc"
fi
PROFILES=`ls /etc/firejail/transmission*.profile /etc/firejail/fi*.profile /etc/firejail/fl*.profile /etc/firejail/free*.profile`
echo "TESTING: small number of default profiles installed in /etc"
for PROFILE in $PROFILES
do