From b4fa8bffd5db8bc5a68faf8f3b1f3587ce813f23 Mon Sep 17 00:00:00 2001 From: chmaria Date: Tue, 12 Jun 2012 04:34:14 +0200 Subject: Dafny: Added tests. --- Test/vstte2012/AnswerNoRuntimeChecking | 18 ++++++++++++++++ Test/vstte2012/AnswerRuntimeChecking | 11 ++++++++++ Test/vstte2012/runtestNoRuntimeChecking.bat | 28 +++++++++++++++++++++++++ Test/vstte2012/runtestRuntimeChecking.bat | 32 +++++++++++++++++++++++++++++ 4 files changed, 89 insertions(+) create mode 100644 Test/vstte2012/AnswerNoRuntimeChecking create mode 100644 Test/vstte2012/AnswerRuntimeChecking create mode 100644 Test/vstte2012/runtestNoRuntimeChecking.bat create mode 100644 Test/vstte2012/runtestRuntimeChecking.bat (limited to 'Test/vstte2012') 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 + ) +) -- cgit v1.2.3