summaryrefslogtreecommitdiff
path: root/tests/run-debuginfod-fd-prefetch-caches.sh
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2021-09-04 01:40:53 +0200
committerMark Wielaard <mark@klomp.org>2021-09-04 01:40:53 +0200
commit8e9edeab19931f878e16cc1bff6ac286937e997f (patch)
treec623008eb29d4497789c62be6fcdc28fd0120d19 /tests/run-debuginfod-fd-prefetch-caches.sh
parent70f36e32cfd83bdaf8a255613acff9ec2b0c0cde (diff)
downloadelfutils-8e9edeab19931f878e16cc1bff6ac286937e997f.tar.gz
tests: Make sure all debuginfod tests use a clean database and cache.
Always set DEBUGINFOD_CACHE_PATH to an unique (new) directory and make sure that each debuginfod invocation uses a new sqlite database. Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'tests/run-debuginfod-fd-prefetch-caches.sh')
-rwxr-xr-xtests/run-debuginfod-fd-prefetch-caches.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/run-debuginfod-fd-prefetch-caches.sh b/tests/run-debuginfod-fd-prefetch-caches.sh
index 08b32923..61fee9e9 100755
--- a/tests/run-debuginfod-fd-prefetch-caches.sh
+++ b/tests/run-debuginfod-fd-prefetch-caches.sh
@@ -31,8 +31,12 @@ PREFETCH_MBS=100
base=8800
get_ports
+DB=${PWD}/.debuginfod_tmp.sqlite
+tempfiles $DB
+export DEBUGINFOD_CACHE_PATH=${PWD}/.client_cache
+
echo $PORT1
-env LD_LIBRARY_PATH=$ldpath DEBUGINFOD_URLS= ${abs_builddir}/../debuginfod/debuginfod $VERBOSE -p $PORT1 \
+env LD_LIBRARY_PATH=$ldpath DEBUGINFOD_URLS= ${abs_builddir}/../debuginfod/debuginfod $VERBOSE -p $PORT1 -d $DB \
--fdcache-mbs=$FDCACHE_MDS --fdcache-fds=$FDCACHE_FDS --fdcache-prefetch-mbs=$PREFETCH_MBS \
--fdcache-prefetch-fds=$PREFETCH_FDS --fdcache-mintmp 0 -v -F F > vlog$PORT1 2>&1 &
PID1=$!