openscap-report/tests/smoke.sh

15 lines
310 B
Bash
Raw Normal View History

2023-03-28 14:17:55 +00:00
#!/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"