Fossil SCM

Give unique names to each test in stash.test, json.test and th1.test so we have a chance of debugging them.

danshearer 2026-11-20 12:22 UTC test-suite-new
Commit 225b4de847d3cc1af6027b1b0031b6fbc5ec170c30d9c2bc43bbbd3e37429353
+6 -6
--- test/json.test
+++ test/json.test
@@ -446,12 +446,12 @@
446446
test_json_payload json-stat {repositorySize ageDays ageYears projectCode compiler sqlite} \
447447
{blobCount deltaCount uncompressedArtifactSize averageArtifactSize maxArtifactSize \
448448
compressionRatio checkinCount fileCount wikiPageCount ticketCount}
449449
450450
fossil_json stat -f
451
-test_json_envelope_ok json-stat-env
452
-test_json_payload json-stat {repositorySize \
451
+test_json_envelope_ok json-stat-full-env
452
+test_json_payload json-stat-full {repositorySize \
453453
blobCount deltaCount uncompressedArtifactSize averageArtifactSize maxArtifactSize \
454454
compressionRatio checkinCount fileCount wikiPageCount ticketCount \
455455
ageDays ageYears projectCode compiler sqlite} {}
456456
457457
@@ -508,13 +508,13 @@
508508
509509
510510
# json report run NUMBER
511511
fossil_json report run 1
512512
test_json_envelope_ok json-report-run-1-env
513
-test_json_payload json-report-list {report title sqlcode columnNames tickets} {}
514
-test json-report-list-count {[llength [dict get $JR payload columnNames]] >= 7}
515
-test json-report-list-count {[llength [dict get $JR payload tickets]] >= 0}
513
+test_json_payload json-report-run {report title sqlcode columnNames tickets} {}
514
+test json-report-run-cols {[llength [dict get $JR payload columnNames]] >= 7}
515
+test json-report-run-tkts {[llength [dict get $JR payload tickets]] >= 0}
516516
517517
518518
#### TIMELINE
519519
520520
# json timeline checkin
@@ -643,11 +643,11 @@
643643
644644
fossil_json wiki diff $uuid1 $uuid2
645645
test_json_envelope_ok json-wiki-diff-env
646646
test_json_payload json-wiki-diff [list v1 v2 diff] {}
647647
test json-wiki-diff-v1 {[dict get $JR payload v1] eq $uuid1}
648
-test json-wiki-diff-v1 {[dict get $JR payload v2] eq $uuid2}
648
+test json-wiki-diff-v2 {[dict get $JR payload v2] eq $uuid2}
649649
set diff [dict get $JR payload diff]
650650
test json-wiki-diff-diff {[string first "+consectetur adipisicing elit" $diff] >= 0}
651651
#puts [dict get $JR payload diff]
652652
653653
# wiki preview
654654
--- test/json.test
+++ test/json.test
@@ -446,12 +446,12 @@
446 test_json_payload json-stat {repositorySize ageDays ageYears projectCode compiler sqlite} \
447 {blobCount deltaCount uncompressedArtifactSize averageArtifactSize maxArtifactSize \
448 compressionRatio checkinCount fileCount wikiPageCount ticketCount}
449
450 fossil_json stat -f
451 test_json_envelope_ok json-stat-env
452 test_json_payload json-stat {repositorySize \
453 blobCount deltaCount uncompressedArtifactSize averageArtifactSize maxArtifactSize \
454 compressionRatio checkinCount fileCount wikiPageCount ticketCount \
455 ageDays ageYears projectCode compiler sqlite} {}
456
457
@@ -508,13 +508,13 @@
508
509
510 # json report run NUMBER
511 fossil_json report run 1
512 test_json_envelope_ok json-report-run-1-env
513 test_json_payload json-report-list {report title sqlcode columnNames tickets} {}
514 test json-report-list-count {[llength [dict get $JR payload columnNames]] >= 7}
515 test json-report-list-count {[llength [dict get $JR payload tickets]] >= 0}
516
517
518 #### TIMELINE
519
520 # json timeline checkin
@@ -643,11 +643,11 @@
643
644 fossil_json wiki diff $uuid1 $uuid2
645 test_json_envelope_ok json-wiki-diff-env
646 test_json_payload json-wiki-diff [list v1 v2 diff] {}
647 test json-wiki-diff-v1 {[dict get $JR payload v1] eq $uuid1}
648 test json-wiki-diff-v1 {[dict get $JR payload v2] eq $uuid2}
649 set diff [dict get $JR payload diff]
650 test json-wiki-diff-diff {[string first "+consectetur adipisicing elit" $diff] >= 0}
651 #puts [dict get $JR payload diff]
652
653 # wiki preview
654
--- test/json.test
+++ test/json.test
@@ -446,12 +446,12 @@
446 test_json_payload json-stat {repositorySize ageDays ageYears projectCode compiler sqlite} \
447 {blobCount deltaCount uncompressedArtifactSize averageArtifactSize maxArtifactSize \
448 compressionRatio checkinCount fileCount wikiPageCount ticketCount}
449
450 fossil_json stat -f
451 test_json_envelope_ok json-stat-full-env
452 test_json_payload json-stat-full {repositorySize \
453 blobCount deltaCount uncompressedArtifactSize averageArtifactSize maxArtifactSize \
454 compressionRatio checkinCount fileCount wikiPageCount ticketCount \
455 ageDays ageYears projectCode compiler sqlite} {}
456
457
@@ -508,13 +508,13 @@
508
509
510 # json report run NUMBER
511 fossil_json report run 1
512 test_json_envelope_ok json-report-run-1-env
513 test_json_payload json-report-run {report title sqlcode columnNames tickets} {}
514 test json-report-run-cols {[llength [dict get $JR payload columnNames]] >= 7}
515 test json-report-run-tkts {[llength [dict get $JR payload tickets]] >= 0}
516
517
518 #### TIMELINE
519
520 # json timeline checkin
@@ -643,11 +643,11 @@
643
644 fossil_json wiki diff $uuid1 $uuid2
645 test_json_envelope_ok json-wiki-diff-env
646 test_json_payload json-wiki-diff [list v1 v2 diff] {}
647 test json-wiki-diff-v1 {[dict get $JR payload v1] eq $uuid1}
648 test json-wiki-diff-v2 {[dict get $JR payload v2] eq $uuid2}
649 set diff [dict get $JR payload diff]
650 test json-wiki-diff-diff {[string first "+consectetur adipisicing elit" $diff] >= 0}
651 #puts [dict get $JR payload diff]
652
653 # wiki preview
654
+2 -2
--- test/stash.test
+++ test/stash.test
@@ -374,12 +374,12 @@
374374
fossil stash diff
375375
test stash-4-3-diff-CODE {!$::CODE}
376376
fossil stash show -v
377377
test stash-4-3-show-1 {[regexp {DELETE f1} $RESULT]}
378378
test stash-4-3-show-2 {[regexp {CHANGED f2} $RESULT]}
379
-test stash-4-3-show-2 {[regexp {CHANGED f3n} $RESULT]}
380
-test stash-4-3-show-3 {[regexp {ADDED f0} $RESULT]}
379
+test stash-4-3-show-3 {[regexp {CHANGED f3n} $RESULT]}
380
+test stash-4-3-show-4 {[regexp {ADDED f0} $RESULT]}
381381
382382
# fossil stash apply ?STASHID?
383383
# fossil stash goto ?STASHID?
384384
# fossil stash rm|drop ?STASHID? ?-a|--all?
385385
386386
--- test/stash.test
+++ test/stash.test
@@ -374,12 +374,12 @@
374 fossil stash diff
375 test stash-4-3-diff-CODE {!$::CODE}
376 fossil stash show -v
377 test stash-4-3-show-1 {[regexp {DELETE f1} $RESULT]}
378 test stash-4-3-show-2 {[regexp {CHANGED f2} $RESULT]}
379 test stash-4-3-show-2 {[regexp {CHANGED f3n} $RESULT]}
380 test stash-4-3-show-3 {[regexp {ADDED f0} $RESULT]}
381
382 # fossil stash apply ?STASHID?
383 # fossil stash goto ?STASHID?
384 # fossil stash rm|drop ?STASHID? ?-a|--all?
385
386
--- test/stash.test
+++ test/stash.test
@@ -374,12 +374,12 @@
374 fossil stash diff
375 test stash-4-3-diff-CODE {!$::CODE}
376 fossil stash show -v
377 test stash-4-3-show-1 {[regexp {DELETE f1} $RESULT]}
378 test stash-4-3-show-2 {[regexp {CHANGED f2} $RESULT]}
379 test stash-4-3-show-3 {[regexp {CHANGED f3n} $RESULT]}
380 test stash-4-3-show-4 {[regexp {ADDED f0} $RESULT]}
381
382 # fossil stash apply ?STASHID?
383 # fossil stash goto ?STASHID?
384 # fossil stash rm|drop ?STASHID? ?-a|--all?
385
386
+7 -7
--- test/th1.test
+++ test/th1.test
@@ -535,26 +535,26 @@
535535
test th1-expr-45 {$RESULT eq {TH_ERROR: syntax error in expression: "--"}}
536536
537537
###############################################################################
538538
539539
fossil test-th-eval "lindex list +"
540
-test th1-expr-46 {$RESULT eq {TH_ERROR: expected integer, got: "+"}}
540
+test th1-lindex-bad-1 {$RESULT eq {TH_ERROR: expected integer, got: "+"}}
541541
542542
###############################################################################
543543
544544
fossil test-th-eval "lindex list -"
545
-test th1-expr-47 {$RESULT eq {TH_ERROR: expected integer, got: "-"}}
545
+test th1-lindex-bad-2 {$RESULT eq {TH_ERROR: expected integer, got: "-"}}
546546
547547
###############################################################################
548548
549549
fossil test-th-eval "lindex list +0x"
550
-test th1-expr-48 {$RESULT eq {TH_ERROR: expected integer, got: "+0x"}}
550
+test th1-lindex-bad-3 {$RESULT eq {TH_ERROR: expected integer, got: "+0x"}}
551551
552552
###############################################################################
553553
554554
fossil test-th-eval "lindex list -0x"
555
-test th1-expr-49 {$RESULT eq {TH_ERROR: expected integer, got: "-0x"}}
555
+test th1-lindex-bad-4 {$RESULT eq {TH_ERROR: expected integer, got: "-0x"}}
556556
557557
###############################################################################
558558
559559
set skip_anycap 1
560560
if {$::outside_fossil_repo} {
@@ -591,28 +591,28 @@
591591
fossil test-th-eval --set-user-caps "anycap $perm"
592592
test th1-anycap-yes-$perm-1 {$RESULT eq {1}}
593593
594594
set ::env(TH1_TEST_USER_CAPS) 1; # NOTE: Bad permission.
595595
fossil test-th-eval --set-user-caps "anycap $perm"
596
- test th1-anycap-no-$perm-1 {$RESULT eq {0}}
596
+ test th1-anycap-no-$perm-2 {$RESULT eq {0}}
597597
598598
set ::env(TH1_TEST_USER_CAPS) sxy
599599
fossil test-th-eval --set-user-caps "hascap $perm"
600600
test th1-hascap-yes-$perm-1 {$RESULT eq {1}}
601601
602602
set ::env(TH1_TEST_USER_CAPS) 1; # NOTE: Bad permission.
603603
fossil test-th-eval --set-user-caps "hascap $perm"
604
- test th1-hascap-no-$perm-1 {$RESULT eq {0}}
604
+ test th1-hascap-no-$perm-2 {$RESULT eq {0}}
605605
unset ::env(TH1_TEST_USER_CAPS)
606606
607607
set ::env(TH1_TEST_ANON_CAPS) sxy
608608
fossil test-th-eval --set-anon-caps "anoncap $perm"
609609
test th1-anoncap-yes-$perm-1 {$RESULT eq {1}}
610610
611611
set ::env(TH1_TEST_ANON_CAPS) 1; # NOTE: Bad permission.
612612
fossil test-th-eval --set-anon-caps "anoncap $perm"
613
- test th1-anoncap-no-$perm-1 {$RESULT eq {0}}
613
+ test th1-anoncap-no-$perm-2 {$RESULT eq {0}}
614614
unset ::env(TH1_TEST_ANON_CAPS)
615615
}
616616
}
617617
618618
###############################################################################
619619
--- test/th1.test
+++ test/th1.test
@@ -535,26 +535,26 @@
535 test th1-expr-45 {$RESULT eq {TH_ERROR: syntax error in expression: "--"}}
536
537 ###############################################################################
538
539 fossil test-th-eval "lindex list +"
540 test th1-expr-46 {$RESULT eq {TH_ERROR: expected integer, got: "+"}}
541
542 ###############################################################################
543
544 fossil test-th-eval "lindex list -"
545 test th1-expr-47 {$RESULT eq {TH_ERROR: expected integer, got: "-"}}
546
547 ###############################################################################
548
549 fossil test-th-eval "lindex list +0x"
550 test th1-expr-48 {$RESULT eq {TH_ERROR: expected integer, got: "+0x"}}
551
552 ###############################################################################
553
554 fossil test-th-eval "lindex list -0x"
555 test th1-expr-49 {$RESULT eq {TH_ERROR: expected integer, got: "-0x"}}
556
557 ###############################################################################
558
559 set skip_anycap 1
560 if {$::outside_fossil_repo} {
@@ -591,28 +591,28 @@
591 fossil test-th-eval --set-user-caps "anycap $perm"
592 test th1-anycap-yes-$perm-1 {$RESULT eq {1}}
593
594 set ::env(TH1_TEST_USER_CAPS) 1; # NOTE: Bad permission.
595 fossil test-th-eval --set-user-caps "anycap $perm"
596 test th1-anycap-no-$perm-1 {$RESULT eq {0}}
597
598 set ::env(TH1_TEST_USER_CAPS) sxy
599 fossil test-th-eval --set-user-caps "hascap $perm"
600 test th1-hascap-yes-$perm-1 {$RESULT eq {1}}
601
602 set ::env(TH1_TEST_USER_CAPS) 1; # NOTE: Bad permission.
603 fossil test-th-eval --set-user-caps "hascap $perm"
604 test th1-hascap-no-$perm-1 {$RESULT eq {0}}
605 unset ::env(TH1_TEST_USER_CAPS)
606
607 set ::env(TH1_TEST_ANON_CAPS) sxy
608 fossil test-th-eval --set-anon-caps "anoncap $perm"
609 test th1-anoncap-yes-$perm-1 {$RESULT eq {1}}
610
611 set ::env(TH1_TEST_ANON_CAPS) 1; # NOTE: Bad permission.
612 fossil test-th-eval --set-anon-caps "anoncap $perm"
613 test th1-anoncap-no-$perm-1 {$RESULT eq {0}}
614 unset ::env(TH1_TEST_ANON_CAPS)
615 }
616 }
617
618 ###############################################################################
619
--- test/th1.test
+++ test/th1.test
@@ -535,26 +535,26 @@
535 test th1-expr-45 {$RESULT eq {TH_ERROR: syntax error in expression: "--"}}
536
537 ###############################################################################
538
539 fossil test-th-eval "lindex list +"
540 test th1-lindex-bad-1 {$RESULT eq {TH_ERROR: expected integer, got: "+"}}
541
542 ###############################################################################
543
544 fossil test-th-eval "lindex list -"
545 test th1-lindex-bad-2 {$RESULT eq {TH_ERROR: expected integer, got: "-"}}
546
547 ###############################################################################
548
549 fossil test-th-eval "lindex list +0x"
550 test th1-lindex-bad-3 {$RESULT eq {TH_ERROR: expected integer, got: "+0x"}}
551
552 ###############################################################################
553
554 fossil test-th-eval "lindex list -0x"
555 test th1-lindex-bad-4 {$RESULT eq {TH_ERROR: expected integer, got: "-0x"}}
556
557 ###############################################################################
558
559 set skip_anycap 1
560 if {$::outside_fossil_repo} {
@@ -591,28 +591,28 @@
591 fossil test-th-eval --set-user-caps "anycap $perm"
592 test th1-anycap-yes-$perm-1 {$RESULT eq {1}}
593
594 set ::env(TH1_TEST_USER_CAPS) 1; # NOTE: Bad permission.
595 fossil test-th-eval --set-user-caps "anycap $perm"
596 test th1-anycap-no-$perm-2 {$RESULT eq {0}}
597
598 set ::env(TH1_TEST_USER_CAPS) sxy
599 fossil test-th-eval --set-user-caps "hascap $perm"
600 test th1-hascap-yes-$perm-1 {$RESULT eq {1}}
601
602 set ::env(TH1_TEST_USER_CAPS) 1; # NOTE: Bad permission.
603 fossil test-th-eval --set-user-caps "hascap $perm"
604 test th1-hascap-no-$perm-2 {$RESULT eq {0}}
605 unset ::env(TH1_TEST_USER_CAPS)
606
607 set ::env(TH1_TEST_ANON_CAPS) sxy
608 fossil test-th-eval --set-anon-caps "anoncap $perm"
609 test th1-anoncap-yes-$perm-1 {$RESULT eq {1}}
610
611 set ::env(TH1_TEST_ANON_CAPS) 1; # NOTE: Bad permission.
612 fossil test-th-eval --set-anon-caps "anoncap $perm"
613 test th1-anoncap-no-$perm-2 {$RESULT eq {0}}
614 unset ::env(TH1_TEST_ANON_CAPS)
615 }
616 }
617
618 ###############################################################################
619

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button