aboutsummaryrefslogtreecommitdiff
path: root/contrib/bc/tests/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/bc/tests/test.sh')
-rwxr-xr-xcontrib/bc/tests/test.sh24
1 files changed, 4 insertions, 20 deletions
diff --git a/contrib/bc/tests/test.sh b/contrib/bc/tests/test.sh
index 7b5916f02990..3dd3e19963fa 100755
--- a/contrib/bc/tests/test.sh
+++ b/contrib/bc/tests/test.sh
@@ -2,7 +2,7 @@
#
# SPDX-License-Identifier: BSD-2-Clause
#
-# Copyright (c) 2018-2024 Gavin D. Howard and contributors.
+# Copyright (c) 2018-2025 Gavin D. Howard and contributors.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@@ -44,7 +44,7 @@ usage() {
if [ $# -eq 1 ]; then
printf '%s\n\n' "$1"
fi
- printf 'usage: %s dir test [generate_tests] [time_tests] [exe [args...]]\n' "$0"
+ printf 'usage: %s dir test [generate_tests] [exe [args...]]\n' "$0"
printf 'valid dirs are:\n'
printf '\n'
cat "$testdir/all.txt"
@@ -78,15 +78,6 @@ else
fi
if [ "$#" -gt 0 ]; then
- time_tests="$1"
- shift
- check_bool_arg "$time_tests"
-else
- time_tests=0
- check_bool_arg "$time_tests"
-fi
-
-if [ "$#" -gt 0 ]; then
exe="$1"
shift
check_exec_arg "$exe"
@@ -155,15 +146,8 @@ set +e
printf 'Running %s %s...' "$d" "$t"
-if [ "$time_tests" -ne 0 ]; then
- printf '\n'
- printf '%s\n' "$halt" 2> /dev/null | /usr/bin/time -p "$exe" "$@" $options "$name" > "$out"
- err="$?"
- printf '\n'
-else
- printf '%s\n' "$halt" 2> /dev/null | "$exe" "$@" $options "$name" > "$out"
- err="$?"
-fi
+printf '%s\n' "$halt" 2> /dev/null | "$exe" "$@" $options "$name" > "$out"
+err="$?"
checktest "$d" "$err" "$t" "$results" "$out"