Skip to content

Commit

Permalink
adding test-profiles to ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
netblue30 committed Nov 8, 2020
1 parent 26ad51d commit bc068c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ test: test-profiles test-private-lib test-fcopy test-fnetfilter test-fs test-uti
test-noprofiles: test-private-lib test-fcopy test-fnetfilter test-fs test-utils test-sysutils test-environment test-apps test-apps-x11 test-apps-x11-xorg test-filters test-arguments
echo "TEST COMPLETE"

test-github: test-fcopy test-fnetfilter test-fs test-utils test-sysutils test-environment test-arguments
test-github: test-profiles test-fcopy test-fnetfilter test-fs test-utils test-sysutils test-environment test-arguments
echo "TEST COMPLETE"

##########################################
Expand Down
13 changes: 9 additions & 4 deletions test/profiles/profiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,16 @@ 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/f*.profile`
echo "TESTING: small number of default profiles installed in /etc"
fi



echo "TESTING: default profiles installed in /etc"
PROFILES=`ls /etc/firejail/*.profile`
for PROFILE in $PROFILES
do
echo "TESTING: $PROFILE"
Expand Down

0 comments on commit bc068c6

Please sign in to comment.