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

0611 1 #258

Merged
merged 5 commits into from
Jun 12, 2024
Merged
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
2 changes: 1 addition & 1 deletion BM/ifs/ifs_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ test_ifs() {
list_cpus "$PROCESSOR"

case $NAME in
"reload_ifs")
"reload_ifs_scan_image")
modprobe -r "$IFS_NAME"
enable_ifs_module
# Load the batch
Expand Down
2 changes: 1 addition & 1 deletion BM/ifs/tests
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ifs_tests.sh -m 0 -p all -b 1 -n legacy_twice_run
ifs_tests.sh -m 0 -p all -b 2 -n legacy_twice_run
ifs_tests.sh -m 0 -p all -b 3 -n legacy_twice_run
ifs_tests.sh -m 0 -p all -b 1 -n img_version
ifs_tests.sh -m 0 -p all -b 1 -n reload_ifs
ifs_tests.sh -m 0 -p all -b 1 -n reload_ifs_scan_image

# ifs_1 array BIST(Board Integrated System Test), it works on EMR(Emerald Rapids) and future server
ifs_tests.sh -m 1 -p all -n ifs_array_scan
Expand Down
18 changes: 14 additions & 4 deletions BM/runtests
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ NA="NA"
DEP_EXIT=$PASS_CODE

START_TIME=""
START_TIME_SEC=""
END_TIME_SEC=""
SUMMRY_LOG=""
readonly TESTS_SERVER="tests-server"
TEST_FILES=""
Expand Down Expand Up @@ -350,12 +352,19 @@ list_all_test_files() {
}

show_result() {
local execution_time=""

END_TIME_SEC=$(date +%s)
# Will record execution time 1s if it's less than 1s.
execution_time=$((END_TIME_SEC - START_TIME_SEC + 1))
# Add the following print for the end of the case summary.
echo "--------------------------------------------------------" >> "$SUMMRY_LOG"

echo "LKVS log $LOGFILE as above. Execution time:${execution_time}s." >> "$SUMMRY_LOG"
[[ -z "$LOGFILE" ]] || cat "$SUMMRY_LOG" >> "$LOGFILE"
cat "$SUMMRY_LOG"
echo "Dependence info in $DEP_LOG and runtests log in $LOGFILE"

echo "The dependency info $DEP_LOG is as follows:"
cat "$DEP_LOG"
}

# runtests_cleanup to show test result. TODO: restore the env if needed
Expand All @@ -373,12 +382,13 @@ run_tests() {
cat /dev/null > "$LOGFILE"

START_TIME="$(date +%Y-%m-%d_%H-%M-%S)"
START_TIME_SEC=$(date +%s)
SUMMRY_LOG="/tmp/lkvs_${START_TIME}_summary.log"
echo "Test Start Time: $START_TIME" > "$SUMMRY_LOG"
{
echo "--------------------------------------------------------"
printf "%-76s%-11s%-12s%-8s\n" "Testcase" "Result" "Exit Value" "Duration"
printf "%-76s%-11s%-12s%-8s\n" "--------" "------" "----------" "--------"
printf "%-77s%-10s%-12s%-8s\n" "Testcase" "Result" "Exit Value" "Duration"
printf "%-77s%-10s%-12s%-8s\n" "--------" "------" "----------" "--------"
} >> "$SUMMRY_LOG"

init_dep_log "$DEP_LOG"
Expand Down
3 changes: 2 additions & 1 deletion BM/umip/tests
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
# @other_dep: general_test.sh -t kconfig -k "CONFIG_X86_INTEL_UMIP|CONFIG_X86_UMIP=y"
# @other_warn:

umip_exceptions_32 a
# Most of the Linux OS will not support 32bit, comment umip_exceptions_32 as default
#umip_exceptions_32 a
umip_exceptions_64 a
# Test sgdt sidt sldt smsw str should trigger #GP in proper kernel
umip_test_basic_64 a
Loading