"Fossies" - the Fresh Open Source Software Archive

Member "hitch-1.7.2/src/tests/test27-reload.sh" (29 Nov 2021, 663 Bytes) of package /linux/www/hitch-1.7.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 and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "test27-reload.sh": 1.7.0_vs_1.7.2.

    1 #!/bin/sh
    2 
    3 . hitch_test.sh
    4 
    5 cp ${CERTSDIR}/default.example.com cert.pem
    6 
    7 # XXX: reload doesn't work with a relative pem file
    8 cat >hitch.cfg <<EOF
    9 pem-file = "$PWD/cert.pem"
   10 frontend = "[localhost]:$LISTENPORT"
   11 backend = "[hitch-tls.org]:80"
   12 EOF
   13 
   14 # XXX: reload doesn't work with a relative config file
   15 start_hitch --config=$PWD/hitch.cfg
   16 
   17 s_client >s_client1.dump
   18 subject_field_eq CN "default.example.com" s_client1.dump
   19 
   20 # restart hitch after having a more recent cert file
   21 cp ${CERTSDIR}/ecc.example.com.pem cert.pem
   22 echo "kill -HUP $(hitch_pid)"
   23 kill -HUP $(hitch_pid)
   24 sleep 2
   25 
   26 s_client | tee s_client2.dump
   27 subject_field_eq CN "ecc.example.com" s_client2.dump