diff options
author | Aaron Merey <amerey@redhat.com> | 2019-10-29 19:01:01 -0400 |
---|---|---|
committer | Aaron Merey <amerey@redhat.com> | 2019-10-29 19:01:01 -0400 |
commit | fcfc8980c38ec85bb09aff257a067d66faa04980 (patch) | |
tree | 78cbeecbd3fed83e27f014deb32e206ede37c1f5 | |
parent | a8bfb34c88d9b64ccfc032f8c15211f8a7aed890 (diff) | |
download | elfutils-debuginfod.tar.gz |
tests/run-debuginfod-find.sh: add tests for -X,-Idebuginfod
-rwxr-xr-x | tests/run-debuginfod-find.sh | 20 |
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 ######################################################################## |