Changeset a213967 in mod_gnutls
- Timestamp:
- Mar 31, 2015, 11:16:11 AM (8 years ago)
- Branches:
- asyncio, debian/master, debian/stretch-backports, jessie-backports, master, proxy-ticket, upstream
- Children:
- 232fb60
- Parents:
- ed82a6a
- Location:
- test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
test/runtests
red82a6a ra213967 33 33 } 34 34 35 # Compare expected/actual outputs, filtering out the "Date" header 36 # from actual output because it is expected to change. It must have 37 # been manually excluded from the expected output. 35 # Compare expected/actual outputs, filtering out headers from actual 36 # output that are expected to change between runs or builds (currently 37 # "Date" and "Server"). The headers must be excluded in the expected 38 # output. 38 39 # 39 40 # Parameters: … … 41 42 # $2: path to actual output 42 43 # $3: additional options for diff (optional) 43 function diff_output_filter_ date()44 function diff_output_filter_headers() 44 45 { 45 46 expected="$1" 46 47 actual="$2" 47 48 diff $3 -u "${expected}" <( cat "${actual}" | \ 48 grep -v -P '^Date:\s.*GMT\s?$' | tail -n "$(wc -l < ${expected})" ) 49 grep -v -P '^Date:\s.*GMT\s?$' | \ 50 grep -v -P '^Server:\sApache' | \ 51 tail -n "$(wc -l < ${expected})" ) 49 52 } 50 53 … … 54 57 if [ -e output ]; then 55 58 printf "\ngnutls-cli outputs:\n" 56 diff_output_filter_ date"output" "$output" || true59 diff_output_filter_headers "output" "$output" || true 57 60 fi 58 61 printf "\nApache error logs:\n" … … 131 134 132 135 if [ -e output ] ; then 133 diff_output_filter_ date"output" "$output" "-q"136 diff_output_filter_headers "output" "$output" "-q" 134 137 fi 135 138 /usr/sbin/apache2 -f "$(pwd)/apache.conf" -k stop || [ -e fail.server ] -
test/tests/21_TLS_reverse_proxy_wrong_cert/output
red82a6a ra213967 1 1 HTTP/1.1 502 Proxy Error 2 Server: Apache/2.4.10 (Ubuntu) mod_gnutls/0.6 GnuTLS/3.2.163 2 Content-Length: 407 4 3 Connection: close
Note: See TracChangeset
for help on using the changeset viewer.