Commit c3e62d77 authored by Jim Harris's avatar Jim Harris Committed by Tomasz Zawadzki
Browse files

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: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: Iaa0e90940ac4fb0b044ab96bc2912afa9f48ddae
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15310


Reviewed-by: default avatarPaul Luse <paul.e.luse@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@nvidia.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent bfe724a0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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

test/app/cmdline.sh

0 → 100755
+22 −0
Original line number Diff line number Diff line
#!/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