Skip to content

Commit 851d92b

Browse files
Move /tests/partest-test to /tests/vulpix-tests/
1 parent 8e0f219 commit 851d92b

28 files changed

+28
-28
lines changed

compiler/test/dotty/tools/vulpix/VulpixMetaTests.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class VulpixMetaTests extends ParallelTesting {
2121
implicit val summaryReport: SummaryReporting = new SummaryReport
2222
implicit def testGroup: TestGroup = TestGroup("VulpixMetaTests")
2323

24-
@Test def compilePos: Unit = compileFilesInDir("../tests/meta-tests/pos", defaultOptions).checkCompile()
25-
@Test def compileNeg: Unit = compileFilesInDir("../tests/meta-tests/neg", defaultOptions).checkExpectedErrors()
26-
@Test def runAll: Unit = compileFilesInDir("../tests/meta-tests/run", defaultOptions).checkRuns()
24+
@Test def compilePos: Unit = compileFilesInDir("../tests/vulpix-tests/meta/pos", defaultOptions).checkCompile()
25+
@Test def compileNeg: Unit = compileFilesInDir("../tests/vulpix-tests/meta/neg", defaultOptions).checkExpectedErrors()
26+
@Test def runAll: Unit = compileFilesInDir("../tests/vulpix-tests/meta/run", defaultOptions).checkRuns()
2727
}

