Skip to content
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
3 changes: 2 additions & 1 deletion SystemReady-band/build-scripts/build-bsaefi.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# @file
# Copyright (c) 2021-2025, Arm Limited or its affiliates. All rights reserved.
# Copyright (c) 2021-2026, Arm Limited or its affiliates. All rights reserved.
# SPDX-License-Identifier : Apache-2.0

# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -63,6 +63,7 @@ do_build()
echo " URL(sysarch-acs) = $(git remote get-url origin)" >> "${SYSTEMREADY_COMMIT_LOG}"
echo " commit(sysarch-acs) = $(git rev-parse HEAD)" >> "${SYSTEMREADY_COMMIT_LOG}"
echo "" >> "${SYSTEMREADY_COMMIT_LOG}"
git apply $TOP_DIR/patches/bsa_srversion.patch
popd
source ./edksetup.sh
make -C BaseTools/Source/C
Expand Down
3 changes: 2 additions & 1 deletion SystemReady-band/build-scripts/build-sbsaefi.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# @file
# Copyright (c) 2021-2025, Arm Limited or its affiliates. All rights reserved.
# Copyright (c) 2021-2026, Arm Limited or its affiliates. All rights reserved.
# SPDX-License-Identifier : Apache-2.0

# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -63,6 +63,7 @@ do_build()
echo " URL(sysarch-acs) = $(git remote get-url origin)" >> "${SYSTEMREADY_COMMIT_LOG}"
echo " commit(sysarch-acs) = $(git rev-parse HEAD)" >> "${SYSTEMREADY_COMMIT_LOG}"
echo "" >> "${SYSTEMREADY_COMMIT_LOG}"
git apply $TOP_DIR/patches/sbsa_srversion.patch
popd
source ./edksetup.sh
make -C BaseTools/Source/C
Expand Down
13 changes: 0 additions & 13 deletions SystemReady-band/build-scripts/get_source.sh
Original file line number Diff line number Diff line change
Expand Up @@ -233,19 +233,6 @@ get_efitools_src()
fi
}

get_edk2-test-parser_src()
{
echo "Downloading edk2-test-parser source code. TAG : $EDK2_TEST_PARSER_TAG"
git clone https://git.gitlab.arm.com/systemready/edk2-test-parser.git
pushd $TOP_DIR/edk2-test-parser/
git checkout $EDK2_TEST_PARSER_TAG
echo "EDK2 Parser" >> "${SYSTEMREADY_COMMIT_LOG}"
echo " URL(edk2-test-parser) = $(git remote get-url origin)" >> "${SYSTEMREADY_COMMIT_LOG}"
echo " commit(edk2-test-parser) = $(git rev-parse HEAD)" >> "${SYSTEMREADY_COMMIT_LOG}"
echo "" >> "${SYSTEMREADY_COMMIT_LOG}"
popd
}

get_edk2-test-parser_src()
{
echo "Downloading edk2-test-parser source code. TAG : $EDK2_TEST_PARSER_TAG"
Expand Down
12 changes: 12 additions & 0 deletions SystemReady-band/patches/bsa_srversion.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/apps/uefi/bsa_main.c b/apps/uefi/bsa_main.c
index 4458fe5..80f964c 100644
--- a/apps/uefi/bsa_main.c
+++ b/apps/uefi/bsa_main.c
@@ -158,6 +158,7 @@ execute_tests()
goto exit_acs;
}

+ val_print(ACS_PRINT_TEST, "\n\n SystemReady band ACS v3.1.1 RC-final", 0);
val_print(ACS_PRINT_TEST, "\n\n BSA Architecture Compliance Suite", 0);
val_print(ACS_PRINT_TEST, "\n Version %d.", BSA_ACS_MAJOR_VER);
val_print(ACS_PRINT_TEST, "%d.", BSA_ACS_MINOR_VER);
12 changes: 12 additions & 0 deletions SystemReady-band/patches/sbsa_srversion.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/apps/uefi/sbsa_main.c b/apps/uefi/sbsa_main.c
index 1695605..d644135 100644
--- a/apps/uefi/sbsa_main.c
+++ b/apps/uefi/sbsa_main.c
@@ -163,6 +163,7 @@ execute_tests()
goto exit_acs;
}

