xref: /spdk/test/thread/thread.sh (revision 0f73e7664df78b8aa95e2050a3c54932a21a73f9)
1#!/usr/bin/env bash
2#  SPDX-License-Identifier: BSD-3-Clause
3#  All rights reserved.
4#  Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
5#
6
7testdir=$(readlink -f $(dirname $0))
8rootdir=$(readlink -f $testdir/../..)
9source $rootdir/test/common/autotest_common.sh
10
11run_test "thread_poller_perf" $testdir/poller_perf/poller_perf -b 1000 -l 1 -t 1
12run_test "thread_poller_perf" $testdir/poller_perf/poller_perf -b 1000 -l 0 -t 1
13
14# spdk_lock.c includes thread.c, which causes problems when registering the same
15# tracepoint for "thread" in the program and shared library. It is sufficient
16# to test this only on static builds.
17if [[ "$CONFIG_SHARED" != "y" ]]; then
18	run_test "thread_spdk_lock" $testdir/lock/spdk_lock
19fi
20