Skip to content

Commit

Permalink
[guest-test] Test Enhance: extend for customized qemu config json file
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
hongyuni committed Oct 31, 2023
1 parent 42617d3 commit 80d72ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion guest-test/guest.test_launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
;;
Expand Down

0 comments on commit 80d72ff

Please sign in to comment.