+ val_print(ACS_PRINT_ERR, "\n\n SystemReady band ACS v3.1.1 RC-final\n", 0);
val_print(ACS_PRINT_ERR, "\n\n SBSA Architecture Compliance Suite\n", 0);
val_print(ACS_PRINT_ERR, " Version %d.", SBSA_ACS_MAJOR_VER);
val_print(ACS_PRINT_ERR, "%d.", SBSA_ACS_MINOR_VER);
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ COMPATIBLE_MACHINE:genericarm64 = "genericarm64"

SRC_URI += "git://github.com/ARM-software/sysarch-acs;destsuffix=edk2/ShellPkg/Application/sysarch-acs;protocol=https;branch=main;name=sysarch-acs \
git://github.com/tianocore/edk2-libc;destsuffix=edk2/edk2-libc;protocol=https;branch=master;name=edk2-libc \
file://bsa_dtversion.patch;patch=1;patchdir=ShellPkg/Application/sysarch-acs \
"

SRCREV_sysarch-acs = "${AUTOREV}"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/apps/uefi/bsa_main.c b/apps/uefi/bsa_main.c
index 4458fe5..80f964c 100644
--- a/apps/uefi/bsa_main.c
+++ b/apps/uefi/bsa_main.c
@@ -158,6 +158,7 @@ execute_tests()
goto exit_acs;
}

+ val_print(ACS_PRINT_TEST, "\n\n SystemReady devicetree band ACS v3.1.2 RC-final", 0);
val_print(ACS_PRINT_TEST, "\n\n BSA Architecture Compliance Suite", 0);
val_print(ACS_PRINT_TEST, "\n Version %d.", BSA_ACS_MAJOR_VER);
val_print(ACS_PRINT_TEST, "%d.", BSA_ACS_MINOR_VER);
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,10 @@ if [ $ADDITIONAL_CMD_OPTION != "noacs" ]; then
if [ -f /mnt/acs_tests/systemready-commit.log ]; then
cp /mnt/acs_tests/systemready-commit.log /mnt/acs_results_template/acs_results/acs_summary/config/
fi
# Copying acs_config.txt into result directory
if [ -f /mnt/acs_tests/config/acs_config.txt ]; then
cp /mnt/acs_tests/config/acs_config.txt /mnt/acs_results_template/acs_results/acs_summary/config/
fi
echo "Please wait acs results are syncing on storage medium."
sync
sleep 60
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/apps/uefi/pfdi_main.c b/apps/uefi/pfdi_main.c
index f8842b7..7b89ce0 100644
--- a/apps/uefi/pfdi_main.c
+++ b/apps/uefi/pfdi_main.c
@@ -97,6 +97,7 @@ execute_tests()
goto exit_close;
}

+ val_print(ACS_PRINT_TEST, "\n\n SystemReady devicetree band ACS v3.1.2 RC-final", 0);
val_print(ACS_PRINT_TEST, "\n\n PFDI Architecture Compliance Suite", 0);
val_print(ACS_PRINT_TEST, "\n Version %d.", PFDI_ACS_MAJOR_VER);
val_print(ACS_PRINT_TEST, "%d.", PFDI_ACS_MINOR_VER);
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ COMPATIBLE_MACHINE:genericarm64 = "genericarm64"

SRC_URI += "git://github.com/ARM-software/sysarch-acs;destsuffix=edk2/ShellPkg/Application/sysarch-acs;protocol=https;branch=main;name=sysarch-acs \
git://github.com/tianocore/edk2-libc;destsuffix=edk2/edk2-libc;protocol=https;branch=master;name=edk2-libc \
file://pfdi_dtversion.patch;patch=1;patchdir=ShellPkg/Application/sysarch-acs \
"

SRCREV_sysarch-acs = "${AUTOREV}"
Expand Down
2 changes: 1 addition & 1 deletion common/config/acs_run_config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ sbsa_level = 4
# Add tests to run here.
sbsa_tests =
# Add tests you want to skip here.
sbsa_skip = S_L3MM_01
sbsa_skip =
# valid values 1,2,3,4,5
sbsa_verbose = 3

