From: <br...@us...> - 2009-07-16 20:50:50
|
Revision: 527 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=527&view=rev Author: brus07 Date: 2009-07-16 20:50:46 +0000 (Thu, 16 Jul 2009) Log Message: ----------- Added test files for unit tests. Added Paths: ----------- nera/projects/nera.tester.runner/trunk/test_files/ nera/projects/nera.tester.runner/trunk/test_files/test1/ nera/projects/nera.tester.runner/trunk/test_files/test1/AllowedFunc.txt nera/projects/nera.tester.runner/trunk/test_files/test1/CompIDs.txt nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/ nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/ nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/D7.bat nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/DCC32.exe here.txt nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Dcc32.exe nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Dcc70.dll nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Delphi compiler here.txt nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Math.dcu nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/SysConst.dcu nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/SysInit.dcu nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/SysUtils.dcu nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/System.dcu nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Types.dcu nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Variants.dcu nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Windows.dcu nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/dcc32.cfg nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/includeD7/ nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/includeD7/units for delphi here.txt nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/rlink32.dll nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/rlink32.dll here.txt nera/projects/nera.tester.runner/trunk/test_files/test1/InData.txt nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/ nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/ nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/ProblemData.txt nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/solution.pas nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/ nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test1/ nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test1/in.txt nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test1/out.txt nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test2/ nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test2/in.txt nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test2/out.txt nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test3/ nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test3/in.txt nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test3/out.txt nera/projects/nera.tester.runner/trunk/test_files/test1/RealTesterConfig.ini nera/projects/nera.tester.runner/trunk/test_files/test1/Temp/ nera/projects/nera.tester.runner/trunk/test_files/test1/TesterInData.txt nera/projects/nera.tester.runner/trunk/test_files/test1/data.xsd nera/projects/nera.tester.runner/trunk/test_files/test1/scriptExample.txt nera/projects/nera.tester.runner/trunk/test_files/test1.txt Added: nera/projects/nera.tester.runner/trunk/test_files/test1/AllowedFunc.txt =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/AllowedFunc.txt (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/AllowedFunc.txt 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1,57 @@ +kernel32.dll DeleteCriticalSection +kernel32.dll LeaveCriticalSection +kernel32.dll EnterCriticalSection +kernel32.dll InitializeCriticalSection +kernel32.dll VirtualFree +kernel32.dll VirtualAlloc +kernel32.dll LocalFree +kernel32.dll LocalAlloc +kernel32.dll GetVersion +kernel32.dll GetCurrentThreadId +kernel32.dll GetThreadLocale +kernel32.dll GetStartupInfoA +kernel32.dll GetLocaleInfoA +kernel32.dll GetCommandLineA +kernel32.dll FreeLibrary +kernel32.dll ExitProcess +kernel32.dll WriteFile +kernel32.dll UnhandledExceptionFilter +kernel32.dll RtlUnwind +kernel32.dll RaiseException +kernel32.dll GetStdHandle +user32.dll GetKeyboardType +user32.dll MessageBoxA +advapi32.dll RegQueryValueExA +advapi32.dll RegOpenKeyExA +advapi32.dll RegCloseKey +kernel32.dll TlsSetValue +kernel32.dll TlsGetValue +kernel32.dll GetModuleHandleA +kernel32.dll WideCharToMultiByte +kernel32.dll lstrlenA +kernel32.dll lstrcpynA +kernel32.dll LoadLibraryExA +kernel32.dll GetProcAddress +kernel32.dll GetModuleFileNameA +kernel32.dll FindFirstFileA +kernel32.dll FindClose +user32.dll LoadStringA +user32.dll CharNextA +oleaut32.dll SysFreeString +kernel32.dll VirtualQuery +kernel32.dll GetVersionExA +kernel32.dll GetStringTypeExA +kernel32.dll GetDiskFreeSpaceA +kernel32.dll GetCPInfo +kernel32.dll GetACP +kernel32.dll EnumCalendarInfoA +user32.dll GetSystemMetrics +user32.dll CharToOemA +kernel32.dll GetLastError +kernel32.dll SetFilePointer +kernel32.dll SetEndOfFile +kernel32.dll ReadFile +kernel32.dll GetFileSize +kernel32.dll GetFileType +kernel32.dll CreateFileA +kernel32.dll CloseHandle \ No newline at end of file Added: nera/projects/nera.tester.runner/trunk/test_files/test1/CompIDs.txt =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/CompIDs.txt (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/CompIDs.txt 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1,2 @@ +1 Compiler\D7\D7.bat +2 Compiler\VC6\VS.bat Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/D7.bat =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/D7.bat (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/D7.bat 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1,2 @@ +echo off +DCC32.EXE -CC %1 -E%2 \ No newline at end of file Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Dcc32.exe =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Dcc32.exe ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Dcc70.dll =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Dcc70.dll ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Math.dcu =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Math.dcu ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/SysConst.dcu =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/SysConst.dcu ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/SysInit.dcu =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/SysInit.dcu ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/SysUtils.dcu =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/SysUtils.dcu ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/System.dcu =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/System.dcu ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Types.dcu =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Types.dcu ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Variants.dcu =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Variants.dcu ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Windows.dcu =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/Windows.dcu ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/dcc32.cfg =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/dcc32.cfg (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/dcc32.cfg 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1 @@ +-u"includeD7" Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/rlink32.dll =================================================================== (Binary files differ) Property changes on: nera/projects/nera.tester.runner/trunk/test_files/test1/Compiler/D7/rlink32.dll ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: nera/projects/nera.tester.runner/trunk/test_files/test1/InData.txt =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/InData.txt (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/InData.txt 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1,3 @@ +Compiler\D7.bat +Temp\ +Problem\ \ No newline at end of file Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/ProblemData.txt =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/ProblemData.txt (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/ProblemData.txt 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1,10 @@ +CodeLimit: 65536 +CompilationTimeLimit: 100000 +MemoryLimit: 67108864 +OutputLimit: 40960 +RealTimeLimit: 200000 +TimeLimit: 2000 +MaxThreads: 1 +Checker: scriptExample.txt +CheckPlugin: Plugin.dll +TestFolderName: tests/test* \ No newline at end of file Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/solution.pas =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/solution.pas (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/solution.pas 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1,7 @@ +var + i:integer; + +begin +read(i); +write(i); +end. \ No newline at end of file Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test1/in.txt =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test1/in.txt (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test1/in.txt 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1 @@ +1 Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test1/out.txt =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test1/out.txt (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test1/out.txt 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1 @@ +1 \ No newline at end of file Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test2/in.txt =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test2/in.txt (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test2/in.txt 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1 @@ +2 Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test2/out.txt =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test2/out.txt (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test2/out.txt 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1 @@ +2 \ No newline at end of file Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test3/in.txt =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test3/in.txt (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test3/in.txt 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1 @@ +3 Added: nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test3/out.txt =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test3/out.txt (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/Problem/1/tests/test3/out.txt 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1 @@ +3 \ No newline at end of file Added: nera/projects/nera.tester.runner/trunk/test_files/test1/RealTesterConfig.ini =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/RealTesterConfig.ini (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/RealTesterConfig.ini 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1,2 @@ +[MainConfig] +SecureLevel=None \ No newline at end of file Added: nera/projects/nera.tester.runner/trunk/test_files/test1/TesterInData.txt =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/TesterInData.txt (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/TesterInData.txt 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1,3 @@ +100 +TestingUser +USER12345 \ No newline at end of file Added: nera/projects/nera.tester.runner/trunk/test_files/test1/data.xsd =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/data.xsd (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/data.xsd 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1,85 @@ +<?xml version="1.0" encoding="utf-8"?> +<xs:schema id="XMLSchema1" elementFormDefault="qualified" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:complexType name="submitType"> + <xs:sequence maxOccurs="1"> + <!-- потрібно щоб ці записи могли слідувати у довільному порядку --> + <xs:element name="id" type="xs:positiveInteger" /> + <xs:element name="problem" type="xs:positiveInteger" /> + <xs:element name="sourceCode" type="xs:string" /> + <xs:element name="language"> + <!-- обмеження для ID мови програмування --> + <xs:simpleType> + <xs:restriction base="xs:int"> + <xs:maxInclusive value="100" /> + </xs:restriction> + </xs:simpleType> + </xs:element> + </xs:sequence> + </xs:complexType> + <xs:complexType name="submitIOIType"> + <xs:sequence> + <xs:element name="submit" type="submitType" /> + <xs:element name="name" type="xs:string" /> + <xs:element name="form" type="xs:positiveInteger" /> + <xs:element name="school" type="xs:string" minOccurs="0" /> + </xs:sequence> + </xs:complexType> + <xs:element name="submitList"> + <xs:complexType> + <xs:sequence> + <xs:sequence> + <xs:element name="submit" type="submitType" maxOccurs="unbounded" minOccurs="0" /> + </xs:sequence> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:complexType name="resultType"> + <xs:sequence> + <xs:element name="res" type="xs:string" /> + <xs:element name="result" type="xs:int" /> + <xs:element name="usedTime" type="xs:double" /> + <xs:element name="usedMemory" type="xs:double" /> + <xs:element name="compOutput" type="xs:string" /> + <xs:element name="submit" type="submitType" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="resultIOIType"> + <xs:sequence> + <xs:element name="res" type="xs:string" /> + <xs:element name="result" type="xs:int" /> + <xs:element name="usedTime" type="xs:double" /> + <xs:element name="usedMemory" type="xs:double" /> + <xs:element name="compOutput" type="xs:string" /> + <xs:element name="testResults" type="testResultList" minOccurs="0" /> + <xs:element name="submitioi" type="submitIOIType" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="testResultList"> + <xs:sequence> + <xs:sequence> + <xs:element name="TestResIoi" type="testResultIoiType" maxOccurs="unbounded" minOccurs="0" /> + </xs:sequence> + </xs:sequence> + </xs:complexType> + <xs:complexType name="testResultIoiType"> + <xs:sequence> + <!-- обмеження для ID: не має бути відємним --> + <xs:element name="id" type="xs:int" /> + <xs:element name="res" type="xs:string" /> + <xs:element name="usedTime" type="xs:double" /> + <xs:element name="usedMemory" type="xs:double" /> + <xs:element name="input" type="xs:string" /> + <xs:element name="output" type="xs:string" /> + <xs:element name="contestantOutput" type="xs:string" /> + <xs:element name="point" type="xs:int" /> + </xs:sequence> + </xs:complexType> + <xs:element name="result" type="resultType"> + </xs:element> + <xs:element name="submit" type="submitType"> + </xs:element> + <xs:element name="submitioi" type="submitIOIType"> + </xs:element> + <xs:element name="resultioi" type="resultIOIType"> + </xs:element> +</xs:schema> \ No newline at end of file Added: nera/projects/nera.tester.runner/trunk/test_files/test1/scriptExample.txt =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1/scriptExample.txt (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1/scriptExample.txt 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1,3 @@ +if (output==correctOutput) +result='AC'; +else result='WA'; \ No newline at end of file Added: nera/projects/nera.tester.runner/trunk/test_files/test1.txt =================================================================== --- nera/projects/nera.tester.runner/trunk/test_files/test1.txt (rev 0) +++ nera/projects/nera.tester.runner/trunk/test_files/test1.txt 2009-07-16 20:50:46 UTC (rev 527) @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-16"?> +<submit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <id>123</id> + <problem>1</problem> + <sourceCode>asd</sourceCode> + <language>1</language> +</submit> \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |