Skip to content

Commit ebf4e65

Browse files
committed
all: clean up a number of txtar test skips
Move compile/erralias.txtar and cycle/patterns.txtar from Go maps to #skip tags at the top of the txtar, which is more consistent with the other tests and makes the git history a bit nicer given that any changes are clearly tied to each file. internal/core/compile's skip on "fulleval/031_comparison against bottom" seems to have been a no-op for a long time due to the use of spaces. Finally, remove any remaining empty maps. Signed-off-by: Daniel Martí <[email protected]> Change-Id: Iaa33ed9a27ba754b540e9d287981ad089a3ab016 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1214551 TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]> Reviewed-by: Matthew Sackman <[email protected]>
1 parent 5db678d commit ebf4e65

File tree

4 files changed

+6
-28
lines changed

4 files changed

+6
-28
lines changed

cue/testdata/compile/erralias.txtar

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Causes a stack overflow on evalv2 and evalv3.
2+
#skip
13
-- in.cue --
24
let X = {}
35

cue/testdata/cycle/patterns.txtar

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Excluded from V2, which no longer passes.
2-
Lots of cycle-reference goodness.
2+
#skip-v2
3+
// Lots of cycle-reference goodness.
34

45
-- in.cue --
56
[!~"^[.]"]: c

internal/core/adt/eval_test.go

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ func TestEvalV2(t *testing.T) {
4949
test := cuetxtar.TxTarTest{
5050
Root: "../../../cue/testdata",
5151
Name: "eval",
52-
Skip: alwaysSkip,
53-
ToDo: needFix,
5452
}
5553

5654
cuedebug.Init()
@@ -65,15 +63,6 @@ func TestEvalV2(t *testing.T) {
6563
})
6664
}
6765

68-
var alwaysSkip = map[string]string{
69-
"compile/erralias": "compile error",
70-
}
71-
72-
var needFix = map[string]string{
73-
"DIR/NAME": "reason",
74-
"cycle/patterns": "cycle detection in v2",
75-
}
76-
7766
func TestEvalV3(t *testing.T) {
7867
// TODO: remove use of externalDeps for processing. Currently, enabling
7968
// this would fix some issues, but also introduce some closedness bugs.
@@ -86,14 +75,10 @@ func TestEvalV3(t *testing.T) {
8675
cuedebug.Init()
8776
flags := cuedebug.Flags
8877

89-
var todoAlpha = map[string]string{}
90-
9178
test := cuetxtar.TxTarTest{
9279
Root: "../../../cue/testdata",
9380
Name: "evalalpha",
9481
Fallback: "eval", // Allow eval golden files to pass these tests.
95-
Skip: alwaysSkip,
96-
ToDo: todoAlpha,
9782
}
9883

9984
if *todo {
@@ -112,8 +97,8 @@ func TestEvalV3(t *testing.T) {
11297
errorCount += runEvalTest(t, internal.EvalV3, flags)
11398
})
11499

115-
t.Logf("todo: %d, ran: %d, skipped: %d, nodeErrors: %d",
116-
len(todoAlpha), ran, skipped, errorCount)
100+
t.Logf("ran: %d, skipped: %d, nodeErrors: %d",
101+
ran, skipped, errorCount)
117102
}
118103

119104
// skipFiles returns true if the given files contain CUE that is not yet handled

internal/core/compile/compile_test.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ func TestCompile(t *testing.T) {
3636
test := cuetxtar.TxTarTest{
3737
Root: "../../../cue/testdata/",
3838
Name: "compile",
39-
Skip: alwaysSkip,
40-
ToDo: needFix,
4139
}
4240

4341
if *todo {
@@ -72,14 +70,6 @@ func TestCompile(t *testing.T) {
7270
})
7371
}
7472

75-
var alwaysSkip = map[string]string{
76-
"fulleval/031_comparison against bottom": "fix bin op binding in test",
77-
}
78-
79-
var needFix = map[string]string{
80-
"DIR/NAME": "explanation",
81-
}
82-
8373
// TestX is for debugging. Do not delete.
8474
func TestX(t *testing.T) {
8575
in := `

0 commit comments

Comments
 (0)