• Home
  • Raw
  • Download

Lines Matching +full:fedora +full:- +full:base

21 . $srcdir/debuginfod-subr.sh  # includes set -e
24 set -x
30 # This variable is essential and ensures no time-race for claiming ports occurs
31 # set base to a unique multiple of 100 not used in any other 'run-debuginfod-*' test
32 base=9500
35 …FOD_URLS= ${abs_builddir}/../debuginfod/debuginfod $VERBOSE -F -R -d $DB -p $PORT1 -t0 -g0 -v R F …
44 # Compile a simple program, strip its debuginfo and save the build-id.
51 gcc -Wl,--build-id -g -o prog ${PWD}/foobar///./../prog.c
55 cp -rvp ${abs_srcdir}/debuginfod-rpms R
56 if [ "$zstd" = "false" ]; then # nuke the zstd fedora 31 ones
57 rm -vrf R/debuginfod-rpms/fedora31
60 kill -USR1 $PID1
63 # All rpms need to be in the index, except the dummy permission-000 one
64 rpms=$(find R -name \*rpm | grep -v nothing | wc -l)
66 kill -USR1 $PID1 # two hits of SIGUSR1 may be needed to resolve .debug->dwz->srefs
72 # Make a simple request to the debuginfod server and check debuginfod-find's vlog to see if
74 rm -rf $DEBUGINFOD_CACHE_PATH
75 …S="http://127.0.0.1:"$PORT1 LD_LIBRARY_PATH=$ldpath ${abs_top_builddir}/debuginfod/debuginfod-find\
76 -vvv executable F/prog > vlog-find$PORT1.1 2>&1
77 tempfiles vlog-find$PORT1.1
78 errfiles vlog-find$PORT1.1
79 cat vlog-find$PORT1.1
80 grep 'Headers:' vlog-find$PORT1.1
81 grep -i 'X-DEBUGINFOD-FILE: prog' vlog-find$PORT1.1
82 grep -i 'X-DEBUGINFOD-SIZE: ' vlog-find$PORT1.1
85 …S="http://127.0.0.1:"$PORT1 LD_LIBRARY_PATH=$ldpath ${abs_top_builddir}/debuginfod/debuginfod-find\
86 -vvv executable c36708a78618d597dee15d0dc989f093ca5f9120 > vlog-find$PORT1.2 2>&1
87 tempfiles vlog-find$PORT1.2
88 errfiles vlog-find$PORT1.2
89 cat vlog-find$PORT1.2
90 grep 'Headers:' vlog-find$PORT1.2
91 grep -i 'X-DEBUGINFOD-FILE: ' vlog-find$PORT1.2
92 grep -i 'X-DEBUGINFOD-SIZE: ' vlog-find$PORT1.2
93 grep -i 'X-DEBUGINFOD-ARCHIVE: ' vlog-find$PORT1.2
95 # Check that X-DEBUGINFOD-SIZE matches the size of each file
96 for file in vlog-find$PORT1.1 vlog-find$PORT1.2
98 st_size=$(stat -c%s $(tail -n 1 $file))
99 x_debuginfod_size=$(grep -i 'X-DEBUGINFOD-SIZE' $file | head -1 | grep -E -o '[0-9]+')
100 test $st_size -eq $x_debuginfod_size
103 rm -rf $DEBUGINFOD_CACHE_PATH
105 -a F/prog | grep 'Build ID' | cut -d ' ' -f 7`
107 mkdir -p ${PWD}/$netcat_dir
112 (echo -e "HTTP/1.1 200 OK\r\nX-DEBUGINFOD-SIZE: ba:d_size\nX-DEBUGINFOD-\rFILE:\=\+ \r213\n\n $(dat…
114 # Wait a bit until the netcat port is in use. Otherwise debuginfod-find can query
118 touch vlog-find$PORT2
119 errfiles vlog-find$PORT2
120 tempfiles vlog-find$PORT2
123 …S="http://127.0.0.1:"$PORT2 LD_LIBRARY_PATH=$ldpath ${abs_top_builddir}/debuginfod/debuginfod-find\
124-vvv executable $BUILDID > vlog-find$PORT2 2>&1 || true # permit curl rejection of the bad headers
125 cat vlog-find$PORT2 # won't have any valid x-debuginfod* headers
126 rm -f "$netcat_dir"executable
127 rmdir -p $netcat_dir