From 80d72ff07b00cd02ca684c916aa4d7dc5ce34cc1 Mon Sep 17 00:00:00 2001 From: Hongyu Ning Date: Tue, 31 Oct 2023 14:06:40 +0800 Subject: [PATCH] [guest-test] Test Enhance: extend for customized qemu config json file pass in add one more option -j to support customized qemu config json file pass in [Test Components] tdx [Test Types] any [Supported Devices] spr,emr,gnr,srf Signed-off-by: Hongyu Ning --- guest-test/guest.test_launcher.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/guest-test/guest.test_launcher.sh b/guest-test/guest.test_launcher.sh index 075a6027..2c5a05a3 100755 --- a/guest-test/guest.test_launcher.sh +++ b/guest-test/guest.test_launcher.sh @@ -63,6 +63,7 @@ NOTE!! args passed here will override params in qemu.confg.json -c guest kernel extra commandline -p guest pmu off/on -g [optional, default off] code coverage test mode off/on + -j [optional] path under guest-test to standalone qemu.config.json file -h HELP info EOF } @@ -104,7 +105,7 @@ echo PORT="$PORT" > "$SCRIPT_DIR"/test_params.py # used across test_launcher.sh, qemu_runner.py, test_executor.sh # get args for QEMU boot configurable parameters -while getopts :v:s:m:d:t:x:c:p:g:h arg; do +while getopts :v:s:m:d:t:x:c:p:g:j:h arg; do case $arg in v) VCPU=$OPTARG @@ -142,6 +143,10 @@ while getopts :v:s:m:d:t:x:c:p:g:h arg; do GCOV=$OPTARG echo GCOV="\"$GCOV\"" >> "$SCRIPT_DIR"/test_params.py ;; + j) + JSON=$OPTARG + echo JSON="\"$JSON\"" >> "$SCRIPT_DIR"/test_params.py + ;; h) usage && exit 0 ;;