Skip to content

Commit 73f2e43

Browse files
committed
Added necessary mv and rm commands on Windows
Fixed the tests
1 parent 80e7fc3 commit 73f2e43

File tree

17 files changed

+199
-18
lines changed

17 files changed

+199
-18
lines changed

Source/IntegrationTests/LitTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ IEnumerable<string> AddExtraArgs(IEnumerable<string> args, IEnumerable<string> l
132132
"%diff", (args, config) => DiffCommand.Parse(args.ToArray())
133133
}, {
134134
"%sed", (args, config) => SedCommand.Parse(args.ToArray())
135+
}, {
136+
"%mv", (args, config) => MvCommand.Parse(args.ToArray())
137+
}, {
138+
"%rm", (args, config) => RmCommand.Parse(args.ToArray())
135139
}, {
136140
"%OutputCheck", OutputCheckCommand.Parse
137141
}
Binary file not shown.

Source/IntegrationTests/TestFiles/LitTests/LitTest/pythonmodule/multimodule/DerivedModule.dfy

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %baredafny translate py --python-module-name=PythonModule2 --library="%S/PythonModule1.doo" --translation-record "%S/PythonModule1-py.dtr" --output "%S/PythonModule2" "%s"
2-
// RUN: rm -rf "%S/PythonModule2"
3-
// RUN: mv "%S/PythonModule2-py" "%S/PythonModule2"
1+
// RUN: %baredafny translate py --python-module-name=PythonModule2 --library="%S/PythonModule1.doo" --translation-record "%S/PythonModule1-py.dtr" --output "%S/PythonModule2" "%s" --include-runtime
2+
// RUN: %exits-with -any %rm -rf "%S/PythonModule2"
3+
// RUN: %mv "%S/PythonModule2-py" "%S/PythonModule2"
44
// RUN: pip3 install "%S"
5-
// RUN: python3 %S/PythonModule2/ > %t
5+
// RUN: %S/python3 PythonModule2/ > %t
66
// RUN: %diff "%s.expect" "%t"
77
module DafnyModule3 {
88
import DafnyModule1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
file_format_version = "1.0"
2-
dafny_version = "4.7.0.0"
2+
dafny_version = "4.8.0.0"
33
[options_by_module.DafnyModule1]
44
python-module-name = "PythonModule1"
Binary file not shown.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// This file is used to regenerate PythonModule1.doo
2+
// RUN: echo 'lit should ignore this file'
3+
4+
module DafnyModule1 {
5+
method HelloWorld()
6+
{
7+
print "Hello World";
8+
}
9+
}
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
file_format_version = "1.0"
2-
dafny_version = "4.7.0.0"
2+
dafny_version = "4.8.0.0"
33
[options_by_module."Some.Nested.Module"]
44
python-module-name = "SomeNestedModule"

Source/IntegrationTests/TestFiles/LitTests/LitTest/pythonmodule/nestedmodule/SomeTestModule.dfy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: pip3 install "%S"
2-
// RUN: %baredafny translate py --output "%S/SomeTestModule" --library="%S/SomeNestedModule.doo" --translation-record "%S/SomeNestedModule/SomeNestedModule-py.dtr" "%s"
3-
// RUN: python3 %S/SomeTestModule-py/ > %t
2+
// RUN: %baredafny translate py --output "%S/SomeTestModule" --library="%S/SomeNestedModule.doo" --translation-record "%S/SomeNestedModule/SomeNestedModule-py.dtr" "%s" --include-runtime
3+
// RUN: %S/python3 SomeTestModule-py/ > %t
44
// RUN: %diff "%s.expect" "%t"
55
module SomeTestModule {
66

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// This file is used to regenerate SomeNestedModule.doo
2+
// RUN: echo 'lit should ignore this file'
3+
4+
module Some.Nested.Module {
5+
method HelloWorld()
6+
{
7+
print "Hello World";
8+
}
9+
}

0 commit comments

Comments
 (0)