Add smoke test

This commit is contained in:
Jan Rodak 2023-03-28 16:17:55 +02:00
parent 8b5962747f
commit 41ae56c0b3
3 changed files with 236470 additions and 0 deletions

7
tests/smoke.fmf Normal file
View 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
View 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

File diff suppressed because one or more lines are too long