Imported Upstream version 20081130
[ltp-debian.git] / testcases / audit-test / fail-safe / run.conf
blob20b83436c6c44955e673d13fa41dfa13bd8110ff
1 #!/bin/bash
3 # =============================================================================
4 # (c) Copyright Hewlett-Packard Development Company, L.P., 2005
6 # This program is free software: you can redistribute it and/or modify
7 # it under the terms of version 2 the GNU General Public License as
8 # published by the Free Software Foundation.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # =============================================================================
19 function run_test {
20 declare x=$1
21 shift
23 # Run the test
24 cd tests
25 ./test_$x.bash "$@"
28 + pam_loginuid success
29 + pam_loginuid fail
31 + max_log_file keep_logs
32 + max_log_file rotate
33 + max_log_file suspend
34 + max_log_file syslog
36 # These four get the same list of tests
37 for x in admin_space_left space_left disk_full_action; do
38 + $x halt
39 + $x single
40 + $x suspend
41 + $x syslog
42 done
44 # email actions are not currently supported under the lspp PPROFILE
45 if [[ $PPROFILE != lspp ]]; then
46 # email actions aren't fully available until version 1.0.8
47 audit_version=( $(rpm -q audit --qf '%{VERSION}' | sed 's/\./ /g') )
48 if [[ ${audit_version[0]} -gt 1 || ( ${audit_version[0]} -eq 1 &&
49 ( ${audit_version[1]} -gt 0 || ${audit_version[2]} -ge 8 ) ) ]]
50 then
51 + admin_space_left email
52 + space_left email