Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 24 TDX test cases and 24 No-TD test cases #348

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion BM/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* [tdx-guest](tdx-guest/README.md)
* [tdx-osv-sanity](tdx-osv-sanity/README.md) (TODO)
* [telemetry](telemetry/README.md)
* [tpm](tpm/README.md)
* [Intel_TH(Trace Hub)](th/README.md)
* [thermal](thermal/README.md)
* [topology](topology/README.md)
Expand Down
25 changes: 0 additions & 25 deletions BM/amx/Makefile

This file was deleted.

69 changes: 0 additions & 69 deletions BM/amx/tests

This file was deleted.

Empty file modified BM/cet/tests
100644 → 100755
Empty file.
30 changes: 0 additions & 30 deletions BM/common/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,6 @@ block_test() {
exit 2
}

skip_test() {
caller_info="${BASH_SOURCE[1]##*/}:${BASH_LINENO[0]}:${FUNCNAME[1]}()"
test_print_wrg "skip_test() is called by $caller_info"
test_print_wrg "SKIPPING TEST: $*"
exec_teardown
exit 0
}

# Wrapper function to mark a test as not applicable,
# it accepts a string to explain why the test is not
# applicable. exec_teardown is called before exiting with 32.
Expand Down Expand Up @@ -661,25 +653,3 @@ check_turbostat_ver() {
2024 version from the latest upstream kernel source located at: tools/power/x86/turbostat"
fi
}

# Check module existence. If not, try to load module
# Arguments: $1 module name
# Output: 0 for module exists or loaded succss; 1 for module loaded failure
check_module() {
local module_name=$1

module_exist=$(lsmod | grep -w "$module_name")
if [[ -n "$module_exist" ]]; then
test_print_trc "Module $module_name is already loaded"
else
modprobe $module_name
if [ $? -eq 0 ]; then
test_print_trc "Module $module_name is loaded"
else
block_test "Module $module_name cannot be loaded"
return 1
fi
fi

return 0
}
10 changes: 2 additions & 8 deletions BM/common/general_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,9 @@ cd "$(dirname "$0")" 2>/dev/null && source ../.env
usage() {
cat <<__EOF
usage: ./${0##*/} [-t TEST_TYPE][-k KCONFIG or keywrod][-p parm][-h]
-t Test type, i.e., kconfig | fms | dmesg | turbostat | module
-t Test type like KCONFIG, FMS
-k KCONFIG name like CONFIG_XXX or keyword
-p PARM for test
option for dmesg check
fms list file for fms check
module name for module check
-p PARM like y, null
-h show This
__EOF
}
Expand All @@ -42,9 +39,6 @@ general_test() {
turbostat)
check_turbostat_ver
;;
module)
check_module "$PARM"
;;
*)
die "Invalid TYPE:$TYPE"
;;
Expand Down
Loading
Loading