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
26 lines
789 B
Bash
Executable File
26 lines
789 B
Bash
Executable File
#!/bin/bash
|
|
# Functional test: kernel - realtime - async_handler
|
|
# LTP Realtime: run.sh -t func/async_handler
|
|
# Beakerlib-based test with lifecycle management
|
|
|
|
. /usr/share/beakerlib/beakerlib.sh || exit 1
|
|
. "$(dirname "$0")/../lib.sh"
|
|
|
|
rlJournalStart
|
|
rlPhaseStartSetup "环境准备"
|
|
realtimeSetup
|
|
TmpDir=$(mktemp -d)
|
|
rlRun "cd $TmpDir" 0 "进入临时测试目录"
|
|
rlPhaseEnd
|
|
|
|
rlPhaseStartTest "LTP Realtime - async_handler"
|
|
rlRun "_realtimeRunCase async_handler" 0 "执行 LTP Realtime async_handler"
|
|
rlPhaseEnd
|
|
|
|
rlPhaseStartCleanup "清理测试环境"
|
|
rlRun "cd /" 0 "离开测试目录"
|
|
[ -n "$TmpDir" ] && [ -d "$TmpDir" ] && rlRun "rm -rf $TmpDir" 0 "清理"
|
|
rlPhaseEnd
|
|
|
|
rlJournalPrintText
|
|
rlJournalEnd |