diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/profiles/profiles.sh | 13 |
1 files changed, 9 insertions, 4 deletions
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)" | |||
34 | echo "TESTING: profile no permissions (test/profiles/profile_noperm.exp)" | 34 | echo "TESTING: profile no permissions (test/profiles/profile_noperm.exp)" |
35 | ./profile_noperm.exp | 35 | ./profile_noperm.exp |
36 | 36 | ||
37 | # GitHub CI doesn't have a /run/user/$UID directory. Using it to test a small number of profiles. | ||
38 | UID=`id -u` | ||
39 | if [ -d "/run/user/$UID" ]; then | ||
40 | PROFILES=`ls /etc/firejail/*.profile` | ||
41 | echo "TESTING: default profiles installed in /etc" | ||
42 | else | ||
43 | PROFILES=`ls /etc/firejail/f*.profile` | ||
44 | echo "TESTING: small number of default profiles installed in /etc" | ||
45 | fi | ||
37 | 46 | ||
38 | |||
39 | |||
40 | echo "TESTING: default profiles installed in /etc" | ||
41 | PROFILES=`ls /etc/firejail/*.profile` | ||
42 | for PROFILE in $PROFILES | 47 | for PROFILE in $PROFILES |
43 | do | 48 | do |
44 | echo "TESTING: $PROFILE" | 49 | echo "TESTING: $PROFILE" |