aboutsummaryrefslogtreecommitdiff
path: root/test/test.sh
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2025-02-05 23:20:13 +0000
committerWarner Losh <imp@FreeBSD.org>2025-02-05 23:20:13 +0000
commit48ec896efb0b78141df004eaa21288b84590c9da (patch)
tree33799792fd95c266d472ab1ae51d50ab4f942eb3 /test/test.sh
parentd28d7fbede216494aa3942af042cc084fcd6098a (diff)
jemalloc: Import 5.3.0 54eaed1d8b56b1aa528be3bdd1877e59c56fa90cvendor/jemalloc/5.3.0vendor/jemalloc
Import jemalloc 5.3.0. This import changes how manage the jemalloc vendor branch (which was just started anyway). Starting with 5.3.0, we import a clean tree from the upstream github, removing all the old files that are no longer upstream, or that we've kept around for some reason. We do this because we merge from this raw version of jemalloc into the FreeBSD contrib/jemalloc, then we run autogen stuff, generate all the generated .h files with gmake, then finally remove much of the generated files in contrib/jemalloc using an update script. Sponsored by: Netflix
Diffstat (limited to 'test/test.sh')
-rw-r--r--test/test.sh80
1 files changed, 0 insertions, 80 deletions
diff --git a/test/test.sh b/test/test.sh
deleted file mode 100644
index 7e0cfcd444fb..000000000000
--- a/test/test.sh
+++ /dev/null
@@ -1,80 +0,0 @@
-#!/bin/sh
-
-case elf in
- macho)
- export DYLD_FALLBACK_LIBRARY_PATH="lib"
- ;;
- pecoff)
- export PATH="${PATH}:lib"
- ;;
- *)
- ;;
-esac
-
-# Make a copy of the MALLOC_CONF passed in to this script, so
-# it can be repeatedly concatenated with per test settings.
-export MALLOC_CONF_ALL=${MALLOC_CONF}
-# Concatenate the individual test's MALLOC_CONF and MALLOC_CONF_ALL.
-export_malloc_conf() {
- if [ "x${MALLOC_CONF}" != "x" -a "x${MALLOC_CONF_ALL}" != "x" ] ; then
- export MALLOC_CONF="${MALLOC_CONF},${MALLOC_CONF_ALL}"
- else
- export MALLOC_CONF="${MALLOC_CONF}${MALLOC_CONF_ALL}"
- fi
-}
-
-# Corresponds to test_status_t.
-pass_code=0
-skip_code=1
-fail_code=2
-
-pass_count=0
-skip_count=0
-fail_count=0
-for t in $@; do
- if [ $pass_count -ne 0 -o $skip_count -ne 0 -o $fail_count != 0 ] ; then
- echo
- fi
- echo "=== ${t} ==="
- if [ -e "${t}.sh" ] ; then
- # Source the shell script corresponding to the test in a subshell and
- # execute the test. This allows the shell script to set MALLOC_CONF, which
- # is then used to set MALLOC_CONF (thus allowing the
- # per test shell script to ignore the detail).
- enable_fill=1 \
- enable_prof=0 \
- . ${t}.sh && \
- export_malloc_conf && \
- $JEMALLOC_TEST_PREFIX ${t} /home/imp/git/vendors/jemalloc/ /home/imp/git/vendors/jemalloc/
- else
- export MALLOC_CONF= && \
- export_malloc_conf && \
- $JEMALLOC_TEST_PREFIX ${t} /home/imp/git/vendors/jemalloc/ /home/imp/git/vendors/jemalloc/
- fi
- result_code=$?
- case ${result_code} in
- ${pass_code})
- pass_count=$((pass_count+1))
- ;;
- ${skip_code})
- skip_count=$((skip_count+1))
- ;;
- ${fail_code})
- fail_count=$((fail_count+1))
- ;;
- *)
- echo "Test harness error: ${t} w/ MALLOC_CONF=\"${MALLOC_CONF}\"" 1>&2
- echo "Use prefix to debug, e.g. JEMALLOC_TEST_PREFIX=\"gdb --args\" sh test/test.sh ${t}" 1>&2
- exit 1
- esac
-done
-
-total_count=`expr ${pass_count} + ${skip_count} + ${fail_count}`
-echo
-echo "Test suite summary: pass: ${pass_count}/${total_count}, skip: ${skip_count}/${total_count}, fail: ${fail_count}/${total_count}"
-
-if [ ${fail_count} -eq 0 ] ; then
- exit 0
-else
- exit 1
-fi