"Fossies" - the Fresh Open Source Software Archive

Member "hitch-1.5.2/src/tests/test32-proxy-authority.sh" (27 Aug 2019, 476 Bytes) of package /linux/www/hitch-1.5.2.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 
    3 . hitch_test.sh
    4 
    5 BACKENDPORT=$(expr $LISTENPORT + 1600)
    6 
    7 parse_proxy_v2 $BACKENDPORT >proxy.dump &
    8 
    9 cat >hitch.cfg <<EOF
   10 backend = "[127.0.0.1]:$BACKENDPORT"
   11 frontend = "[*]:$LISTENPORT"
   12 pem-file = "${CERTSDIR}/default.example.com"
   13 write-proxy = on
   14 EOF
   15 
   16 start_hitch --config=hitch.cfg
   17 
   18 sleep 0.1
   19 
   20 s_client -servername default.example.com >s_client.dump
   21 
   22 ! grep ERROR proxy.dump
   23 cat proxy.dump
   24 run_cmd grep -Pq "Authority extension:\tdefault.example.com" proxy.dump