summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/run-debuginfod-find.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/run-debuginfod-find.sh b/tests/run-debuginfod-find.sh
index 2facef2c..6ee66336 100755
--- a/tests/run-debuginfod-find.sh
+++ b/tests/run-debuginfod-find.sh
@@ -137,6 +137,7 @@ filename=`testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $RPM_
hash=`cat $filename | sha1sum | awk '{print $1}'`
test $hash = $RPM_DEBUGINFO_SHA1SUM
+# also tests source file lookup via .dwz
filename=`testrun ${abs_top_builddir}/debuginfod/debuginfod-find source $RPM_BUILDID $RPM_SOURCE_PATH`
hash=`cat $filename | sha1sum | awk '{print $1}'`
test $hash = $RPM_SOURCE_SHA1SUM
@@ -183,6 +184,25 @@ export DEBUGINFOD_URLS="BAD http://localhost:$PORT1 localhost:$PORT1 http://loca
testrun ${abs_builddir}/debuginfod_build_id_find -e F/prog2 1
+########################################################################
+
+# Test -I, -X
+
+kill -INT $PID2
+rm -rf $DEBUGINFOD_CACHE_PATH
+env LD_LIBRARY_PATH=$ldpath ${abs_builddir}/../debuginfod/debuginfod -d ${DB}_2 -p $PORT2 \
+ -I 'prog.|test' -X 'prog2' &
+PID2=$!
+sleep 3
+
+testrun ${abs_builddir}/debuginfod_build_id_find -e F/prog 1
+
+# Exclusion should override inclusion
+testrun ${abs_builddir}/debuginfod_build_id_find -e F/prog2 0
+
+filename=`testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $RPM_BUILDID`
+hash=`cat $filename | sha1sum | awk '{print $1}'`
+test $hash = $RPM_DEBUGINFO_SHA1SUM
########################################################################