summaryrefslogtreecommitdiff
path: root/Test/vstte2012
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
commitb4fa8bffd5db8bc5a68faf8f3b1f3587ce813f23 (patch)
tree9b6952edef293fee8304e905474fec11196094ac /Test/vstte2012
parent2e803d553c8f579891a97a0c666e8b29044ff9d0 (diff)
Dafny: Added tests.
Diffstat (limited to 'Test/vstte2012')
-rw-r--r--Test/vstte2012/AnswerNoRuntimeChecking18
-rw-r--r--Test/vstte2012/AnswerRuntimeChecking11
-rw-r--r--Test/vstte2012/runtestNoRuntimeChecking.bat28
-rw-r--r--Test/vstte2012/runtestRuntimeChecking.bat32
4 files changed, 89 insertions, 0 deletions
diff --git a/Test/vstte2012/AnswerNoRuntimeChecking b/Test/vstte2012/AnswerNoRuntimeChecking
new file mode 100644
index 00000000..c5508749
--- /dev/null
+++ b/Test/vstte2012/AnswerNoRuntimeChecking
@@ -0,0 +1,18 @@
+
+-------------------- Two-Way-Sort --------------------
+Compiled assembly into Two-Way-Sort.dll
+
+-------------------- Combinators --------------------
+Compiled assembly into Combinators.dll
+
+-------------------- RingBuffer --------------------
+Compiled assembly into RingBuffer.dll
+
+-------------------- RingBufferAuto --------------------
+Compiled assembly into RingBufferAuto.dll
+
+-------------------- Tree --------------------
+Compiled assembly into Tree.dll
+
+-------------------- BreadthFirstSearch --------------------
+Compilation error: Function _default.BreadthFirstSearch.Succ has no body
diff --git a/Test/vstte2012/AnswerRuntimeChecking b/Test/vstte2012/AnswerRuntimeChecking
new file mode 100644
index 00000000..5c703cc7
--- /dev/null
+++ b/Test/vstte2012/AnswerRuntimeChecking
@@ -0,0 +1,11 @@
+
+-------------------- Two-Way-Sort --------------------
+Compiled assembly into Two-Way-Sort.dll
+Rewrote assembly into Two-Way-Sort.dll
+
+-------------------- Tree --------------------
+Compiled assembly into Tree.dll
+Rewrote assembly into Tree.dll
+
+-------------------- BreadthFirstSearch --------------------
+Compilation error: Function _default.BreadthFirstSearch.Succ has no body
diff --git a/Test/vstte2012/runtestNoRuntimeChecking.bat b/Test/vstte2012/runtestNoRuntimeChecking.bat
new file mode 100644
index 00000000..e572ed2f
--- /dev/null
+++ b/Test/vstte2012/runtestNoRuntimeChecking.bat
@@ -0,0 +1,28 @@
+@echo off
+setlocal
+
+set BOOGIEDIR=..\..\Binaries
+set DAFNY_EXE=%BOOGIEDIR%\Dafny.exe
+set BPLEXE=%BOOGIEDIR%\Boogie.exe
+
+for %%f in (Two-Way-Sort Combinators RingBuffer RingBufferAuto
+ Tree BreadthFirstSearch) 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/vstte2012/runtestRuntimeChecking.bat b/Test/vstte2012/runtestRuntimeChecking.bat
new file mode 100644
index 00000000..042efe96
--- /dev/null
+++ b/Test/vstte2012/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 Combinators : ghost state
+REM RingBuffer : ghost state
+REM RingBufferAuto: ghost state
+
+for %%f in (Two-Way-Sort Tree BreadthFirstSearch) 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
+ )
+)