diff options
author | Alexander Lobodzinski <alobodzinski@users.noreply.github.com> | 2016-01-22 13:52:34 +0300 |
---|---|---|
committer | Alexander Lobodzinski <alobodzinski@users.noreply.github.com> | 2016-01-22 13:52:34 +0300 |
commit | 6309588246df48d05330d5bb351ec7e982a98778 (patch) | |
tree | e0542f6797c1e7b4fb1a0fbd35101ab34f6e52e9 /include/tests_accounting | |
parent | 089f7013c17290776eb64b4dd6ce3be84ddba283 (diff) |
[ACCT-2760]: Check availability OpenBSD accounting data
Diffstat (limited to 'include/tests_accounting')
-rw-r--r-- | include/tests_accounting | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/tests_accounting b/include/tests_accounting index cfc1113d..6a092154 100644 --- a/include/tests_accounting +++ b/include/tests_accounting @@ -44,6 +44,25 @@ # ################################################################################# # + # Test : ACCT-2760 + # Description : Check availability OpenBSD accounting data + Register --test-no ACCT-2760 --os OpenBSD --weight L --network NO --description "Check for available OpenBSD accounting information" + if [ ${SKIPTEST} -eq 0 ]; then + if [ -f /var/account/acct ]; then + Display --indent 2 --text "- Checking accounting information" --result OK --color GREEN + LogText "Result: /var/account/acct available" + AddHP 3 3 + else + Display --indent 2 --text "- Checking accounting information" --result "NOT FOUND" --color YELLOW + LogText "Result: No accounting information available" + LogText "Remark: Possibly there is another location where the accounting data is stored" + ReportSuggestion ${TEST_NO} "Enable process accounting" + AddHP 2 3 + fi + fi +# +################################################################################# +# # Test : ACCT-9622 # Description : Check availability Linux accounting data # Notes : /var/log/pacct (Slackware) |