Skip to content

Commit

Permalink
Merge branch 'master' into feat-bprint-language-server
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelMayer authored Jul 5, 2023
2 parents d29d028 + e45ee62 commit a8d9fbe
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 12 deletions.
3 changes: 1 addition & 2 deletions Source/XUnitExtensions/Lit/LitTestCase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ public static LitTestCase Read(string filePath, LitTestConfiguration config) {
config = config.WithSubstitutions(new Dictionary<string, object> {
{"%s", filePath.Replace(@"\", "/")},
// For class path separators
{".jar:%S", ".jar" + Path.PathSeparator + fullDirectoryPath},
{"-java:", "-java" + Path.PathSeparator}, // In Windows path separators are ";"
{"%{pathsep}", Path.PathSeparator.ToString()},
{"%S", fullDirectoryPath},
{"%t", Path.Join(fullDirectoryPath, "Output", $"{fileName}.tmp")}
});
Expand Down
2 changes: 1 addition & 1 deletion Test/comp/compile1quiet/CompileRunQuietly.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// RUN: %S/CompileRunQuietly >> "%t"

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

// RUN: %dafny /unicodeChar:0 /compileTarget:cpp "%s" >> "%t"
// RUN: %S/CompileRunQuietly.exe >> "%t"
Expand Down
2 changes: 1 addition & 1 deletion Test/comp/compile1verbose/CompileAndThenRun.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// RUN: %S/CompileAndThenRun >> "%t"

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

// RUN: %dafny /unicodeChar:0 /compileVerbose:1 /compileTarget:cpp "%s" >> "%t"
// RUN: %S/CompileAndThenRun.exe >> "%t"
Expand Down
9 changes: 4 additions & 5 deletions Test/comp/separate-compilation/usesTimesTwo.dfy
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
// Java

// RUN: %baredafny translate java --output=%S/Inputs/producer/timesTwo %S/Inputs/producer/timesTwo.dfy
// RUN: javac -cp %binaryDir/DafnyRuntime.jar:%S/Inputs/producer/timesTwo-java %S/Inputs/producer/timesTwo-java/timesTwo.java %S/Inputs/producer/timesTwo-java/*/*.java
// RUN: javac -cp %binaryDir/DafnyRuntime.jar%{pathsep}%S/Inputs/producer/timesTwo-java %S/Inputs/producer/timesTwo-java/timesTwo.java %S/Inputs/producer/timesTwo-java/*/*.java

// RUN: %baredafny translate java --output=%S/consumer/usesTimesTwo --library=%S/Inputs/producer/timesTwo.dfy %s
// RUN: javac -cp %binaryDir/DafnyRuntime.jar:%S/Inputs/producer/timesTwo-java:%S/consumer/usesTimesTwo-java %S/consumer/usesTimesTwo-java/usesTimesTwo.java %S/consumer/usesTimesTwo-java/*/*.java
// RUN: javac -cp %binaryDir/DafnyRuntime.jar%{pathsep}%S/Inputs/producer/timesTwo-java%{pathsep}%S/consumer/usesTimesTwo-java %S/consumer/usesTimesTwo-java/usesTimesTwo.java %S/consumer/usesTimesTwo-java/*/*.java

// RUN: java -cp %binaryDir/DafnyRuntime.jar:%S/Inputs/producer/timesTwo-java:%S/consumer/usesTimesTwo-java usesTimesTwo >> "%t"
// RUN: java -cp %binaryDir/DafnyRuntime.jar%{pathsep}%S/Inputs/producer/timesTwo-java%{pathsep}%S/consumer/usesTimesTwo-java usesTimesTwo >> "%t"

// Python

Expand All @@ -37,8 +37,7 @@

// RUN: %baredafny translate go --output=%S/consumer/usesTimesTwo --library=%S/Inputs/producer/timesTwo.dfy %s

// TODO: Won't work on windows
// RUN: env GO111MODULE=auto GOPATH=%S/Inputs/producer/timesTwo-go:%S/consumer/usesTimesTwo-go go run %S/consumer/usesTimesTwo-go/src/usesTimesTwo.go >> "%t"
// RUN: env GO111MODULE=auto GOPATH=%S/Inputs/producer/timesTwo-go%{pathsep}%S/consumer/usesTimesTwo-go go run %S/consumer/usesTimesTwo-go/src/usesTimesTwo.go >> "%t"

// (Javascript doesn't support this yet)

Expand Down
2 changes: 1 addition & 1 deletion Test/dafny0/JavaUseRuntimeLib.dfy
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// RUN: %dafny "%s" /useRuntimeLib /out:%S/Output/DafnyConsole.jar /compileTarget:java > "%t"
// RUN: java -cp %binaryDir/DafnyRuntime.jar:%S/Output/DafnyConsole.jar DafnyConsole >> "%t"
// RUN: java -cp %binaryDir/DafnyRuntime.jar%{pathsep}%S/Output/DafnyConsole.jar DafnyConsole >> "%t"
// RUN: %diff "%s.expect" "%t"

module DafnyConsoleMod { // TODO if we name this DafnyConsole, then Java compilation fails
Expand Down
4 changes: 2 additions & 2 deletions Test/git-issues/git-issue-2071.dfy
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %dafny /compile:1 /spillTargetCode:2 /compileTarget:java "%s" > "%t"
// RUN: javac -cp %binaryDir/DafnyRuntime.jar:%S/git-issue-2071-java %S/git-issue-2071-java/git_issue_2071.java %S/git-issue-2071-java/*/*.java >> "%t"
// RUN: java -ea -cp %binaryDir/DafnyRuntime.jar:%S/git-issue-2071-java git_issue_2071 >> "%t"
// RUN: javac -cp %binaryDir/DafnyRuntime.jar%{pathsep}%S/git-issue-2071-java %S/git-issue-2071-java/git_issue_2071.java %S/git-issue-2071-java/*/*.java >> "%t"
// RUN: java -ea -cp %binaryDir/DafnyRuntime.jar%{pathsep}%S/git-issue-2071-java git_issue_2071 >> "%t"
// RUN: %diff "%s.expect" "%t"

function singletonSeq<T>(x: T): seq<T> {
Expand Down

0 comments on commit a8d9fbe

Please sign in to comment.