Fixed code from autotest tests to remove warnings

Fixed getest ejson_test.ecf configuration file
Added script to allow using getest from Windows.

Note: I  did not fixed warning from getest tests, we should apply same change already made for autotest.
      it seems autotest and getests are doing the same checking, 
      I would suggest to either remove getest files or find a way to share test code between getest and autotest tests.
This commit is contained in:
jfiat
2011-11-21 09:20:46 +00:00
parent c836d75191
commit 24b1be7482
5 changed files with 825 additions and 785 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,11 @@
echo Compiling ejson_test (finalized)
ecb -finalize -c_compile -config ejson_test.ecf -batch -clean > NUL 2>&1
IF %ERRORLEVEL% EQU -1 goto ERROR
copy EIFGENs\ejson_test\F_code\ejson_test.exe ejson_test.exe
goto EOF
:ERROR
echo Error occurred during ejson_test compilation
goto EOF
:EOF

View File

@@ -0,0 +1,17 @@
-- Gobo test (getest) configuration file for eJSON
test
ejson_test
default
class ("TEST_[A-Z0-9_]*")
feature ("test_[a-z0-9_]*")
prefix ("X")
testgen ("TESTGEN")
compile ("ec_compile.bat")
execute ("ejson_test.exe")
cluster
test_dir: "."
end

View File

@@ -2,23 +2,20 @@
<system xmlns="http://www.eiffel.com/developers/xml/configuration-1-5-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-5-0 http://www.eiffel.com/developers/xml/configuration-1-5-0.xsd" name="ejson_test" uuid="9D4BC920-448B-4F84-9F95-5D47686EBC5E"> <system xmlns="http://www.eiffel.com/developers/xml/configuration-1-5-0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.eiffel.com/developers/xml/configuration-1-5-0 http://www.eiffel.com/developers/xml/configuration-1-5-0.xsd" name="ejson_test" uuid="9D4BC920-448B-4F84-9F95-5D47686EBC5E">
<target name="ejson_test"> <target name="ejson_test">
<root class="EJSON_TEST" feature="make"/> <root class="EJSON_TEST" feature="make"/>
<file_rule>
<exclude>//.svn</exclude>
<exclude>/cvs$</exclude>
<exclude>/EIFGENs$</exclude>
</file_rule>
<option warning="true" void_safety="none" syntax="obsolete"> <option warning="true" void_safety="none" syntax="obsolete">
<assertions precondition="true" postcondition="true" check="true" invariant="true" loop="true" supplier_precondition="true"/> <assertions precondition="true" postcondition="true" check="true" invariant="true" loop="true" supplier_precondition="true"/>
</option> </option>
<library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/> <library name="base" location="$ISE_LIBRARY/library/base/base.ecf"/>
<cluster name="elibs" location="$ELIBS\"> <library name="json" location="../../library/json.ecf"/>
<cluster name="ejson" location="$|ejson\ejson-dev\trunk\library" recursive="true"/> <library name="json_gobo_extension" location="../../library/json_gobo_extension.ecf"/>
<cluster name="ejson_test" location="$|ejson\ejson-dev\trunk\test\getest" recursive="true"/> <library name="gobo_kernel" location="$ISE_LIBRARY/library/gobo/gobo_kernel.ecf"/>
<cluster name="gobo" location="$|gobo\gobo-dev\library\" recursive="true"> <library name="gobo_structure" location="$ISE_LIBRARY/library/gobo/gobo_structure.ecf"/>
<file_rule> <library name="gobo_test" location="$ISE_LIBRARY/library/gobo/gobo_test.ecf"/>
<exclude>/ve$</exclude> <cluster name="tests" location="." recursive="true"/>
<exclude>/se$</exclude>
<exclude>/ge$</exclude>
<exclude>/free_elks$</exclude>
<exclude>/EiffelBase$</exclude>
<exclude>/no_expat$</exclude>
</file_rule>
</cluster>
</cluster>
</target> </target>
</system> </system>

View File

@@ -5,3 +5,6 @@ To compile and run the test program do as follows:
2. In this dircetory, run the command: 2. In this dircetory, run the command:
$ getest --verbose ejson_test.cfg $ getest --verbose ejson_test.cfg
Note: on Windows, you should use ejson_test-win.cfg