Lines Matching +full:scan +full:- +full:build
3 # Copyright (C) 2019-2021 Red Hat, Inc.
19 . $srcdir/debuginfod-subr.sh
22 set -x
32 # not tempfiles F R L D Z - they are directories which we clean up manually
33 ln -s ${abs_builddir}/dwfllines L/foo # any program not used elsewhere in this test
34 # This variable is essential and ensures no time-race for claiming ports occurs
35 # set base to a unique multiple of 100 not used in any other 'run-debuginfod-*' test
40 …_PATH=$ldpath ${abs_builddir}/../debuginfod/debuginfod $VERBOSE -d ${DB} -F -U -t0 -g0 -p $PORT1 L…
47 # Wait till initial scan is done
49 wait_ready $PORT1 'thread_work_pending{role="scan"}' 0
50 wait_ready $PORT1 'thread_busy{role="scan"}' 0
52 # Compile a simple program, strip its debuginfo and save the build-id.
59 gcc -Wl,--build-id -g -o prog ${PWD}/foobar///./../prog.c
60 testrun ${abs_top_builddir}/src/strip -g -f prog.debug ${PWD}/prog
62 -a prog | grep 'Build ID' | cut -d ' ' -f 7`
66 kill -USR1 $PID1
69 wait_ready $PORT1 'thread_work_pending{role="scan"}' 0
70 wait_ready $PORT1 'thread_busy{role="scan"}' 0
72 wait_ready $PORT1 'thread_busy{role="http-buildid"}' 0
73 wait_ready $PORT1 'thread_busy{role="http-metrics"}' 1
76 mkdir -p $DEBUGINFOD_CACHE_PATH
77 # NB: run in -L symlink-following mode for the L subdir
78 ….0.1:$PORT1 ${abs_builddir}/../debuginfod/debuginfod $VERBOSE -d ${DB}_2 -F -U -p $PORT2 -L L D > …
86 wait_ready $PORT2 'thread_work_pending{role="scan"}' 0
87 wait_ready $PORT2 'thread_busy{role="scan"}' 0
89 wait_ready $PORT2 'thread_busy{role="http-buildid"}' 0
90 wait_ready $PORT2 'thread_busy{role="http-metrics"}' 1
94 # Use fresh cache for debuginfod-find client requests
96 mkdir -p $DEBUGINFOD_CACHE_PATH
100 cp -rvp ${abs_srcdir}/debuginfod-debs/*deb D
101 kill -USR1 $PID2
103 wait_ready $PORT2 'thread_work_pending{role="scan"}' 0
104 wait_ready $PORT2 'thread_busy{role="scan"}' 0
107 debs=$(find D -name \*.deb | wc -l)
109 ddebs=$(find D -name \*.ddeb | wc -l)
116 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID
118 # send a request to stress XFF and User-Agent federation relay;
120 curl -s -H 'User-Agent: TESTCURL' -H 'X-Forwarded-For: TESTXFF' $DEBUGINFOD_URLS/buildid/deaddeadbe…
127 -a L/foo | grep 'Build ID' | cut -d ' ' -f 7`
129 file -L L/foo
131 rm -rf $DEBUGINFOD_CACHE_PATH
132 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID && false || true
133 rm -f $DEBUGINFOD_CACHE_PATH/$BUILDID/debuginfo # drop negative-hit file
135 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID
139 rm -rf $DEBUGINFOD_CACHE_PATH
140 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID && false || true
141 rm -f $DEBUGINFOD_CACHE_PATH/$BUILDID/debuginfo # drop negative-hit file
143 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID
146 mkdir -p $DEBUGINFOD_CACHE_PATH
149 testrun ${abs_builddir}/debuginfod_build_id_find -e F/prog 1
153 curl -s http://127.0.0.1:$PORT1/badapi
154 curl -s http://127.0.0.1:$PORT1/metrics
155 curl -s http://127.0.0.1:$PORT2/metrics
156 curl -s http://127.0.0.1:$PORT1/metrics | grep -q 'http_responses_total.*result.*error'
157 curl -s http://127.0.0.1:$PORT2/metrics | grep -q 'http_responses_total.*result.*upstream'
158 curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_duration_milliseconds_count'
159 curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_duration_milliseconds_sum'
160 curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_count'
161 curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_sum'
162 curl -s http://127.0.0.1:$PORT1/metrics | grep 'fdcache_'
163 curl -s http://127.0.0.1:$PORT1/metrics | grep 'error_count'
164 curl -s http://127.0.0.1:$PORT1/metrics | grep 'traversed_total'
165 curl -s http://127.0.0.1:$PORT1/metrics | grep 'scanned_bytes_total'
168 curl -s http://127.0.0.1:$PORT2/badapi > /dev/null || true
169 curl -s http://127.0.0.1:$PORT2/buildid/deadbeef/debuginfo > /dev/null || true
170 # NB: this error is used to seed the 404 failure for the survive-404 tests
173 curl -s http://127.0.0.1:$PORT2/buildid/deadbeef/badtype > /dev/null || true
174 (curl -s http://127.0.0.1:$PORT2/metrics | grep 'badtype') && false
178 rm -f .client_cache*/$BUILDID/debuginfo
179 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID
180 rm -f .client_cache*/$BUILDID/debuginfo
181 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID
182 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID
183 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID
184 rm -f .client_cache*/$BUILDID/debuginfo
185 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo $BUILDID
188 curl -s http://127.0.0.1:$PORT2/metrics | grep 'dc_pool_op.*reuse'
193 # and impose some "after-you" delays.
196 …curl -s http://127.0.0.1:$PORT1/buildid/87c08d12c78174f1082b7c888b3238219b0eb265/executable >/dev/…
199 curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_after_you.*'