Fix: change method used by _rcu_dereference to strip type constness
[urcu.git] / tests / benchmark / runtests.sh
CommitLineData
ad460058 1#!/bin/bash
de6cb9d5
MJ
2#
3# SPDX-License-Identifier: GPL-2.0-only
4#
5# SPDX-FileCopyrightText: 2022 EfficiOS Inc.
6#
7
8if [ "x${URCU_TESTS_SRCDIR:-}" != "x" ]; then
9 UTILSSH="$URCU_TESTS_SRCDIR/utils/utils.sh"
10else
11 UTILSSH="$(dirname "$0")/../utils/utils.sh"
12fi
13
14# Enable TAP
15SH_TAP=1
16
17# shellcheck source=../utils/utils.sh
18source "$UTILSSH"
19
20
21# Create a temporary file for tests output
22TMPFILE=$(mktemp)
23
24# Set trap to delete the temporary file on exit and call tap.sh '_exit'
25trap 'rm -f "$TMPFILE"; _exit' EXIT
ad460058 26
ad460058
MD
27
28NUM_TESTS=15
29
30plan_tests ${NUM_TESTS}
5a4dc6a8 31
f8cbb9da
LJ
32for a in test_urcu_gc test_urcu_signal_gc test_urcu_mb_gc test_urcu_qsbr_gc \
33 test_urcu_lgc test_urcu_signal_lgc test_urcu_mb_lgc test_urcu_qsbr_lgc \
34 test_urcu test_urcu_signal test_urcu_mb test_urcu_qsbr \
31b598e0 35 test_rwlock test_perthreadlock test_mutex; do
de6cb9d5 36 okx ${URCU_TESTS_TIME_BIN} "$URCU_TESTS_BUILDDIR/benchmark/${a}" "$@" 2>"${TMPFILE}"
748f9af1 37 diag "time: $(cat "${TMPFILE}")"
5a4dc6a8 38done
This page took 0.04654 seconds and 4 git commands to generate.