From bc068c6745767b7567eb89570418357fd4b5cf26 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Sun, 8 Nov 2020 09:37:22 -0500 Subject: adding test-profiles to ci test --- test/profiles/profiles.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'test/profiles/profiles.sh') diff --git a/test/profiles/profiles.sh b/test/profiles/profiles.sh index 69f0dc086..47717f1e0 100755 --- a/test/profiles/profiles.sh +++ b/test/profiles/profiles.sh @@ -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" -- cgit v1.2.3-54-g00ecf