Skip to content

Commit

Permalink
Migrate almost all CLI tests to use the command based CLI (#5255)
Browse files Browse the repository at this point in the history
### Description
- Migrate almost all CLI tests to use the command based CLI
- Tests that use options that are only available in the old CLI have not
been migrated

### How has this been tested?
- The tests themselves have changed

<small>By submitting this pull request, I confirm that my contribution
is made under the terms of the [MIT
license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
  • Loading branch information
keyboardDrummer committed Apr 3, 2024
1 parent 9135e91 commit 5c8806f
Show file tree
Hide file tree
Showing 189 changed files with 484 additions and 475 deletions.
2 changes: 1 addition & 1 deletion Source/DafnyCore/Backends/Dafny/BuilderSyntaxTree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class BuilderSyntaxTree<T> : ConcreteSyntaxTree {
if (Builder is StatementContainer statementContainer) {
return new BuilderSyntaxTree<StatementContainer>(statementContainer.Fork());
} else {
DafnyCodeGenerator.throwGeneralUnsupported(); // Warning: this is an invalid operation: cannot fork builder of type Builder.GetType()
DafnyCodeGenerator.ThrowGeneralUnsupported(); // Warning: this is an invalid operation: cannot fork builder of type Builder.GetType()
throw new InvalidOperationException();
}
}
Expand Down
88 changes: 44 additions & 44 deletions Source/DafnyCore/Backends/Dafny/DafnyCodeGenerator.cs

Large diffs are not rendered by default.

15 changes: 12 additions & 3 deletions Source/IntegrationTests/LitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class LitTests {

string[] defaultResolveArgs = new[] { "resolve", "--use-basename-for-filename", "--show-snippets:false", "--standard-libraries:false" };
string[] defaultVerifyArgs = new[] { "verify", "--use-basename-for-filename", "--show-snippets:false", "--standard-libraries:false", "--cores:2", "--verification-time-limit:300", "--resource-limit:50e6" };
//string[] defaultTranslateArgs = new[] { "translate", "--use-basename-for-filename", "--cores:2", "--standard-libraries:false", "--verification-time-limit:300", "--resource-limit:50e6" };
string[] defaultTranslateArgs = new[] { "--use-basename-for-filename", "--cores:2", "--standard-libraries:false", "--verification-time-limit:300", "--resource-limit:50e6" };
string[] defaultBuildArgs = new[] { "build", "--use-basename-for-filename", "--show-snippets:false", "--standard-libraries:false", "--cores:2", "--verification-time-limit:300", "--resource-limit:50e6" };
string[] defaultRunArgs = new[] { "run", "--use-basename-for-filename", "--show-snippets:false", "--standard-libraries:false", "--cores:2", "--verification-time-limit:300", "--resource-limit:50e6" };

Expand All @@ -82,8 +82,17 @@ public class LitTests {
"%resolve", (args, config) =>
DafnyCommand(AddExtraArgs(defaultResolveArgs, args), config, InvokeMainMethodsDirectly)
}, {
"%translate", (args, config) =>
DafnyCommand(AddExtraArgs(new[] { "translate" }, args), config, InvokeMainMethodsDirectly)
"%translate", (args, config) => {
var totalArgs = args.ToList();
if (totalArgs.Any()) {
var target = totalArgs.First();
totalArgs = new[] { target }.Concat(defaultTranslateArgs).Concat(totalArgs.Skip(1)).ToList();
} else {
totalArgs = defaultTranslateArgs.ToList();
}
return DafnyCommand(AddExtraArgs(new[] { "translate" }, totalArgs), config,
InvokeMainMethodsDirectly);
}
}, {
"%verify", (args, config) =>
DafnyCommand(AddExtraArgs(defaultVerifyArgs, args), config, InvokeMainMethodsDirectly)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" ExternDefs.h > "%t"
// RUN: %run --target cpp --unicode-char false "%s" --input ExternDefs.h > "%t"
// RUN: %diff "%s.expect" "%t"

module {:extern "Extern"} Extern {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 "%s" ExternDefs.h > "%t"
// RUN: %run --target cpp --unicode-char false "%s" --input ExternDefs.h > "%t"
// RUN: %diff "%s.expect" "%t"

module {:extern "Extern"} Extern {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cpp /unicodeChar:0 ExternDefs.h "%s" > "%t"
// RUN: %run --target cpp --unicode-char false --input ExternDefs.h "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

newtype uint32 = i:int | 0 <= i < 0x100000000
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@

Dafny program verifier finished with 6 verified, 0 errors
Dafny program verifier finished with 7 verified, 0 errors
1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /spillTargetCode:2 /compileTarget:cs "%s" %S/CSharpStyling2.cs > "%t"
// RUN: %run "%s" --input %S/CSharpStyling2.cs > "%t"
// RUN: %diff "%s.expect" "%t"

method Main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

Dafny program verifier finished with 1 verified, 0 errors
Dafny program verifier finished with 3 verified, 0 errors
50
2
3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
// RUN: %run --no-verify --target:cpp --unicode-char:false "%s" Cpp Yipee >> "%t"
// RUN: %run --no-verify --target:java "%s" -- Java --heya >> "%t"
// RUN: %run --no-verify --target:js "%s" -- Javascript 2 >> "%t"
// RUN: %dafny /noVerify /compile:4 /compileTarget:py "%s" --args Python 1 >> "%t"
// RUN: %dafny /noVerify /compile:4 /compileTarget:go "%s" --args "Go go" 1 >> "%t"
// RUN: %run --no-verify --target py "%s" Python 1 >> "%t"
// RUN: %run --no-verify --target go "%s" "Go go" 1 >> "%t"
// RUN: %build --no-verify --target:cs "%s" --output:%s.dll
// RUN: dotnet %s.dll "dotnet" "howdy" >> "%t"
// RUN: dotnet %s.dll "dotnet" "hello" >> "%t"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %verify "%s" > "%t"
// RUN: %exits-with 3 %dafny /noVerify /compile:4 /compileTarget:cs "%s" --args csharp 1 >> "%t"
// RUN: %exits-with 3 %run --no-verify --target cs "%s" csharp 1 >> "%t"
// RUN: %diff "%s.expect" "%t"

method Main(args: int) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %verify "%s" > "%t"
// RUN: %exits-with 3 %dafny /noVerify /compile:4 /compileTarget:cs "%s" --args csharp 1 >> "%t"
// RUN: %exits-with 3 %run --no-verify --target cs "%s" csharp 1 >> "%t"
// RUN: %diff "%s.expect" "%t"

method Main(args: array<string>, dummy: int) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// RUN: %verify "%s" > "%t"
// RUN: %dafny /noVerify /compile:4 /compileTarget:cs "%s" %S/Extern2.cs >> "%t"
// RUN: %dafny /noVerify /compile:4 /compileTarget:js "%s" %S/Extern3.js >> "%t"
// RUN: %dafny /noVerify /compile:4 /compileTarget:go "%s" %S/Extern4.go >> "%t"
// RUN: %dafny /noVerify /compile:4 /compileTarget:java "%s" %S/SingletonOptimization.java %S/LibClass.java %S/OtherClass.java %S/AllDafny.java %S/Mixed.java %S/AllExtern.java >> "%t"
// RUN: %dafny /noVerify /compile:4 /compileTarget:py "%s" %S/Extern5.py >> "%t"
// RUN: %run --no-verify --target cs "%s" --input %S/Extern2.cs >> "%t"
// RUN: %run --no-verify --target js "%s" --input %S/Extern3.js >> "%t"
// RUN: %run --no-verify --target go "%s" --input %S/Extern4.go >> "%t"
// RUN: %run --no-verify --target java "%s" --input %S/SingletonOptimization.java --input %S/LibClass.java --input %S/OtherClass.java --input %S/AllDafny.java --input %S/Mixed.java --input %S/AllExtern.java >> "%t"
// RUN: %run --no-verify --target py "%s" --input %S/Extern5.py >> "%t"
// RUN: %diff "%s.expect" "%t"

method Main() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:4 /compileTarget:cs "%s" %S/ExternCopyFromTraitLibrary.cs > "%t"
// RUN: %run --target cs "%s" --input %S/ExternCopyFromTraitLibrary.cs > "%t"
// RUN: %diff "%s.expect" "%t"

/// This file tests inheritance of `:extern` annotation in traits.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %dafny /compile:3 /compileTarget:cs "%s" %S/ExternCtors-externs/Library.cs > "%t"
// RUN: %dafny /compile:3 /compileTarget:java "%s" %S/ExternCtors-externs/Class.java >> "%t"
// RUN: %dafny /compile:3 /compileTarget:py "%s" %S/ExternCtors-externs/Library.py >> "%t"
// RUN: %run --target cs "%s" --input %S/ExternCtors-externs/Library.cs > "%t"
// RUN: %run --target java "%s" --input %S/ExternCtors-externs/Class.java >> "%t"
// RUN: %run --target py "%s" --input %S/ExternCtors-externs/Library.py >> "%t"
// RUN: %diff "%s.expect" "%t"

// FIXME: Extern constructors are currently broken in Go and JavaScript,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /unicodeChar:0 /compileTarget:java "%s" %S/Conversions.java %S/ExternDafnyString.java > "%t"
// RUN: %run --unicode-char false --target java "%s" --input %S/Conversions.java --input %S/ExternDafnyString.java > "%t"
// RUN: %diff "%s.expect" "%t"
// In this example, the extern method obtains a Java string and returns it as a Dafny string.

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:3 /unicodeChar:0 /compileTarget:java "%s" %S/Conversions.java %S/ExternJavaString.java > "%t"
// RUN: %run --unicode-char false --target java "%s" --input %S/Conversions.java --input %S/ExternJavaString.java > "%t"
// RUN: %diff "%s.expect" "%t"
// In this example, the extern method obtains a Java string and returns it as such.
// The Dafny code converts that Java string to a Dafny string.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /compile:4 /spillTargetCode:2 /compileTarget:py %S/ExternNestedModule.py "%s" > "%t"
// RUN: %run --target py "%s" --input %S/ExternNestedModule.py > "%t"
// RUN: %diff "%s.expect" "%t"

method Main(){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// NONUNIFORM: Javascript-specific extern test
// RUN: %dafny /compile:3 /unicodeChar:0 "%s" /compileTarget:js > "%t"
// note: putting /compileTarget:js after "%s" overrides user-provided option
// RUN: %run --unicode-char false --target js "%s" > "%t"
// RUN: %diff "%s.expect" "%t"

// "url" is a built-in package in node, so it should be accessible to the
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// RUN: %dafny /library:"%S/Inputs/directLibrary.dfy" /library:"%S/Inputs/secondLibrary.dfy" /compile:0 /spillTargetCode:3 "%s" > "%t"
// RUN: %translate cs --library "%S/Inputs/directLibrary.dfy" --library "%S/Inputs/secondLibrary.dfy" "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
// RUN: %OutputCheck "%s" --file-to-check="%S/consumer.cs"
// CHECK: GloballyUniqueProducer
Expand Down
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
// NONUNIFORM: multiple testing scenarios (could be split into several uniform tests)
// RUN: %verify "%s" > "%t"

// RUN: %dafny /noVerify /compile:4 /Main:Cl.Static /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Cl.Instance /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Tr.Static /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Dt.Static /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Dt.Instance /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Co.Static /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Co.Instance /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Nt.Static /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Nt.Instance /compileTarget:cs "%s" >> "%t"
// RUN: %run --no-verify --main-method Cl.Static --target cs "%s" >> "%t"
// RUN: %run --no-verify --main-method Cl.Instance --target cs "%s" >> "%t"
// RUN: %run --no-verify --main-method Tr.Static --target cs "%s" >> "%t"
// RUN: %run --no-verify --main-method Dt.Static --target cs "%s" >> "%t"
// RUN: %run --no-verify --main-method Dt.Instance --target cs "%s" >> "%t"
// RUN: %run --no-verify --main-method Co.Static --target cs "%s" >> "%t"
// RUN: %run --no-verify --main-method Co.Instance --target cs "%s" >> "%t"
// RUN: %run --no-verify --main-method Nt.Static --target cs "%s" >> "%t"
// RUN: %run --no-verify --main-method Nt.Instance --target cs "%s" >> "%t"

// RUN: %dafny /noVerify /compile:4 /Main:Cl.Static /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Cl.Instance /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Tr.Static /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Dt.Static /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Dt.Instance /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Co.Static /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Co.Instance /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Nt.Static /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Nt.Instance /compileTarget:js "%s" >> "%t"
// RUN: %run --no-verify --main-method Cl.Static --target js "%s" >> "%t"
// RUN: %run --no-verify --main-method Cl.Instance --target js "%s" >> "%t"
// RUN: %run --no-verify --main-method Tr.Static --target js "%s" >> "%t"
// RUN: %run --no-verify --main-method Dt.Static --target js "%s" >> "%t"
// RUN: %run --no-verify --main-method Dt.Instance --target js "%s" >> "%t"
// RUN: %run --no-verify --main-method Co.Static --target js "%s" >> "%t"
// RUN: %run --no-verify --main-method Co.Instance --target js "%s" >> "%t"
// RUN: %run --no-verify --main-method Nt.Static --target js "%s" >> "%t"
// RUN: %run --no-verify --main-method Nt.Instance --target js "%s" >> "%t"

// RUN: %dafny /noVerify /compile:4 /Main:Cl.Static /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Cl.Instance /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Tr.Static /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Dt.Static /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Dt.Instance /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Co.Static /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Co.Instance /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Nt.Static /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Nt.Instance /compileTarget:go "%s" >> "%t"
// RUN: %run --no-verify --main-method Cl.Static --target go "%s" >> "%t"
// RUN: %run --no-verify --main-method Cl.Instance --target go "%s" >> "%t"
// RUN: %run --no-verify --main-method Tr.Static --target go "%s" >> "%t"
// RUN: %run --no-verify --main-method Dt.Static --target go "%s" >> "%t"
// RUN: %run --no-verify --main-method Dt.Instance --target go "%s" >> "%t"
// RUN: %run --no-verify --main-method Co.Static --target go "%s" >> "%t"
// RUN: %run --no-verify --main-method Co.Instance --target go "%s" >> "%t"
// RUN: %run --no-verify --main-method Nt.Static --target go "%s" >> "%t"
// RUN: %run --no-verify --main-method Nt.Instance --target go "%s" >> "%t"

// RUN: %dafny /noVerify /compile:4 /Main:Cl.Static /compileTarget:java "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Cl.Instance /compileTarget:java "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Tr.Static /compileTarget:java "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Dt.Static /compileTarget:java "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Dt.Instance /compileTarget:java "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Co.Static /compileTarget:java "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Co.Instance /compileTarget:java "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Nt.Static /compileTarget:java "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Nt.Instance /compileTarget:java "%s" >> "%t"
// RUN: %run --no-verify --main-method Cl.Static --target java "%s" >> "%t"
// RUN: %run --no-verify --main-method Cl.Instance --target java "%s" >> "%t"
// RUN: %run --no-verify --main-method Tr.Static --target java "%s" >> "%t"
// RUN: %run --no-verify --main-method Dt.Static --target java "%s" >> "%t"
// RUN: %run --no-verify --main-method Dt.Instance --target java "%s" >> "%t"
// RUN: %run --no-verify --main-method Co.Static --target java "%s" >> "%t"
// RUN: %run --no-verify --main-method Co.Instance --target java "%s" >> "%t"
// RUN: %run --no-verify --main-method Nt.Static --target java "%s" >> "%t"
// RUN: %run --no-verify --main-method Nt.Instance --target java "%s" >> "%t"

// RUN: %dafny /noVerify /compile:4 /Main:Cl.Static /compileTarget:py "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Cl.Instance /compileTarget:py "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Tr.Static /compileTarget:py "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Dt.Static /compileTarget:py "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Dt.Instance /compileTarget:py "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Co.Static /compileTarget:py "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Co.Instance /compileTarget:py "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Nt.Static /compileTarget:py "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /Main:Nt.Instance /compileTarget:py "%s" >> "%t"
// RUN: %run --no-verify --main-method Cl.Static --target py "%s" >> "%t"
// RUN: %run --no-verify --main-method Cl.Instance --target py "%s" >> "%t"
// RUN: %run --no-verify --main-method Tr.Static --target py "%s" >> "%t"
// RUN: %run --no-verify --main-method Dt.Static --target py "%s" >> "%t"
// RUN: %run --no-verify --main-method Dt.Instance --target py "%s" >> "%t"
// RUN: %run --no-verify --main-method Co.Static --target py "%s" >> "%t"
// RUN: %run --no-verify --main-method Co.Instance --target py "%s" >> "%t"
// RUN: %run --no-verify --main-method Nt.Static --target py "%s" >> "%t"
// RUN: %run --no-verify --main-method Nt.Instance --target py "%s" >> "%t"

// RUN: %diff "%s.expect" "%t"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// NONUNIFORM: https://github.com/dafny-lang/dafny/issues/4108 and https://github.com/dafny-lang/dafny/issues/2582
// RUN: %verify --unicode-char false --relax-definite-assignment "%s" > "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /compileTarget:cs "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /compileTarget:js "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /compileTarget:go "%s" >> "%t"
// RUN: %dafny /noVerify /compile:4 /unicodeChar:0 /compileTarget:java "%s" >> "%t"
// RUN: %run --no-verify --unicode-char false --target cs "%s" >> "%t"
// RUN: %run --no-verify --unicode-char false --target js "%s" >> "%t"
// RUN: %run --no-verify --unicode-char false --target go "%s" >> "%t"
// RUN: %run --no-verify --unicode-char false --target java "%s" >> "%t"
// RUN: %diff "%s.expect" "%t"

// Python salts hashes so they are not deterministic.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// RUN: %dafny /unicodeChar:0 /compileTarget:cs "%s" > "%t"
// RUN: %build --unicode-char false --target cs "%s" > "%t"
// RUN: dotnet %S/CompileRunQuietly.dll >> "%t"

// RUN: %dafny /unicodeChar:0 /compileTarget:js "%s" >> "%t"
// RUN: %build --unicode-char false --target js "%s" >> "%t"
// RUN: node %S/CompileRunQuietly.js >> "%t"

// RUN: %dafny /unicodeChar:0 /compileTarget:go "%s" >> "%t"
// RUN: %build --unicode-char false --target go "%s" >> "%t"
// RUN: %S/CompileRunQuietly >> "%t"

// RUN: %dafny /unicodeChar:0 /compileTarget:java "%s" >> "%t"
// RUN: java -cp %binaryDir/DafnyRuntime.jar%{pathsep}%S/CompileRunQuietly-java CompileRunQuietly >> "%t"
// RUN: %build --unicode-char false --target java "%s" >> "%t"
// RUN: java -cp %binaryDir/DafnyRuntime.jar%{pathsep}%S/CompileRunQuietly.jar CompileRunQuietly >> "%t"

// RUN: %dafny /unicodeChar:0 /compileTarget:cpp "%s" >> "%t"
// RUN: %build --unicode-char false --target cpp "%s" >> "%t"
// RUN: %S/CompileRunQuietly.exe >> "%t"

// RUN: %dafny /unicodeChar:0 /compileTarget:py "%s" >> "%t"
// RUN: %build --unicode-char false --target py "%s" >> "%t"
// RUN: python3 %S/CompileRunQuietly-py >> "%t"

// RUN: %diff "%s.expect" "%t"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
// RUN: %dafny /unicodeChar:0 /compileVerbose:1 /compileTarget:cs "%s" > "%t"
// RUN: %build --unicode-char false --verbose --target cs "%s" > "%t"
// RUN: dotnet %S/CompileAndThenRun.dll >> "%t"

// RUN: %dafny /unicodeChar:0 /compileVerbose:1 /compileTarget:js "%s" >> "%t"
// RUN: %build --unicode-char false --verbose --target js "%s" >> "%t"
// RUN: node %S/CompileAndThenRun.js >> "%t"

// RUN: %dafny /unicodeChar:0 /compileVerbose:1 /compileTarget:go "%s" >> "%t"
// RUN: %build --unicode-char false --verbose --target go "%s" >> "%t"
// RUN: %S/CompileAndThenRun >> "%t"

// RUN: %dafny /unicodeChar:0 /compileVerbose:1 /compileTarget:java "%s" >> "%t"
// RUN: java -cp %binaryDir/DafnyRuntime.jar%{pathsep}%S/CompileAndThenRun-java CompileAndThenRun >> "%t"
// RUN: %build --unicode-char false --verbose --target java "%s" >> "%t"
// RUN: java -cp %binaryDir/DafnyRuntime.jar%{pathsep}%S/CompileAndThenRun.jar CompileAndThenRun >> "%t"

// RUN: %dafny /unicodeChar:0 /compileVerbose:1 /compileTarget:cpp "%s" >> "%t"
// RUN: %build --unicode-char false --verbose --target cpp "%s" >> "%t"
// RUN: %S/CompileAndThenRun.exe >> "%t"

// RUN: %dafny /unicodeChar:0 /compileVerbose:1 /compileTarget:py "%s" >> "%t"
// RUN: %build --unicode-char false --verbose --target py "%s" >> "%t"
// RUN: python3 %S/CompileAndThenRun-py >> "%t"

// RUN: %diff "%s.expect" "%t"
Expand Down
Loading

0 comments on commit 5c8806f

Please sign in to comment.