test: add new cmdline.sh test script
This can be used to test various app command line parameters - in this case, the new RPC allowlist parameter. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: Iaa0e90940ac4fb0b044ab96bc2912afa9f48ddae Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15310 Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
bfe724a069
commit
c3e62d7729
@ -162,6 +162,8 @@ if [ $SPDK_RUN_FUNCTIONAL_TEST -eq 1 ]; then
|
||||
run_test "event" test/event/event.sh
|
||||
run_test "thread" test/thread/thread.sh
|
||||
run_test "accel" test/accel/accel.sh
|
||||
# Uncomment this line when ready
|
||||
# run_test "app_cmdline" test/app/cmdline.sh
|
||||
|
||||
if [ $SPDK_TEST_BLOCKDEV -eq 1 ]; then
|
||||
run_test "blockdev_general" test/bdev/blockdev.sh
|
||||
|
22
test/app/cmdline.sh
Executable file
22
test/app/cmdline.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
# Copyright (C) 2022 Intel Corporation
|
||||
# All rights reserved.
|
||||
#
|
||||
|
||||
testdir=$(readlink -f $(dirname $0))
|
||||
rootdir=$(readlink -f $testdir/../..)
|
||||
source $rootdir/test/common/autotest_common.sh
|
||||
|
||||
trap 'killprocess $spdk_tgt_pid; exit 1' ERR
|
||||
|
||||
# Add an allowlist here...
|
||||
$SPDK_BIN_DIR/spdk_tgt &
|
||||
spdk_tgt_pid=$!
|
||||
waitforlisten $spdk_tgt_pid
|
||||
|
||||
# Do both some positive and negative testing on that allowlist here...
|
||||
# You can use the NOT() function to help with the negative test
|
||||
# $rootdir/scripts/rpc.py some_rpc
|
||||
|
||||
killprocess $spdk_tgt_pid
|
Loading…
Reference in New Issue
Block a user