Skip to content

Commit

Permalink
Remove intel_vsec check from telemetry tests
Browse files Browse the repository at this point in the history
Which will be covered in intel_tpmi cases

Signed-off-by: qwang59 <[email protected]>
  • Loading branch information
qwang59 authored and ysun committed Sep 4, 2024
1 parent 02f0c5c commit 218975a
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 43 deletions.
37 changes: 16 additions & 21 deletions BM/telemetry/telemetry_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,25 +62,20 @@ pci_test() {
do_cmd "lspci -knnv | grep -c intel_vsec"
}

pre_unload_driver() {
rmmod intel_pmc_core
rmmod intel_rapl_tpmi
rmmod isst_tpmi
rmmod isst_tpmi_core
rmmod intel_uncore_frequency_tpmi
rmmod intel_vsec_tpmi
unload_module() {
# $1 is the driver module name
local module_name=$1
is_kmodule_builtin "$module_name" && skip_test
load_unload_module.sh -c -d "$module_name" &&
do_cmd "load_unload_module.sh -u -d $module_name"
}

driver_test() {
module=$1
pre_unload_driver
load_unload_module.sh -c -d "$module" &&
do_cmd "load_unload_module.sh -u -d $module"
do_cmd "load_unload_module.sh -l -d $module"
sleep 5
pre_unload_driver
do_cmd "load_unload_module.sh -u -d $module"
do_cmd "load_unload_module.sh -l -d $module"
load_module() {
# $1 is the driver module name
local module_name=$1
is_kmodule_builtin "$module_name" && skip_test
do_cmd "load_unload_module.sh -l -d $module_name" &&
load_unload_module.sh -c -d "$module_name"
}

dmesg_check() {
Expand All @@ -107,10 +102,10 @@ telemetry_test() {
pci_test
;;
telem_driver)
driver_test "pmt_telemetry"
;;
pci_driver)
driver_test "intel_vsec"
unload_module pmt_telemetry
unload_module pmt_class
load_module pmt_class
load_module pmt_telemetry
;;
esac
dmesg_check
Expand Down
1 change: 0 additions & 1 deletion BM/telemetry/tests
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# This file collects the telemetry cases
telemetry_tests.sh -t pci
telemetry_tests.sh -t pci_driver
telemetry_tests.sh -t telem_driver
telemetry_tests.sh -t telem_sysfs
telemetry_tests.sh -t telem_dev
Expand Down
7 changes: 0 additions & 7 deletions scenario/emr-oe/tests-telemetry

This file was deleted.

1 change: 1 addition & 0 deletions scenario/emr-oe/tests-telemetry
7 changes: 0 additions & 7 deletions scenario/spr-oe/tests-telemetry

This file was deleted.

1 change: 1 addition & 0 deletions scenario/spr-oe/tests-telemetry
7 changes: 0 additions & 7 deletions scenario/srf-oe/tests-telemetry

This file was deleted.

1 change: 1 addition & 0 deletions scenario/srf-oe/tests-telemetry

0 comments on commit 218975a

Please sign in to comment.