forked from woqidaideshi/openruyi-autotest
All .sh files under tests/ lacked the Git executable permission bit (100644 instead of 100755), causing tmt run to fail with 'permission denied' errors on Linux servers. Fixes: woqidaideshi/openruyi-autotest#80
27 lines
718 B
Bash
Executable File
27 lines
718 B
Bash
Executable File
#!/bin/bash
|
|
# Security test: openscap - info
|
|
# OpenSCAP: 验证数据流文件有效性
|
|
# Beakerlib-based test with lifecycle management
|
|
|
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
|
. "$(dirname $0)/../../lib.sh"
|
|
|
|
rlJournalStart
|
|
rlPhaseStartSetup "Environment Setup"
|
|
openscapSetup
|
|
TmpDir=$(mktemp -d)
|
|
rlRun "cd $TmpDir" 0 "Enter tmp dir"
|
|
rlPhaseEnd
|
|
|
|
rlPhaseStartTest "openscap - info"
|
|
rlRun "_openscapInfo" 0 "Run 验证数据流文件有效性"
|
|
rlPhaseEnd
|
|
|
|
rlPhaseStartCleanup "Cleanup"
|
|
rlRun "cd /" 0 "Leave tmp dir"
|
|
[ -n "$TmpDir" ] && [ -d "$TmpDir" ] && rlRun "rm -rf $TmpDir" 0 "Clean tmp"
|
|
rlPhaseEnd
|
|
|
|
rlJournalPrintText
|
|
rlJournalEnd
|