• Home
  • Raw
  • Download

Lines Matching +full:scan +full:- +full:build

3 # Copyright (C) 2019-2021 Red Hat, Inc.
19 . $srcdir/debuginfod-subr.sh
22 set -x
31 # not tempfiles F R L D Z - they are directories which we clean up manually
32 ln -s ${abs_builddir}/dwfllines L/foo # any program not used elsewhere in this test
35 # Compile a simple program, strip its debuginfo and save the build-id.
42 gcc -Wl,--build-id -g -o prog ${PWD}/foobar///./../prog.c
43 testrun ${abs_top_builddir}/src/strip -g -f prog.debug ${PWD}/prog
45 -a prog | grep 'Build ID' | cut -d ' ' -f 7`
49 # This variable is essential and ensures no time-race for claiming ports occurs
50 # set base to a unique multiple of 100 not used in any other 'run-debuginfod-*' test
54 …_PATH=$ldpath ${abs_builddir}/../debuginfod/debuginfod $VERBOSE -d ${DB} -F -U -t0 -g0 -p $PORT1 L…
61 # Wait till initial scan is done
63 wait_ready $PORT1 'thread_work_pending{role="scan"}' 0
64 wait_ready $PORT1 'thread_busy{role="scan"}' 0
67 mkdir -p $DEBUGINFOD_CACHE_PATH
68 # NB: run in -L symlink-following mode for the L subdir
69 ….0.1:$PORT1 ${abs_builddir}/../debuginfod/debuginfod $VERBOSE -d ${DB}_2 -F -U -p $PORT2 -L L D F …
75 # Wait till initial scan is done
81 # Use fresh cache for debuginfod-find client requests
83 mkdir -p $DEBUGINFOD_CACHE_PATH
87 cp -rvp ${abs_srcdir}/debuginfod-debs/*deb D
88 kill -USR1 $PID2
90 wait_ready $PORT2 'thread_work_pending{role="scan"}' 0
91 wait_ready $PORT2 'thread_busy{role="scan"}' 0
94 debs=$(find D -name \*.deb | wc -l)
96 ddebs=$(find D -name \*.ddeb | wc -l)
103 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID
105 # send a request to stress XFF and User-Agent federation relay;
107 curl -s -H 'User-Agent: TESTCURL' -H 'X-Forwarded-For: TESTXFF' $DEBUGINFOD_URLS/buildid/deaddeadbe…
114 -a L/foo | grep 'Build ID' | cut -d ' ' -f 7`
116 file -L L/foo
118 rm -rf $DEBUGINFOD_CACHE_PATH
119 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID && false || true
120 rm -f $DEBUGINFOD_CACHE_PATH/$BUILDID/debuginfo # drop negative-hit file
122 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID
126 rm -rf $DEBUGINFOD_CACHE_PATH
127 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID && false || true
128 rm -f $DEBUGINFOD_CACHE_PATH/$BUILDID/debuginfo # drop negative-hit file
130 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID
132 rm -rf $DEBUGINFOD_CACHE_PATH
135 testrun ${abs_builddir}/debuginfod_build_id_find -e F/prog 1
138 curl -s http://127.0.0.1:$PORT2/badapi > /dev/null || true
139 curl -s http://127.0.0.1:$PORT2/buildid/deadbeef/debuginfo > /dev/null || true
140 # NB: this error is used to seed the 404 failure for the survive-404 tests
143 curl -s http://127.0.0.1:$PORT2/buildid/deadbeef/badtype > /dev/null || true
144 (curl -s http://127.0.0.1:$PORT2/metrics | grep 'badtype') && false
148 rm -f .client_cache*/$BUILDID/debuginfo
149 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID
150 rm -f .client_cache*/$BUILDID/debuginfo
151 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID
152 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID
153 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID
154 rm -f .client_cache*/$BUILDID/debuginfo
155 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID
159 # and impose some "after-you" delays.
163 …curl -s http://127.0.0.1:$PORT1/buildid/87c08d12c78174f1082b7c888b3238219b0eb265/executable >/dev/…
166 curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_after_you.*'
177 kill -USR1 $PID1
179 wait_ready $PORT1 'thread_work_pending{role="scan"}' 0
180 wait_ready $PORT1 'thread_busy{role="scan"}' 0
181 kill -USR2 $PID1
183 curl -s http://127.0.0.1:$PORT1/buildid/beefbeefbeefd00dd00d/debuginfo > /dev/null || true
185 kill -INT $PID1 $PID2
195 testrun ${abs_builddir}/debuginfod_build_id_find -e F/prog 1
199 grep -q 'UA:.*XFF:.*GET /buildid/.* 200 ' vlog$PORT2
200 grep -q 'UA:.*XFF:.*GET /metrics 200 ' vlog$PORT2
201 grep -q 'UA:.*XFF:.*GET /badapi 503 ' vlog$PORT2
202 grep -q 'UA:.*XFF:.*GET /buildid/deadbeef.* 404 ' vlog$PORT2