15 lines
310 B
Bash
15 lines
310 B
Bash
|
#!/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"
|