Expand Down
9 changes: 7 additions & 2 deletions common/linux_scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ if [ $ADDITIONAL_CMD_OPTION != "noacs" ]; then
if [ -f /lib/modules/sbsa_acs.ko ]; then
insmod /lib/modules/sbsa_acs.ko
echo "${SR_VERSION}" > /mnt/acs_results/linux/SbsaResultsApp.log
echo "Running command $sbsa_command --skip-dp-nic-ms"
$sbsa_command --skip-dp-nic-ms >> /mnt/acs_results/linux/SbsaResultsApp.log
echo "Running command $sbsa_command -skip S_L3_01 --skip-dp-nic-ms"
$sbsa_command --skip S_L3_01 --skip-dp-nic-ms >> /mnt/acs_results/linux/SbsaResultsApp.log
dmesg | sed -n 'H; /PE_INFO/h; ${g;p;}' > /mnt/acs_results/linux/SbsaResultsKernel.log
sync /mnt
sleep 5
Expand Down Expand Up @@ -304,6 +304,11 @@ if [ $ADDITIONAL_CMD_OPTION != "noacs" ]; then
if [ -f /mnt/acs_tests/config/systemready-commit.log ]; then
cp /mnt/acs_tests/config/systemready-commit.log /mnt/acs_results/acs_summary/config/
fi
# Copying acs_config.txt into result directory
if [ -f /mnt/acs_tests/config/acs_config.txt ]; then
cp /mnt/acs_tests/config/acs_config.txt /mnt/acs_results/acs_summary/config/
fi

sync /mnt

# systemready scripts for os logs
Expand Down
5 changes: 4 additions & 1 deletion common/linux_scripts/scmi_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ if [ -d "$RESULTS_DIR" ]; then
if [ -f /mnt/acs_tests/systemready-commit.log ]; then
cp /mnt/acs_tests/systemready-commit.log "$RESULTS_DIR/acs_summary/config/"
fi

# Copying acs_config.txt into result directory
if [ -f /mnt/acs_tests/config/acs_config.txt ]; then
cp /mnt/acs_tests/config/acs_config.txt "$RESULTS_DIR/acs_summary/config/"
fi
echo "Please wait acs results are syncing on storage medium."
sync /mnt
sleep 60
Expand Down
4 changes: 4 additions & 0 deletions common/linux_scripts/secure_init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ if [ -d "$RESULTS_DIR" ]; then
if [ -f /mnt/acs_tests/systemready-commit.log ]; then
cp /mnt/acs_tests/systemready-commit.log "$RESULTS_DIR/acs_summary/config/"
fi
# Copying acs_config.txt into result directory
if [ -f /mnt/acs_tests/config/acs_config.txt ]; then
cp /mnt/acs_tests/config/acs_config.txt "$RESULTS_DIR/acs_summary/config/"
fi

echo "Please wait acs results are syncing on storage medium."
sync /mnt
Expand Down
2 changes: 1 addition & 1 deletion common/log_parser/main_log_parser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ LOGS_PATH=$1
ACS_CONFIG_PATH=$2
SYSTEM_CONFIG_PATH=$3
WAIVER_JSON=$4
POST_SCRIPT_LOG="$LOGS_PATH/post-script/post-script.log"
POST_SCRIPT_LOG="$LOGS_PATH/post-scripts/post-script.log"

if [ $YOCTO_FLAG_PRESENT -eq 1 ]; then
test_category="/usr/bin/log_parser/test_categoryDT.json"
Expand Down
6 changes: 0 additions & 6 deletions common/log_parser/os_tests/sr_logs_to_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,6 @@ def add_presence_subtest(label, os_info):
test_suite["subtests"].append(sub)
update_suite_summary(test_suite["test_suite_summary"], status)
subtest_number += 1
else:
desc = "No post-script errors found for OS logs"
sub = create_subtest(subtest_number, desc, "PASSED")
test_suite["subtests"].append(sub)
update_suite_summary(test_suite["test_suite_summary"], "PASSED")
subtest_number += 1

