summaryrefslogtreecommitdiff
path: root/Test/vacid0
diff options
context:
space:
mode:
authorGravatar chmaria <unknown>2012-06-12 04:34:14 +0200
committerGravatar chmaria <unknown>2012-06-12 04:34:14 +0200
commit77d3b2f3619972d2867fadee815e6aff8f5454d9 (patch)
treefbe42eebd37d3c7ad9525a27c91eb3b83925dc4d /Test/vacid0
parentb52bb9d992c8c66665094110d399cfff31d71349 (diff)
Dafny: Added tests.
Diffstat (limited to 'Test/vacid0')
-rw-r--r--Test/vacid0/AnswerNoRuntimeChecking9
-rw-r--r--Test/vacid0/AnswerRuntimeChecking0
-rw-r--r--Test/vacid0/runtestNoRuntimeChecking.bat27
-rw-r--r--Test/vacid0/runtestRuntimeChecking.bat32
4 files changed, 68 insertions, 0 deletions
diff --git a/Test/vacid0/AnswerNoRuntimeChecking b/Test/vacid0/AnswerNoRuntimeChecking
new file mode 100644
index 00000000..a1f7f57b
--- /dev/null
+++ b/Test/vacid0/AnswerNoRuntimeChecking
@@ -0,0 +1,9 @@
+
+-------------------- LazyInitArray --------------------
+Compiled assembly into LazyInitArray.dll
+
+-------------------- SparseArray --------------------
+Compiled assembly into SparseArray.dll
+
+-------------------- Composite --------------------
+Compiled assembly into Composite.exe
diff --git a/Test/vacid0/AnswerRuntimeChecking b/Test/vacid0/AnswerRuntimeChecking
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/Test/vacid0/AnswerRuntimeChecking
diff --git a/Test/vacid0/runtestNoRuntimeChecking.bat b/Test/vacid0/runtestNoRuntimeChecking.bat
new file mode 100644
index 00000000..3a7befa2
--- /dev/null
+++ b/Test/vacid0/runtestNoRuntimeChecking.bat
@@ -0,0 +1,27 @@
+@echo off
+setlocal
+
+set BOOGIEDIR=..\..\Binaries
+set DAFNY_EXE=%BOOGIEDIR%\Dafny.exe
+set BPLEXE=%BOOGIEDIR%\Boogie.exe
+
+for %%f in (LazyInitArray SparseArray Composite) do (
+ echo.
+ echo -------------------- %%f --------------------
+ %DAFNY_EXE% /nologo /errorTrace:0 /verification:0 /runtimeChecking:0 /compile:2 %* %%f.dfy
+ if exist %%f.cs. (
+ del %%f.cs
+ )
+ if exist %%f.exe. (
+ del %%f.exe
+ )
+ if exist %%f.dll. (
+ del %%f.dll
+ )
+ if exist %%f.pdb. (
+ del %%f.pdb
+ )
+ if exist %%f.pdb.original. (
+ del %%f.pdb.original
+ )
+)
diff --git a/Test/vacid0/runtestRuntimeChecking.bat b/Test/vacid0/runtestRuntimeChecking.bat
new file mode 100644
index 00000000..077c1002
--- /dev/null
+++ b/Test/vacid0/runtestRuntimeChecking.bat
@@ -0,0 +1,32 @@
+@echo off
+setlocal
+
+set BOOGIEDIR=..\..\Binaries
+set DAFNY_EXE=%BOOGIEDIR%\Dafny.exe
+set BPLEXE=%BOOGIEDIR%\Boogie.exe
+
+REM to implement:
+REM LazyInitArray: ghost state
+REM SparseArray : ghost state
+REM Composite : ghost state
+
+for %%f in () do (
+ echo.
+ echo -------------------- %%f --------------------
+ %DAFNY_EXE% /nologo /errorTrace:0 /verification:0 /runtimeChecking:1 /compile:2 %* %%f.dfy
+ if exist %%f.cs. (
+ del %%f.cs
+ )
+ if exist %%f.exe. (
+ del %%f.exe
+ )
+ if exist %%f.dll. (
+ del %%f.dll
+ )
+ if exist %%f.pdb. (
+ del %%f.pdb
+ )
+ if exist %%f.pdb.original. (
+ del %%f.pdb.original
+ )
+)