2021-07-26 06:04:09 +00:00
|
|
|
#!/usr/bin/env bash
|
2022-11-02 15:49:40 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
# All rights reserved.
|
2022-11-18 22:43:46 +00:00
|
|
|
# Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
2022-11-02 15:49:40 +00:00
|
|
|
#
|
2021-07-26 06:04:09 +00:00
|
|
|
|
|
|
|
testdir=$(readlink -f $(dirname $0))
|
|
|
|
rootdir=$(readlink -f $testdir/../..)
|
|
|
|
source $rootdir/test/common/autotest_common.sh
|
|
|
|
|
|
|
|
run_test "thread_poller_perf" $testdir/poller_perf/poller_perf -b 1000 -l 1 -t 1
|
|
|
|
run_test "thread_poller_perf" $testdir/poller_perf/poller_perf -b 1000 -l 0 -t 1
|
2022-11-18 22:43:46 +00:00
|
|
|
|
|
|
|
# spdk_lock.c includes thread.c, which causes problems when registering the same
|
|
|
|
# tracepoint for "thread" in the program and shared library. It is sufficient
|
|
|
|
# to test this only on static builds.
|
|
|
|
if [[ "$CONFIG_SHARED" != "y" ]]; then
|
|
|
|
run_test "thread_spdk_lock" $testdir/lock/spdk_lock
|
|
|
|
fi
|