summaryrefslogtreecommitdiffstats
path: root/test/profiles/profiles.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/profiles/profiles.sh')
-rwxr-xr-xtest/profiles/profiles.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/profiles/profiles.sh b/test/profiles/profiles.sh
new file mode 100755
index 000000000..a20ed5432
--- /dev/null
+++ b/test/profiles/profiles.sh
@@ -0,0 +1,22 @@
1#!/bin/bash
2# This file is part of Firejail project
3# Copyright (C) 2014-2016 Firejail Authors
4# License GPL v2
5
6export MALLOC_CHECK_=3
7export MALLOC_PERTURB_=$(($RANDOM % 255 + 1))
8
9echo "TESTING: default profiles installed in /etc"
10PROFILES=`ls /etc/firejail/*.profile`
11for PROFILE in $PROFILES
12do
13 echo "TESTING: $PROFILE"
14 ./test-profile.exp $PROFILE
15done
16
17echo "TESTING: profile syntax (profiles/profile_syntax.exp)"
18./profile_syntax.exp
19
20echo "TESTING: profile syntax 2 (profiles/profile_syntax2.exp)"
21./profile_syntax2.exp
22