| | @@ -16,63 +16,63 @@ |
| 16 | 16 | ############################################################################ |
| 17 | 17 | # |
| 18 | 18 | # TH1 Commands |
| 19 | 19 | # |
| 20 | 20 | |
| 21 | | -fossil test-th-eval --th-open-config "setting th1-hooks" |
| 21 | +fossil test-th-eval --open-config "setting th1-hooks" |
| 22 | 22 | set th1Hooks [expr {$RESULT eq "1"}] |
| 23 | 23 | |
| 24 | 24 | ############################################################################### |
| 25 | 25 | |
| 26 | | -fossil test-th-eval --th-open-config "setting abc" |
| 26 | +fossil test-th-eval --open-config "setting abc" |
| 27 | 27 | test th1-setting-1 {$RESULT eq ""} |
| 28 | 28 | |
| 29 | 29 | ############################################################################### |
| 30 | 30 | |
| 31 | | -fossil test-th-eval --th-open-config "setting -- abc" |
| 31 | +fossil test-th-eval --open-config "setting -- abc" |
| 32 | 32 | test th1-setting-2 {$RESULT eq ""} |
| 33 | 33 | |
| 34 | 34 | ############################################################################### |
| 35 | 35 | |
| 36 | | -fossil test-th-eval --th-open-config "setting -strict abc" |
| 36 | +fossil test-th-eval --open-config "setting -strict abc" |
| 37 | 37 | test th1-setting-3 {$RESULT eq {TH_ERROR: no value for setting "abc"}} |
| 38 | 38 | |
| 39 | 39 | ############################################################################### |
| 40 | 40 | |
| 41 | | -fossil test-th-eval --th-open-config "setting -strict -- abc" |
| 41 | +fossil test-th-eval --open-config "setting -strict -- abc" |
| 42 | 42 | test th1-setting-4 {$RESULT eq {TH_ERROR: no value for setting "abc"}} |
| 43 | 43 | |
| 44 | 44 | ############################################################################### |
| 45 | 45 | |
| 46 | | -fossil test-th-eval --th-open-config "setting autosync" |
| 46 | +fossil test-th-eval --open-config "setting autosync" |
| 47 | 47 | test th1-setting-5 {$RESULT eq 0 || $RESULT eq 1} |
| 48 | 48 | |
| 49 | 49 | ############################################################################### |
| 50 | 50 | |
| 51 | | -fossil test-th-eval --th-open-config "setting -strict autosync" |
| 51 | +fossil test-th-eval --open-config "setting -strict autosync" |
| 52 | 52 | test th1-setting-6 {$RESULT eq 0 || $RESULT eq 1} |
| 53 | 53 | |
| 54 | 54 | ############################################################################### |
| 55 | 55 | |
| 56 | | -fossil test-th-eval --th-open-config "setting --" |
| 56 | +fossil test-th-eval --open-config "setting --" |
| 57 | 57 | test th1-setting-7 {$RESULT eq \ |
| 58 | 58 | {TH_ERROR: wrong # args: should be "setting ?-strict? ?--? name"}} |
| 59 | 59 | |
| 60 | 60 | ############################################################################### |
| 61 | 61 | |
| 62 | | -fossil test-th-eval --th-open-config "setting -strict --" |
| 62 | +fossil test-th-eval --open-config "setting -strict --" |
| 63 | 63 | test th1-setting-8 {$RESULT eq \ |
| 64 | 64 | {TH_ERROR: wrong # args: should be "setting ?-strict? ?--? name"}} |
| 65 | 65 | |
| 66 | 66 | ############################################################################### |
| 67 | 67 | |
| 68 | | -fossil test-th-eval --th-open-config "setting -- --" |
| 68 | +fossil test-th-eval --open-config "setting -- --" |
| 69 | 69 | test th1-setting-9 {$RESULT eq {}} |
| 70 | 70 | |
| 71 | 71 | ############################################################################### |
| 72 | 72 | |
| 73 | | -fossil test-th-eval --th-open-config "setting -strict -- --" |
| 73 | +fossil test-th-eval --open-config "setting -strict -- --" |
| 74 | 74 | test th1-setting-10 {$RESULT eq {TH_ERROR: no value for setting "--"}} |
| 75 | 75 | |
| 76 | 76 | ############################################################################### |
| 77 | 77 | |
| 78 | 78 | fossil test-th-eval "expr 42/0" |
| | @@ -595,26 +595,26 @@ |
| 595 | 595 | fossil test-th-eval "styleHeader {Page Title Here}" |
| 596 | 596 | test th1-header-1 {$RESULT eq {TH_ERROR: repository unavailable}} |
| 597 | 597 | |
| 598 | 598 | ############################################################################### |
| 599 | 599 | |
| 600 | | -fossil test-th-eval --th-open-config "styleHeader {Page Title Here}" |
| 600 | +fossil test-th-eval --open-config "styleHeader {Page Title Here}" |
| 601 | 601 | test th1-header-2 {[regexp -- {<title>Fossil: Page Title Here</title>} $RESULT]} |
| 602 | 602 | |
| 603 | 603 | ############################################################################### |
| 604 | 604 | |
| 605 | 605 | fossil test-th-eval "styleFooter" |
| 606 | 606 | test th1-footer-1 {$RESULT eq {TH_ERROR: repository unavailable}} |
| 607 | 607 | |
| 608 | 608 | ############################################################################### |
| 609 | 609 | |
| 610 | | -fossil test-th-eval --th-open-config "styleFooter" |
| 610 | +fossil test-th-eval --open-config "styleFooter" |
| 611 | 611 | test th1-footer-2 {$RESULT eq {}} |
| 612 | 612 | |
| 613 | 613 | ############################################################################### |
| 614 | 614 | |
| 615 | | -fossil test-th-eval --th-open-config --th-force-cgi "styleHeader {}; styleFooter" |
| 615 | +fossil test-th-eval --open-config --cgi "styleHeader {}; styleFooter" |
| 616 | 616 | test th1-footer-3 {[regexp -- {</body></html>} $RESULT]} |
| 617 | 617 | |
| 618 | 618 | ############################################################################### |
| 619 | 619 | |
| 620 | 620 | fossil test-th-eval "getParameter" |
| | @@ -678,42 +678,42 @@ |
| 678 | 678 | fossil test-th-eval "artifact tip" |
| 679 | 679 | test th1-artifact-2 {$RESULT eq {TH_ERROR: repository unavailable}} |
| 680 | 680 | |
| 681 | 681 | ############################################################################### |
| 682 | 682 | |
| 683 | | -fossil test-th-eval --th-open-config "artifact tip" |
| 683 | +fossil test-th-eval --open-config "artifact tip" |
| 684 | 684 | test th1-artifact-3 {[regexp -- {F test/th1\.test [0-9a-f]{40}} $RESULT]} |
| 685 | 685 | |
| 686 | 686 | ############################################################################### |
| 687 | 687 | |
| 688 | 688 | fossil test-th-eval "artifact 0000000000" |
| 689 | 689 | test th1-artifact-4 {$RESULT eq {TH_ERROR: repository unavailable}} |
| 690 | 690 | |
| 691 | 691 | ############################################################################### |
| 692 | 692 | |
| 693 | | -fossil test-th-eval --th-open-config "artifact 0000000000" |
| 694 | | -test th1-artifact-5 {$RESULT eq {TH_ERROR: artifact not found}} |
| 693 | +fossil test-th-eval --open-config "artifact 0000000000" |
| 694 | +test th1-artifact-5 {$RESULT eq {TH_ERROR: name not found}} |
| 695 | 695 | |
| 696 | 696 | ############################################################################### |
| 697 | 697 | |
| 698 | 698 | fossil test-th-eval "artifact tip test/th1.test" |
| 699 | 699 | test th1-artifact-6 {$RESULT eq {TH_ERROR: repository unavailable}} |
| 700 | 700 | |
| 701 | 701 | ############################################################################### |
| 702 | 702 | |
| 703 | | -fossil test-th-eval --th-open-config "artifact tip test/th1.test" |
| 703 | +fossil test-th-eval --open-config "artifact tip test/th1.test" |
| 704 | 704 | test th1-artifact-7 {[regexp -- {th1-artifact-7} $RESULT]} |
| 705 | 705 | |
| 706 | 706 | ############################################################################### |
| 707 | 707 | |
| 708 | 708 | fossil test-th-eval "artifact 0000000000 test/th1.test" |
| 709 | 709 | test th1-artifact-8 {$RESULT eq {TH_ERROR: repository unavailable}} |
| 710 | 710 | |
| 711 | 711 | ############################################################################### |
| 712 | 712 | |
| 713 | | -fossil test-th-eval --th-open-config "artifact 0000000000 test/th1.test" |
| 714 | | -test th1-artifact-9 {$RESULT eq {TH_ERROR: artifact not found}} |
| 713 | +fossil test-th-eval --open-config "artifact 0000000000 test/th1.test" |
| 714 | +test th1-artifact-9 {$RESULT eq {TH_ERROR: manifest not found}} |
| 715 | 715 | |
| 716 | 716 | ############################################################################### |
| 717 | 717 | |
| 718 | 718 | fossil test-th-eval "globalState checkout" |
| 719 | 719 | test th1-globalState-1 {[string length $RESULT] > 0} |
| | @@ -728,11 +728,11 @@ |
| 728 | 728 | fossil test-th-eval "globalState configuration" |
| 729 | 729 | test th1-globalState-3 {[string length $RESULT] == 0} |
| 730 | 730 | |
| 731 | 731 | ############################################################################### |
| 732 | 732 | |
| 733 | | -fossil test-th-eval --th-open-config "globalState configuration" |
| 733 | +fossil test-th-eval --open-config "globalState configuration" |
| 734 | 734 | test th1-globalState-4 {[string length $RESULT] > 0} |
| 735 | 735 | |
| 736 | 736 | ############################################################################### |
| 737 | 737 | |
| 738 | 738 | fossil test-th-eval "globalState executable" |
| 739 | 739 | |