Fossil

Check-in [5d49329f]
Login

Check-in [5d49329f]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:More test fixes in the 'th1' test file.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5d49329fc24d9a6084519d8e1474945160911eee
User & Date: mistachkin 2016-01-10 01:43:41
Context
2016-01-11
00:29
Correct missing parenthesis typo in timeline query generation logic. ... (check-in: 03fb7bf9 user: mistachkin tags: trunk)
2016-01-10
01:43
More test fixes in the 'th1' test file. ... (check-in: 5d49329f user: mistachkin tags: trunk)
2016-01-09
19:14
Modify 'th1' test file to run most of its tests outside of the Fossil source checkout using a new test suite infrastructure procedure. ... (check-in: 7b9b5807 user: mistachkin tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to test/th1.test.
552
553
554
555
556
557
558

559


560
561
562
563

564


565
566
567
568
569
570
571
###############################################################################

fossil test-th-eval "lindex list -0x"
test th1-expr-49 {$RESULT eq {TH_ERROR: expected integer, got: "-0x"}}

###############################################################################


fossil test-th-eval "checkout 1"; # NOTE: Assumes running "in tree".


test th1-checkout-1 {[string length $RESULT] > 0}

###############################################################################


fossil test-th-eval "checkout"; # NOTE: Assumes running "in tree".


test th1-checkout-2 {[string length $RESULT] > 0}

###############################################################################

set savedPwd [pwd]; cd /
fossil test-th-eval "checkout 1"
cd $savedPwd; unset savedPwd







>
|
>
>




>
|
>
>







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
###############################################################################

fossil test-th-eval "lindex list -0x"
test th1-expr-49 {$RESULT eq {TH_ERROR: expected integer, got: "-0x"}}

###############################################################################

run_in_checkout {
  fossil test-th-eval "checkout 1"
}

test th1-checkout-1 {[string length $RESULT] > 0}

###############################################################################

run_in_checkout {
  fossil test-th-eval "checkout"
}

test th1-checkout-2 {[string length $RESULT] > 0}

###############################################################################

set savedPwd [pwd]; cd /
fossil test-th-eval "checkout 1"
cd $savedPwd; unset savedPwd
764
765
766
767
768
769
770

771


772
773
774
775

776
777

778
779
780
781
782
783
784
###############################################################################

fossil test-th-eval --open-config "artifact 0000000000 test/th1.test"
test th1-artifact-9 {$RESULT eq {TH_ERROR: manifest not found}}

###############################################################################


fossil test-th-eval "globalState checkout"


test th1-globalState-1 {[string length $RESULT] > 0}

###############################################################################


fossil test-th-eval "globalState checkout"
test th1-globalState-2 {$RESULT eq [fossil test-th-eval checkout]}


###############################################################################

fossil test-th-eval "globalState configuration"
test th1-globalState-3 {[string length $RESULT] == 0}

###############################################################################







>
|
>
>




>
|
|
>







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
###############################################################################

fossil test-th-eval --open-config "artifact 0000000000 test/th1.test"
test th1-artifact-9 {$RESULT eq {TH_ERROR: manifest not found}}

###############################################################################

run_in_checkout {
  fossil test-th-eval "globalState checkout"
}

test th1-globalState-1 {[string length $RESULT] > 0}

###############################################################################

run_in_checkout {
  fossil test-th-eval "globalState checkout"
  test th1-globalState-2 {$RESULT eq [fossil test-th-eval checkout]}
}

###############################################################################

fossil test-th-eval "globalState configuration"
test th1-globalState-3 {[string length $RESULT] == 0}

###############################################################################
799
800
801
802
803
804
805

806


807
808
809
810

811
812

813
814
815
816
817
818
819
###############################################################################

fossil test-th-eval --errorlog foserrors.log "globalState log"
test th1-globalState-7 {$RESULT eq "foserrors.log"}

###############################################################################


fossil test-th-eval "globalState repository"


test th1-globalState-8 {[string length $RESULT] > 0}

###############################################################################


fossil test-th-eval "globalState repository"
test th1-globalState-9 {$RESULT eq [fossil test-th-eval repository]}


###############################################################################

fossil test-th-eval "globalState top"
test th1-globalState-10 {[string length $RESULT] == 0}

###############################################################################







>
|
>
>




>
|
|
>







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
###############################################################################

fossil test-th-eval --errorlog foserrors.log "globalState log"
test th1-globalState-7 {$RESULT eq "foserrors.log"}

###############################################################################

run_in_checkout {
  fossil test-th-eval "globalState repository"
}

test th1-globalState-8 {[string length $RESULT] > 0}

###############################################################################

run_in_checkout {
  fossil test-th-eval "globalState repository"
  test th1-globalState-9 {$RESULT eq [fossil test-th-eval repository]}
}

###############################################################################

fossil test-th-eval "globalState top"
test th1-globalState-10 {[string length $RESULT] == 0}

###############################################################################