suite_summary = {
"total_passed": test_suite["test_suite_summary"]["total_passed"],
Expand Down
18 changes: 2 additions & 16 deletions common/uefi_scripts/bsa.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
# limitations under the License.

echo -off
set DT_Version " SystemReady devicetree band ACS v3.1.2 RC0"
set SR_Version " SystemReady band ACS v3.1.1 RC0"

for %i in 0 1 2 3 4 5 6 7 8 9 A B C D E F then
if exist FS%i:\yocto_image.flag then
Expand Down Expand Up @@ -101,13 +99,7 @@ if exist FS%i:\acs_tests\bsa\Bsa.efi then
endif
stall 200000
if exist BsaVerboseTempResults.log then
if exist FS%i:\acs_tests\bsa\bsa_dt.flag then
echo %DT_Version% > BsaVerboseResults.log
else
echo %SR_Version% > BsaVerboseResults.log
endif
stall 200000
type BsaVerboseTempResults.log >> BsaVerboseResults.log
cp BsaVerboseTempResults.log BsaVerboseResults.log
cp BsaVerboseTempResults.log temp/
rm BsaVerboseTempResults.log
reset
Expand Down Expand Up @@ -152,13 +144,7 @@ if exist FS%i:\acs_tests\bsa\Bsa.efi then
stall 200000
:BsaEE
if exist BsaTempResults.log then
if exist FS%i:\acs_tests\bsa\bsa_dt.flag then
echo %DT_Version% > BsaResults.log
else
echo %SR_Version% > BsaResults.log
endif
stall 200000
type BsaTempResults.log >> BsaResults.log
cp BsaTempResults.log BsaResults.log
cp BsaTempResults.log temp/
rm BsaTempResults.log
reset
Expand Down
11 changes: 4 additions & 7 deletions common/uefi_scripts/pfdi.nsh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# @file
# Copyright (c) 2025, Arm Limited or its affiliates. All rights reserved.
# Copyright (c) 2025-2026, Arm Limited or its affiliates. All rights reserved.
# SPDX-License-Identifier : Apache-2.0

# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -17,6 +17,7 @@
# limitations under the License.

echo -off

for %i in 0 1 2 3 4 5 6 7 8 9 A B C D E F then
if exist FS%i:\yocto_image.flag then
if exist FS%i:\acs_results_template\acs_results then
Expand Down Expand Up @@ -64,9 +65,7 @@ if exist FS%i:\acs_tests\pfdi\pfdi.efi then
FS%i:\acs_tests\pfdi\pfdi.efi -v 1 -f pfdiverbosetempresults.log
stall 200000
if exist pfdiverbosetempresults.log then
echo " SystemReady devicetree band ACS v3.1.2 RC0" > pfdiverboseresults.log
stall 200000
type pfdiverbosetempresults.log >> pfdiverboseresults.log
cp pfdiverbosetempresults.log pfdiverboseresults.log
cp pfdiverbosetempresults.log temp/
rm pfdiverbosetempresults.log
reset
Expand Down Expand Up @@ -96,9 +95,7 @@ if exist FS%i:\acs_tests\pfdi\pfdi.efi then

stall 200000
if exist pfditempresults.log then
echo " SystemReady devicetree band ACS v3.1.2 RC0" > pfdiresults.log
stall 200000
type pfditempresults.log >> pfdiresults.log
cp pfditempresults.log pfdiresults.log
cp pfditempresults.log temp/
rm pfditempresults.log
reset
Expand Down
31 changes: 14 additions & 17 deletions common/uefi_scripts/sbsa.nsh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

# @file
# Copyright (c) 2021-2025, Arm Limited or its affiliates. All rights reserved.
# Copyright (c) 2021-2026, Arm Limited or its affiliates. All rights reserved.
# SPDX-License-Identifier : Apache-2.0

# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -17,6 +17,7 @@
# limitations under the License.

echo -off

for %i in 0 1 2 3 4 5 6 7 8 9 A B C D E F then
if exist FS%i:\acs_results then
if "%1" == "true" then
Expand Down Expand Up @@ -45,8 +46,8 @@ for %i in 0 1 2 3 4 5 6 7 8 9 A B C D E F then
if "%1" == "" then
FS%i:
acs_tests\parser\Parser.efi -sbsa
echo "UEFI EE SBSA Command: %SbsaCommand%"
FS%i:\acs_tests\bsa\sbsa\%SbsaCommand% -skip-dp-nic-ms -f SbsaTempResults.log
echo "UEFI EE SBSA Command: %SbsaCommand% -skip S_L3MM_01,S_L3_01 -skip-dp-nic-ms -f SbsaTempResults.log"
FS%i:\acs_tests\bsa\sbsa\%SbsaCommand% -skip S_L3MM_01,S_L3_01 -skip-dp-nic-ms -f SbsaTempResults.log
goto SbsaEE
endif
if exist FS%i:\acs_tests\bsa\sbsa\Sbsa.efi then
Expand All @@ -69,13 +70,11 @@ for %i in 0 1 2 3 4 5 6 7 8 9 A B C D E F then
goto SbsaNormalMode
endif
:SbsaVerboseRun
echo "SBSA Command: Sbsa.efi -v 1 -skip S_L3MM_01 -skip-dp-nic-ms -f SbsaVerboseTempResults.log"
FS%i:\acs_tests\bsa\sbsa\Sbsa.efi -v 1 -skip S_L3MM_01 -skip-dp-nic-ms -f SbsaVerboseTempResults.log
echo "SBSA Command: Sbsa.efi -v 1 -skip S_L3MM_01,S_L3_01 -skip-dp-nic-ms -f SbsaVerboseTempResults.log"
FS%i:\acs_tests\bsa\sbsa\Sbsa.efi -v 1 -skip S_L3MM_01,S_L3_01 -skip-dp-nic-ms -f SbsaVerboseTempResults.log
stall 200000
if exist FS%i:\acs_results\uefi\SbsaVerboseTempResults.log then
echo " SystemReady band ACS v3.1.1 RC0" > SbsaVerboseResults.log
stall 200000
type SbsaVerboseTempResults.log >> SbsaVerboseResults.log
cp SbsaVerboseTempResults.log SbsaVerboseResults.log
cp SbsaVerboseTempResults.log temp/
rm SbsaVerboseTempResults.log
reset
Expand All @@ -101,24 +100,22 @@ for %i in 0 1 2 3 4 5 6 7 8 9 A B C D E F then
endif
:SbsaNormalRun
if "%1" == "false" then
echo "SBSA Command: Sbsa.efi -skip S_L3MM_01 -skip-dp-nic-ms -f SbsaTempResults.log"
FS%i:\acs_tests\bsa\sbsa\Sbsa.efi -skip S_L3MM_01 -skip-dp-nic-ms -f SbsaTempResults.log
echo "SBSA Command: Sbsa.efi -skip S_L3MM_01,S_L3_01 -skip-dp-nic-ms -f SbsaTempResults.log"
FS%i:\acs_tests\bsa\sbsa\Sbsa.efi -skip S_L3MM_01,S_L3_01 -skip-dp-nic-ms -f SbsaTempResults.log
else
if "%SbsaCommand%" == "" then
echo "SbsaCommand variable does not exist, running default command Sbsa.efi"
echo "SBSA Command: Sbsa.efi -skip S_L3MM_01 -skip-dp-nic-ms -f SbsaTempResults.log"
FS%i:\acs_tests\bsa\sbsa\Sbsa.efi -skip S_L3MM_01 -skip-dp-nic-ms -f SbsaTempResults.log
echo "SBSA Command: Sbsa.efi -skip S_L3MM_01,S_L3_01 -skip-dp-nic-ms -f SbsaTempResults.log"
FS%i:\acs_tests\bsa\sbsa\Sbsa.efi -skip S_L3MM_01,S_L3_01 -skip-dp-nic-ms -f SbsaTempResults.log
else
echo "SBSA Command: %SbsaCommand% -skip S_L3MM_01 -skip-dp-nic-ms -f SbsaTempResults.log"
FS%i:\acs_tests\bsa\sbsa\%SbsaCommand% -skip S_L3MM_01 -skip-dp-nic-ms -f SbsaTempResults.log
echo "SBSA Command: %SbsaCommand% -skip S_L3MM_01,S_L3_01 -skip-dp-nic-ms -f SbsaTempResults.log"
FS%i:\acs_tests\bsa\sbsa\%SbsaCommand% -skip S_L3MM_01,S_L3_01 -skip-dp-nic-ms -f SbsaTempResults.log
endif
endif
stall 200000
:SbsaEE
if exist FS%i:\acs_results\uefi\SbsaTempResults.log then
echo " SystemReady band ACS v3.1.1 RC0" > SbsaResults.log
stall 200000
type SbsaTempResults.log >> SbsaResults.log
cp SbsaTempResults.log SbsaResults.log
cp SbsaTempResults.log temp/
rm SbsaTempResults.log
reset
Expand Down