"Fossies" - the Fresh Open Source Software Archive

Member "apt-1.9.4/test/integration/test-bug-870675-hang-on-unsupported-method" (19 Sep 2019, 1352 Bytes) of package /linux/misc/apt-1.9.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    2 set -e
    3 
    4 TESTDIR="$(readlink -f "$(dirname "$0")")"
    5 . "$TESTDIR/framework"
    6 setupenvironment
    7 configarchitecture 'amd64'
    8 
    9 changetowebserver
   10 
   11 echo 'foo' > aptarchive/foobar
   12 echo 'bar' > aptarchive/foobar2
   13 
   14 testsuccess apthelper download-file "http://localhost:${APTHTTPPORT}/foobar" ./downloaded/foobar 'SHA1:f1d2d2f924e986ac86fdf7b36c94bcdf32beec15'
   15 rm -f ./downloaded/foobar
   16 testsuccess apthelper download-file "http://localhost:${APTHTTPPORT}/foobar" ./downloaded/foobar 'SHA1:f1d2d2f924e986ac86fdf7b36c94bcdf32beec15' \
   17     "http://localhost:${APTHTTPPORT}/foobar2" ./downloaded/foobar2 'SHA1:e242ed3bffccdf271b7fbaf34ed72d089537b42f'
   18 rm -f ./downloaded/foobar ./downloaded/foobar2
   19 
   20 testfailure apthelper download-file "foo://localhost:${APTHTTPPORT}/foobar" ./downloaded/foobar 'SHA1:f1d2d2f924e986ac86fdf7b36c94bcdf32beec15'
   21 testsuccess grep 'The method driver .*/foo could not be found' rootdir/tmp/testfailure.output
   22 rm -f ./downloaded/foobar
   23 testfailure apthelper download-file "foo://localhost:${APTHTTPPORT}/foobar" ./downloaded/foobar 'SHA1:f1d2d2f924e986ac86fdf7b36c94bcdf32beec15' \
   24     "foo://localhost:${APTHTTPPORT}/foobar2" ./downloaded/foobar2 'SHA1:e242ed3bffccdf271b7fbaf34ed72d089537b42f'
   25 testsuccess grep 'The method driver .*/foo could not be found' rootdir/tmp/testfailure.output
   26 rm -f ./downloaded/foobar ./downloaded/foobar2