File size: 54,675 Bytes
09f51e5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
#!/bin/bash
#***************************************************************************
# _ _ ____ _
# Project ___| | | | _ \| |
# / __| | | | |_) | |
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
# Copyright (C) Daniel Stenberg, <[email protected]>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at https://curl.se/docs/copyright.html.
#
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
# copies of the Software, and permit persons to whom the Software is
# furnished to do so, under the terms of the COPYING file.
#
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
# KIND, either express or implied.
#
# SPDX-License-Identifier: curl
#
###########################################################################
#
# Run some tests against servers we know to support ECH (CF, defo.ie, etc.).
# as well as some we know don't do ECH but have an HTTPS RR, and finally some
# for which neither is the case.
# TODO: Translate this into something that approximates a valid curl test:-)
# Should be useful though even before such translation and a pile less work
# to do this than that. The pile of work required would include making an
# ECH-enabled server and a DoH server. For now, this is just run manually.
#
# set -x
# Exit with an error if there's an active ech stanza in ~/.curlrc
# as that'd likely skew some results (e.g. turning a fail into a
# success or vice versa)
: "${CURL_CFG_FILE=$HOME/.curlrc}"
active_ech=$(grep ech "$CURL_CFG_FILE" | grep -v "#.*ech")
if [[ "$active_ech" != "" ]]
then
echo "You seem to have an active ECH setting in $CURL_CFG_FILE"
echo "That might affect results so please remove that or comment"
echo "it out - exiting."
exit 1
fi
# Targets we expect to be ECH-enabled servers
# for which an HTTPS RR is published.
# structure is host:port mapped to pathname
# TODO: add negative tests for these
declare -A ech_targets=(
[my-own.net]="ech-check.php"
[my-own.net:8443]="ech-check.php"
[defo.ie]="ech-check.php"
[cover.defo.ie]=""
[draft-13.esni.defo.ie:8413]="stats"
[draft-13.esni.defo.ie:8414]="stats"
[draft-13.esni.defo.ie:9413]=""
[draft-13.esni.defo.ie:10413]=""
[draft-13.esni.defo.ie:11413]=""
[draft-13.esni.defo.ie:12413]=""
[draft-13.esni.defo.ie:12414]=""
[crypto.cloudflare.com]="cdn-cgi/trace"
[tls-ech.dev]=""
# this one's gone away for now (possibly temporarily)
# [epochbelt.com]=""
)
# Targets we expect not to be ECH-enabled servers
# but for which an HTTPS RR is published.
declare -A httpsrr_targets=(
[ietf.org]=""
[rte.ie]=""
)
# Targets we expect not to be ECH-enabled servers
# and for which no HTTPS RR is published.
declare -A neither_targets=(
[www.tcd.ie]=""
[jell.ie]=""
)
#
# Variables that can be over-ridden from environment
#
# Top of curl test tree, assume we're there
: "${CTOP:=.}"
# Place to put test log output
: "${LTOP:=$CTOP/tests/ech-log/}"
# Place to stash outputs when things go wrong
: "${BTOP:=$LTOP}"
# Time to wait for a remote access to work, 10 seconds
: "${tout:=10s}"
# Where we find OpenSSL .so's
: "${OSSL:=$HOME/code/openssl-local-inst}"
# Where we find wolfSSL .so's
: "${WSSL:=$HOME/code/wolfssl/inst/lib}"
# Where we find BoringSSL .so's
: "${BSSL:=$HOME/code/boringssl/inst/lib}"
# Where we send DoH queries when using kdig or curl
: "${DOHSERVER:=one.one.one.one}"
: "${DOHPATH:=dns-query}"
# Whether to send mail when bad things happen (mostly for cronjob)
: "${DOMAIL:=no}"
# Misc vars and functions
DEFPORT=443
function whenisitagain()
{
/bin/date -u +%Y%m%d-%H%M%S
}
function fileage()
{
echo $(($(date +%s) - $(date +%s -r "$1")))
}
function hostport2host()
{
case $1 in
*:*) host=${1%:*} port=${1##*:};;
*) host=$1 port=$DEFPORT;;
esac
echo "$host"
}
function hostport2port()
{
case $1 in
*:*) host=${1%:*} port=${1##*:};;
*) host=$1 port=$DEFPORT;;
esac
echo "$port"
}
function cli_test()
{
# 1st param is target URL
turl=$1
# 2nd param is 0 if we expect curl to not work or 1 if we expect it
# to have worked
curl_winorlose=$2
# 3rd param is 0 if we expect ECH to not work or 1 if we expect it
# to have worked
ech_winorlose=$3
# remaining params are passed to command line
# echparms=(${@:4})
IFS=" " read -r -a echparms <<< "${@:4}"
TMPF=$(mktemp)
cmd="timeout $tout $CURL ${CURL_PARAMS[*]} ${echparms[*]} $turl >$TMPF 2>&1"
echo "cli_test: $cmd " >> "$logfile"
timeout "$tout" "$CURL" "${CURL_PARAMS[@]}" "${echparms[@]}" "$turl" >"$TMPF" 2>&1
eres=$?
if [[ "$eres" == "124" ]]
then
allgood="no"
echo "cli_test: Timeout running $cmd"
cat "$TMPF" >> "$logfile"
echo "cli_test: Timeout running $cmd" >> "$logfile"
fi
if [[ "$eres" != "0" && "$curl_winorlose" == "1" ]]
then
allgood="no"
echo "cli_test: curl failure running $cmd"
cat "$TMPF" >> "$logfile"
echo "cli_test: curl failure running $cmd" >> "$logfile"
fi
ech_success=$(grep -c "ECH: result: status is succeeded" "$TMPF")
if [[ "$ech_success" == "$ech_winorlose" ]]
then
echo "cli_test ok for ${echparms[*]}"
else
allgood="no"
echo "cli_test: ECH failure running $cmd"
cat "$TMPF" >> "$logfile"
echo "cli_test: ECH failure running $cmd" >> "$logfile"
fi
rm -f "$TMPF"
}
function get_ech_configlist()
{
domain=$1
ecl=$(dig +short https "$domain" | grep "ech=" | sed -e 's/^.*ech=//' | sed -e 's/ .*//')
echo "$ecl"
}
# start of main script
# start by assuming we have nothing we need...
have_ossl="no"
have_wolf="no"
have_bssl="no"
using_ossl="no"
using_wolf="no"
using_bssl="no"
have_curl="no"
have_dig="no"
have_kdig="no"
have_presout="no"
have_portsblocked="no"
# setup logging
NOW=$(whenisitagain)
BINNAME=$(basename "$0" .sh)
if [ ! -d "$LTOP" ]
then
mkdir -p "$LTOP"
fi
if [ ! -d "$LTOP" ]
then
echo "Can't see $LTOP for logs - exiting"
exit 1
fi
logfile=$LTOP/${BINNAME}_$NOW.log
echo "-----" > "$logfile"
echo "Running $0 at $NOW" >> "$logfile"
echo "Running $0 at $NOW"
# check we have the binaries needed and which TLS library we'll be using
if [ -f "$OSSL"/libssl.so ]
then
have_ossl="yes"
fi
if [ -f "$WSSL"/libwolfssl.so ]
then
have_wolf="yes"
fi
if [ -f "$BSSL"/libssl.so ]
then
have_bssl="yes"
fi
CURL="$CTOP/src/curl"
CURL_PARAMS=(-vvv --doh-url https://one.one.one.one/dns-query)
if [ -f "$CTOP"/src/curl ]
then
have_curl="yes"
fi
ossl_cnt=$(LD_LIBRARY_PATH=$OSSL $CURL "${CURL_PARAMS[@]}" -V 2> /dev/null | grep -c OpenSSL)
if ((ossl_cnt == 1))
then
using_ossl="yes"
# setup access to our .so
export LD_LIBRARY_PATH=$OSSL
fi
bssl_cnt=$(LD_LIBRARY_PATH=$BSSL $CURL "${CURL_PARAMS[@]}" -V 2> /dev/null | grep -c BoringSSL)
if ((bssl_cnt == 1))
then
using_bssl="yes"
# setup access to our .so
export LD_LIBRARY_PATH=$BSSL
fi
wolf_cnt=$($CURL "${CURL_PARAMS[@]}" -V 2> /dev/null | grep -c wolfSSL)
if ((wolf_cnt == 1))
then
using_wolf="yes"
# for some reason curl+wolfSSL dislikes certs that are ok
# for browsers, so we'll test using "insecure" mode (-k)
# but that's ok here as we're only interested in ECH testing
CURL_PARAMS+=(-k)
fi
# check if we have dig and it knows https or not
digcmd="dig +short"
wdig=$(type -p dig)
if [[ "$wdig" != "" ]]
then
have_dig="yes"
fi
wkdig=$(type -p kdig)
if [[ "$wkdig" != "" ]]
then
have_kdig="yes"
digcmd="kdig @$DOHSERVER +https +short"
fi
# see if our dig version knows HTTPS
dout=$($digcmd https defo.ie)
if [[ $dout != "1 . "* ]]
then
dout=$($digcmd -t TYPE65 defo.ie)
if [[ $dout == "1 . "* ]]
then
# we're good
have_presout="yes"
fi
else
have_presout="yes"
fi
# Check if ports other than 443 are blocked from this
# vantage point (I run tests in a n/w where that's
# sadly true sometimes;-)
# echo "Checking if ports other than 443 are maybe blocked"
not443testurl="https://draft-13.esni.defo.ie:9413/"
timeout "$tout" "$CURL" "${CURL_PARAMS[@]}" "$not443testurl" >/dev/null 2>&1
eres=$?
if [[ "$eres" == "124" ]]
then
echo "Timeout running curl for $not443testurl" >> "$logfile"
echo "Timeout running curl for $not443testurl"
have_portsblocked="yes"
fi
{
echo "have_ossl: $have_ossl"
echo "have_wolf: $have_wolf"
echo "have_bssl: $have_bssl"
echo "using_ossl: $using_ossl"
echo "using_wolf: $using_wolf"
echo "using_bssl: $using_bssl"
echo "have_curl: $have_curl"
echo "have_dig: $have_dig"
echo "have_kdig: $have_kdig"
echo "have_presout: $have_presout"
echo "have_portsblocked: $have_portsblocked"
} >> "$logfile"
echo "curl: have $have_curl, cURL command: |$CURL ${CURL_PARAMS[*]}|"
echo "ossl: have: $have_ossl, using: $using_ossl"
echo "wolf: have: $have_wolf, using: $using_wolf"
echo "bssl: have: $have_bssl, using: $using_bssl"
echo "dig: $have_dig, kdig: $have_kdig, HTTPS pres format: $have_presout"
echo "dig command: |$digcmd|"
echo "ports != 443 blocked: $have_portsblocked"
if [[ "$have_curl" == "no" ]]
then
echo "Can't proceed without curl - exiting"
exit 32
fi
allgood="yes"
skip="false"
if [[ "$skip" != "true" ]]
then
# basic ECH good/bad
for targ in "${!ech_targets[@]}"
do
if [[ "$using_wolf" == "yes" ]]
then
case $targ in
"draft-13.esni.defo.ie:8414" | "tls-ech.dev" | \
"crypto.cloudflare.com" | "epochbelt.com")
echo "Skipping $targ 'cause wolf"; continue;;
*)
;;
esac
fi
host=$(hostport2host "$targ")
port=$(hostport2port "$targ")
if [[ "$port" != "443" && "$have_portsblocked" == "yes" ]]
then
echo "Skipping $targ as ports != 443 seem blocked"
continue
fi
path=${ech_targets[$targ]}
turl="https://$host:$port/$path"
echo "ECH check for $turl"
{
echo ""
echo "ECH check for $turl"
} >> "$logfile"
timeout "$tout" "$CURL" "${CURL_PARAMS[@]}" --ech hard "$turl" >> "$logfile" 2>&1
eres=$?
if [[ "$eres" == "124" ]]
then
allgood="no"
{
echo "Timeout for $turl"
echo -e "\tTimeout for $turl"
echo "Timeout running curl for $host:$port/$path"
} >> "$logfile"
fi
if [[ "$eres" != "0" ]]
then
allgood="no"
echo "Error ($eres) for $turl" >> "$logfile"
echo -e "\tError ($eres) for $turl"
fi
echo "" >> "$logfile"
done
# check if public_name override works (OpenSSL only)
if [[ "$using_ossl" == "yes" ]]
then
for targ in "${!ech_targets[@]}"
do
host=$(hostport2host "$targ")
port=$(hostport2port "$targ")
if [[ "$port" != "443" && "$have_portsblocked" == "yes" ]]
then
echo "Skipping $targ as ports != 443 seem blocked"
continue
fi
if [[ "$host" == "crypto.cloudflare.com" ]]
then
echo "Skipping $host as they've blocked PN override"
continue
fi
path=${ech_targets[$targ]}
turl="https://$host:$port/$path"
echo "PN override check for $turl"
{
echo ""
echo "PN override check for $turl"
} >> "$logfile"
timeout "$tout" "$CURL" "${CURL_PARAMS[@]}" --ech pn:override --ech hard "$turl" >> "$logfile" 2>&1
eres=$?
if [[ "$eres" == "124" ]]
then
allgood="no"
{
echo "Timeout for $turl"
echo -e "\tTimeout for $turl"
echo "Timeout running curl for $host:$port/$path"
} >> "$logfile"
fi
if [[ "$eres" != "0" ]]
then
allgood="no"
echo "PN override Error ($eres) for $turl" >> "$logfile"
echo -e "\tPN override Error ($eres) for $turl"
fi
echo "" >> "$logfile"
done
fi
for targ in "${!httpsrr_targets[@]}"
do
host=$(hostport2host "$targ")
port=$(hostport2port "$targ")
if [[ "$port" != "443" && "$have_portsblocked" == "yes" ]]
then
echo "Skipping $targ as ports != 443 seem blocked"
continue
fi
path=${httpsrr_targets[$targ]}
turl="https://$host:$port/$path"
echo "HTTPS RR but no ECHConfig check for $turl"
{
echo ""
echo "HTTPS RR but no ECHConfig check for $turl"
} >> "$logfile"
timeout "$tout" "$CURL" "${CURL_PARAMS[@]}" --ech true "$turl" >> "$logfile" 2>&1
eres=$?
if [[ "$eres" == "124" ]]
then
allgood="no"
{
echo "Timeout for $turl"
echo -e "\tTimeout for $turl"
echo "Timeout running curl for $host:$port/$path"
} >> "$logfile"
fi
if [[ "$eres" != "0" ]]
then
allgood="no"
echo "Error ($eres) for $turl" >> "$logfile"
echo -e "\tError ($eres) for $turl"
fi
echo "" >> "$logfile"
done
for targ in "${!neither_targets[@]}"
do
host=$(hostport2host "$targ")
port=$(hostport2port "$targ")
if [[ "$port" != "443" && "$have_portsblocked" == "yes" ]]
then
echo "Skipping $targ as ports != 443 seem blocked"
continue
fi
path=${neither_targets[$targ]}
turl="https://$host:$port/$path"
echo "Neither HTTPS nor ECHConfig check for $turl"
{
echo ""
echo "Neither HTTPS nor ECHConfig check for $turl"
} >> "$logfile"
timeout "$tout" "$CURL" "${CURL_PARAMS[@]}" --ech true "$turl" >> "$logfile" 2>&1
eres=$?
if [[ "$eres" == "124" ]]
then
allgood="no"
{
echo "Timeout for $turl"
echo -e "\tTimeout for $turl"
echo "Timeout running curl for $host:$port/$path"
} >> "$logfile"
fi
if [[ "$eres" != "0" ]]
then
allgood="no"
echo "Error ($eres) for $turl" >> "$logfile"
echo -e "\tError ($eres) for $turl"
fi
echo "" >> "$logfile"
done
# Check various command line options, if we're good so far
if [[ "$using_ossl" == "yes" && "$allgood" == "yes" ]]
then
# use this test URL as it'll tell us if things worked
turl="https://defo.ie/ech-check.php"
echo "cli_test with $turl"
echo "cli_test with $turl" >> "$logfile"
cli_test "$turl" 1 1 --ech true
cli_test "$turl" 1 0 --ech false
cli_test "$turl" 1 1 --ech false --ech true
cli_test "$turl" 1 1 --ech false --ech true --ech pn:foobar
cli_test "$turl" 1 1 --ech false --ech pn:foobar --ech true
echconfiglist=$(get_ech_configlist defo.ie)
cli_test "$turl" 1 1 --ech ecl:"$echconfiglist"
cli_test "$turl" 1 0 --ech ecl:
fi
fi # skip
# Check combinations of command line options, if we're good so far
# Most of this only works for OpenSSL, which is ok, as we're checking
# the argument handling here, not the ECH protocol
if [[ "$using_ossl" == "yes" && "$allgood" == "yes" ]]
then
# ech can be hard, true, grease or false
# ecl:ecl can be correct, incorrect or missing
# ech:pn can be correct, incorrect or missing
# in all cases the "last" argument provided should "win"
# but only one of hard, true, grease or false will apply
turl="https://defo.ie/ech-check.php"
echconfiglist=$(get_ech_configlist defo.ie)
goodecl=$echconfiglist
echconfiglist=$(get_ech_configlist hidden.hoba.ie)
badecl=$echconfiglist
goodpn="cover.defo.ie"
badpn="hoba.ie"
echo "more cli_test with $turl"
echo "more cli_test with $turl" >> "$logfile"
# The combinatorics here are handled via the tests/ech_combos.py script
# which produces all the relevant combinations or inputs and orders
# thereof. We have to manually assess whether or not ECH is expected to
# work for each case.
cli_test "$turl" 0 0
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$badecl" --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$badecl" --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech hard
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$badecl" --ech hard --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$badecl" --ech hard --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech hard --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech hard --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$badecl" --ech hard --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$badecl" --ech hard --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech hard --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$badecl" --ech pn:"$badpn" --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$badecl" --ech pn:"$badpn" --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$badecl" --ech pn:"$badpn" --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$badecl" --ech pn:"$badpn" --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" - 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$badecl" --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$badecl" --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech false
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech false --ech ecl:"$badecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech false --ech ecl:"$badecl" --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech false --ech ecl:"$badecl" --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech hard
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech ecl:"$badecl" --ech hard --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech ecl:"$badecl" --ech hard --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech hard --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech hard --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech ecl:"$badecl" --ech hard --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech ecl:"$badecl" --ech hard --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech hard --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech false --ech ecl:"$badecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech ecl:"$badecl" --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech ecl:"$badecl" --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech false --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech false --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech hard
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech hard --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech hard --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech hard --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech hard --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech hard --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech hard --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech hard --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech false --ech pn:"$badpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech false --ech pn:"$badpn" --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech false --ech pn:"$badpn" --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech pn:"$badpn" --ech hard
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech pn:"$badpn" --ech hard --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech pn:"$badpn" --ech hard --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech pn:"$badpn" --ech hard --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech pn:"$badpn" --ech hard --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech pn:"$badpn" --ech hard --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech pn:"$badpn" --ech hard --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech pn:"$badpn" --ech hard --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech false --ech pn:"$badpn" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech pn:"$badpn" --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech pn:"$badpn" --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech pn:"$badpn" --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech pn:"$badpn" --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech false --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech false --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech hard
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech hard --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech hard --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech hard --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech hard --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech hard --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech hard --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech hard --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech pn:"$badpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech pn:"$badpn" --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech pn:"$badpn" --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech pn:"$badpn" --ech hard
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech pn:"$badpn" --ech hard --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech pn:"$badpn" --ech hard --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech pn:"$badpn" --ech hard --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech pn:"$badpn" --ech hard --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech pn:"$badpn" --ech hard --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech pn:"$badpn" --ech hard --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech pn:"$badpn" --ech hard --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech pn:"$badpn" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech pn:"$badpn" --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech pn:"$badpn" --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech pn:"$badpn" --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech pn:"$badpn" --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 0 --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 1 1 --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
# a target URL that doesn't support ECH
turl="https://tcd.ie"
echo "cli_test with $turl"
echo "cli_test with $turl" >> "$logfile"
# the params below don't matter much here as we'll fail anyway
echconfiglist=$(get_ech_configlist defo.ie)
goodecl=$echconfiglist
badecl="$goodecl"
goodpn="tcd.ie"
badpn="tcd.ie"
cli_test "$turl" 1 0
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech hard
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech hard --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech hard --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech hard --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech hard --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech hard --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech hard --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech hard --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$badpn" --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$badecl" --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech hard
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech hard --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech hard --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech hard --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech hard --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech hard --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech hard --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech hard --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech hard --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$badpn" --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$badecl" --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech hard
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech hard --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech hard --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech hard --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech hard --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech hard --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech hard --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech hard --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$badpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$badpn" --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$badpn" --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$badpn" --ech hard
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$badpn" --ech hard --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$badpn" --ech hard --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$badpn" --ech hard --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$badpn" --ech hard --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$badpn" --ech hard --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$badpn" --ech hard --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$badpn" --ech hard --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$badpn" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$badpn" --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$badpn" --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$badpn" --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$badpn" --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech false --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech hard
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech hard --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech hard --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech hard --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech hard --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech hard --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech hard --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech hard --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$badpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$badpn" --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$badpn" --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$badpn" --ech hard
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$badpn" --ech hard --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$badpn" --ech hard --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$badpn" --ech hard --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$badpn" --ech hard --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$badpn" --ech hard --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$badpn" --ech hard --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$badpn" --ech hard --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$badpn" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$badpn" --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$badpn" --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$badpn" --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$badpn" --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech true
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech true --ech ecl:"$goodecl"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech true --ech ecl:"$goodecl" --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
cli_test "$turl" 0 0 --ech true --ech pn:"$goodpn"
if [[ "$allgood" != "yes" ]]; then echo "$LINENO"; fi
fi
END=$(whenisitagain)
echo "Finished $0 at $END" >> "$logfile"
echo "-----" >> "$logfile"
if [[ "$allgood" == "yes" ]]
then
echo "Finished $0 at $END"
echo "All good, log in $logfile"
exit 0
else
echo "Finished $0 at $END"
echo "NOT all good, log in $logfile"
fi
# send a mail to root (will be fwd'd) but just once every 24 hours
# 'cause we only really need "new" news
itsnews="yes"
age_of_news=0
if [ -f "$LTOP"/bad_runs ]
then
age_of_news=$(fileage "$LTOP"/bad_runs)
# only consider news "new" if we haven't mailed today
if ((age_of_news < 24*3600))
then
itsnews="no"
fi
fi
if [[ "$DOMAIL" == "yes" && "$itsnews" == "yes" ]]
then
echo "ECH badness at $NOW" | mail -s "ECH badness at $NOW" root
fi
# add to list of bad runs (updating file age)
echo "ECH badness at $NOW" >>"$LTOP"/bad_runs
exit 2
|