forked from ARM-software/arm-systemready
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfwts.sh
More file actions
43 lines (38 loc) · 1.68 KB
/
Copy pathfwts.sh
File metadata and controls
43 lines (38 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
# @file
# 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");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
LOG_DIR="/mnt/acs_results_template/acs_results"
# Parse config file
automation_enabled="`python3 /mnt/acs_tests/parser/Parser.py -automation`"
if [ "$automation_enabled" == "True" ]; then
fwts_command="`python3 /mnt/acs_tests/parser/Parser.py -fwts`"
fwts_enabled="`python3 /mnt/acs_tests/parser/Parser.py -automation_fwts_run`"
fi
# FWTS (SBBR) Execution
echo "Executing FWTS for SBBR"
if [ "$automation_enabled" == "True" ] && [ "$fwts_enabled" == "False" ]; then
echo "********* FWTS is disabled in config file**************"
else
mkdir -p ${LOG_DIR}/fwts
echo "SystemReady band ACS v3.1.1" > ${LOG_DIR}/fwts/FWTSResults.log
if [ "$automation_enabled" == "False" ]; then
fwts -r stdout -q --uefi-set-var-multiple=1 --uefi-get-mn-count-multiple=1 --sbbr esrt uefibootpath aest cedt slit srat hmat pcct pdtt bgrt bert einj erst hest sdei nfit iort mpam ibft ras2 >> ${LOG_DIR}/fwts/FWTSResults.log
else
$fwts_command >> ${LOG_DIR}/fwts/FWTSResults.log
fi
sync /mnt
sleep 5
echo "FWTS Execution - Completed"
fi