Lines Matching +full:- +full:- +full:fail +full:- +full:env +full:- +full:changed
1 #!/usr/bin/env bash
3 # Copyright (C) 2019-2021 Red Hat, Inc.
19 . $srcdir/debuginfod-subr.sh
22 set -x
27 # This variable is essential and ensures no time-race for claiming ports occurs
28 # set base to a unique multiple of 100 not used in any other 'run-debuginfod-*' test
31 env LD_LIBRARY_PATH=$ldpath DEBUGINFOD_URLS= ${abs_builddir}/../debuginfod/debuginfod $VERBOSE -F -…
32 -t0 -g0 -v ${PWD} > vlog$PORT1 2>&1 &
41 ps -q $PID1 -e -L -o '%p %c %a' | grep groom
42 ps -q $PID1 -e -L -o '%p %c %a' | grep scan
43 ps -q $PID1 -e -L -o '%p %c %a' | grep traverse
47 rm -rf $DEBUGINFOD_CACHE_PATH # clean it from previous tests
49 # The query is designed to fail, while the empty file should be created.
50 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo 01234567 || true
51 if [ ! -f $DEBUGINFOD_CACHE_PATH/01234567/debuginfo ]; then
56 if [ `stat -c "%s" $DEBUGINFOD_CACHE_PATH/01234567/debuginfo` != 0 ]; then
61 bytecount_before=`curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_cou…
62 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo 01234567 || true
63 bytecount_after=`curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_coun…
65 echo "http_responses_transfer_bytes_count{code="404",type="debuginfo"} has changed."
72 bytecount_before=`curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_cou…
73 testrun ${abs_top_builddir}/debuginfod/debuginfod-find debuginfo 01234567 || true
74 bytecount_after=`curl -s http://127.0.0.1:$PORT1/metrics | grep 'http_responses_transfer_bytes_coun…