Add smoke test
This commit is contained in:
parent
8b5962747f
commit
41ae56c0b3
7
tests/smoke.fmf
Normal file
7
tests/smoke.fmf
Normal file
@ -0,0 +1,7 @@
|
||||
require:
|
||||
- openscap-report
|
||||
summary: Basic smoke test
|
||||
test: ./smoke.sh
|
||||
tag:
|
||||
- smoke
|
||||
tier: 0
|
14
tests/smoke.sh
Executable file
14
tests/smoke.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
# Test of the basic function
|
||||
|
||||
set -e -o pipefail
|
||||
|
||||
# Generate report
|
||||
oscap-report < ./test_data/arf-report.xml > report.html
|
||||
|
||||
# Search for some rule ID in the report
|
||||
grep -q "xccdf_org\.ssgproject\.content_rule_enable_fips_mode" report.html
|
||||
|
||||
rm report.html
|
||||
|
||||
echo "Report generation success"
|
236449
tests/test_data/arf-report.xml
Normal file
236449
tests/test_data/arf-report.xml
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user