compiler/test/dotty/tools/vulpix/VulpixUnitTests.scala

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class VulpixUnitTests extends ParallelTesting {
2323

2424
@Test def missingFile: Unit =
2525
try {
26-
compileFile("../tests/partest-test/i-dont-exist.scala", defaultOptions).expectFailure.checkExpectedErrors()
26+
compileFile("../tests/vulpix-tests/unit/i-dont-exist.scala", defaultOptions).expectFailure.checkExpectedErrors()
2727
fail("didn't fail properly")
2828
}
2929
catch {
@@ -32,63 +32,63 @@ class VulpixUnitTests extends ParallelTesting {
3232
}
3333

3434
@Test def pos1Error: Unit =
35-
compileFile("../tests/partest-test/posFail1Error.scala", defaultOptions).expectFailure.checkCompile()
35+
compileFile("../tests/vulpix-tests/unit/posFail1Error.scala", defaultOptions).expectFailure.checkCompile()
3636

3737
@Test def negMissingAnnot: Unit =
38-
compileFile("../tests/partest-test/negMissingAnnot.scala", defaultOptions).expectFailure.checkExpectedErrors()
38+
compileFile("../tests/vulpix-tests/unit/negMissingAnnot.scala", defaultOptions).expectFailure.checkExpectedErrors()
3939

4040
@Test def negAnnotWrongLine: Unit =
41-
compileFile("../tests/partest-test/negAnnotWrongLine.scala", defaultOptions).expectFailure.checkExpectedErrors()
41+
compileFile("../tests/vulpix-tests/unit/negAnnotWrongLine.scala", defaultOptions).expectFailure.checkExpectedErrors()
4242

4343
@Test def negTooManyAnnots: Unit =
44-
compileFile("../tests/partest-test/negTooManyAnnots.scala", defaultOptions).expectFailure.checkExpectedErrors()
44+
compileFile("../tests/vulpix-tests/unit/negTooManyAnnots.scala", defaultOptions).expectFailure.checkExpectedErrors()
4545

4646
@Test def negNoPositionAnnot: Unit =
47-
compileFile("../tests/partest-test/negNoPositionAnnots.scala", defaultOptions).expectFailure.checkExpectedErrors()
47+
compileFile("../tests/vulpix-tests/unit/negNoPositionAnnots.scala", defaultOptions).expectFailure.checkExpectedErrors()
4848

4949
@Test def runCompileFail: Unit =
50-
compileFile("../tests/partest-test/posFail1Error.scala", defaultOptions).expectFailure.checkRuns()
50+
compileFile("../tests/vulpix-tests/unit/posFail1Error.scala", defaultOptions).expectFailure.checkRuns()
5151

5252
@Test def runWrongOutput1: Unit =
53-
compileFile("../tests/partest-test/runWrongOutput1.scala", defaultOptions).expectFailure.checkRuns()
53+
compileFile("../tests/vulpix-tests/unit/runWrongOutput1.scala", defaultOptions).expectFailure.checkRuns()
5454

5555
@Test def runWrongOutput2: Unit =
56-
compileFile("../tests/partest-test/runWrongOutput2.scala", defaultOptions).expectFailure.checkRuns()
56+
compileFile("../tests/vulpix-tests/unit/runWrongOutput2.scala", defaultOptions).expectFailure.checkRuns()
5757

5858
@Test def runDiffOutput1: Unit =
59-
compileFile("../tests/partest-test/runDiffOutput1.scala", defaultOptions).expectFailure.checkRuns()
59+
compileFile("../tests/vulpix-tests/unit/runDiffOutput1.scala", defaultOptions).expectFailure.checkRuns()
6060

6161
@Test def runStackOverflow: Unit =
62-
compileFile("../tests/partest-test/stackOverflow.scala", defaultOptions).expectFailure.checkRuns()
62+
compileFile("../tests/vulpix-tests/unit/stackOverflow.scala", defaultOptions).expectFailure.checkRuns()
6363

6464
@Test def runOutRedirects: Unit =
65-
compileFile("../tests/partest-test/i2147.scala", defaultOptions).expectFailure.checkRuns()
65+
compileFile("../tests/vulpix-tests/unit/i2147.scala", defaultOptions).expectFailure.checkRuns()
6666

6767
@Test def infiteNonRec: Unit =
68-
compileFile("../tests/partest-test/infinite.scala", defaultOptions).expectFailure.checkRuns()
68+
compileFile("../tests/vulpix-tests/unit/infinite.scala", defaultOptions).expectFailure.checkRuns()
6969

7070
@Test def infiteTailRec: Unit =
71-
compileFile("../tests/partest-test/infiniteTail.scala", defaultOptions).expectFailure.checkRuns()
71+
compileFile("../tests/vulpix-tests/unit/infiniteTail.scala", defaultOptions).expectFailure.checkRuns()
7272

7373
@Test def infiniteAlloc: Unit =
74-
compileFile("../tests/partest-test/infiniteAlloc.scala", defaultOptions).expectFailure.checkRuns()
74+
compileFile("../tests/vulpix-tests/unit/infiniteAlloc.scala", defaultOptions).expectFailure.checkRuns()
7575

7676
@Test def deadlock: Unit =
77-
compileFile("../tests/partest-test/deadlock.scala", defaultOptions).expectFailure.checkRuns()
77+
compileFile("../tests/vulpix-tests/unit/deadlock.scala", defaultOptions).expectFailure.checkRuns()
7878

7979
@Test def badJava: Unit =
80-
try compileFile("../tests/partest-test/BadJava.java", defaultOptions).suppressAllOutput.checkCompile()
80+
try compileFile("../tests/vulpix-tests/unit/BadJava.java", defaultOptions).suppressAllOutput.checkCompile()
8181
catch {
8282
case ae: AssertionError => assert(ae.getMessage.contains("java compilation failed"))
8383
}
8484

8585
@Test def runTimeout: Unit = {
8686
try {
87-
compileFile("../tests/partest-test/timeout.scala", defaultOptions).checkRuns()
87+
compileFile("../tests/vulpix-tests/unit/timeout.scala", defaultOptions).checkRuns()
8888
assert(false, "unreachable")
8989
} catch {
9090
case ae: AssertionError =>
91-
assert(ae.getMessage == "Run test failed, but should not, reasons:\n - test '../tests/partest-test/timeout.scala' timed out")
91+
assert(ae.getMessage == "Run test failed, but should not, reasons:\n - test '../tests/vulpix-tests/unit/timeout.scala' timed out")
9292
}
9393
}
9494
}

project/scripts/cmdTests

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ while read actual <&3 && read expected <&4; do
110110
exit -1
111111
fi
112112
fi
113-
done 3<"$tmp1" 4<"./tests/meta-tests/sbt-output.check"
113+
done 3<"$tmp1" 4<"./tests/vulpix-tests/meta/sbt-output.check"

tests/meta-tests/sbt-output.check renamed to tests/vulpix-tests/meta/sbt-output.check

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[info] Test run started
22
[info] Test dotty.tools.vulpix.VulpixMetaTests.runAll started
3-
Testing ../tests/meta-tests/run/wrong-check-file.scala
4-
Output from '../tests/meta-tests/run/wrong-check-file.scala' did not match check file.
3+
Testing ../tests/vulpix-tests/meta/run/wrong-check-file.scala
4+
Output from '../tests/vulpix-tests/meta/run/wrong-check-file.scala' did not match check file.
55
Diff (expected on the left, actual right):
66
hello | world
77
world | hello
@@ -13,7 +13,7 @@ Diff (expected on the left, actual right):
1313
[error]  at dotty.tools.vulpix.VulpixMetaTests.runAll(VulpixMetaTests.scala:26)
1414
[error]  ...
1515
[info] Test dotty.tools.vulpix.VulpixMetaTests.compileNeg started
16-
Testing ../tests/meta-tests/neg/missing-error-annotation.scala
16+
Testing ../tests/vulpix-tests/meta/neg/missing-error-annotation.scala
1717

1818
Wrong number of errors encountered when compiling ../out/VulpixMetaTests/neg/missing-error-annotation, expected: 0, actual: 2
1919

@@ -24,8 +24,8 @@ Wrong number of errors encountered when compiling ../out/VulpixMetaTests/neg/mis
2424
[error]  at dotty.tools.vulpix.VulpixMetaTests.compileNeg(VulpixMetaTests.scala:25)
2525
[error]  ...
2626
[info] Test dotty.tools.vulpix.VulpixMetaTests.compilePos started
27-
Testing ../tests/meta-tests/pos/does-not-compile.scala
28-
-- [E006] Unbound Identifier Error: /home/olivier/workspace/dotty/compiler/../tests/meta-tests/pos/does-not-compile.scala:2:2 SKIP
27+
Testing ../tests/vulpix-tests/meta/pos/does-not-compile.scala
28+
-- [E006] Unbound Identifier Error: /home/olivier/workspace/dotty/compiler/../tests/vulpix-tests/meta/pos/does-not-compile.scala:2:2 SKIP
2929
2 | a // Does not compile
3030
| ^
3131
| not found: a

0 commit comments

Comments
 (0)