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:
File diff suppressed because it is too large
Load Diff
11
test/getest/ec_compile.bat
Normal file
11
test/getest/ec_compile.bat
Normal 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
|
||||
17
test/getest/ejson_test-win.cfg
Normal file
17
test/getest/ejson_test-win.cfg
Normal 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
|
||||
@@ -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">
|
||||
<target name="ejson_test">
|
||||
<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">
|
||||
<assertions precondition="true" postcondition="true" check="true" invariant="true" loop="true" supplier_precondition="true"/>
|
||||
</option>
|
||||
<library name="base" location="$ISE_LIBRARY\library\base\base.ecf"/>
|
||||
<cluster name="elibs" location="$ELIBS\">
|
||||
<cluster name="ejson" location="$|ejson\ejson-dev\trunk\library" recursive="true"/>
|
||||
<cluster name="ejson_test" location="$|ejson\ejson-dev\trunk\test\getest" recursive="true"/>
|
||||
<cluster name="gobo" location="$|gobo\gobo-dev\library\" recursive="true">
|
||||
<file_rule>
|
||||
<exclude>/ve$</exclude>
|
||||
<exclude>/se$</exclude>
|
||||
<exclude>/ge$</exclude>
|
||||
<exclude>/free_elks$</exclude>
|
||||
<exclude>/EiffelBase$</exclude>
|
||||
<exclude>/no_expat$</exclude>
|
||||
</file_rule>
|
||||
</cluster>
|
||||
</cluster>
|
||||
<library name="base" location="$ISE_LIBRARY/library/base/base.ecf"/>
|
||||
<library name="json" location="../../library/json.ecf"/>
|
||||
<library name="json_gobo_extension" location="../../library/json_gobo_extension.ecf"/>
|
||||
<library name="gobo_kernel" location="$ISE_LIBRARY/library/gobo/gobo_kernel.ecf"/>
|
||||
<library name="gobo_structure" location="$ISE_LIBRARY/library/gobo/gobo_structure.ecf"/>
|
||||
<library name="gobo_test" location="$ISE_LIBRARY/library/gobo/gobo_test.ecf"/>
|
||||
<cluster name="tests" location="." recursive="true"/>
|
||||
</target>
|
||||
</system>
|
||||
|
||||
@@ -5,3 +5,6 @@ To compile and run the test program do as follows:
|
||||
2. In this dircetory, run the command:
|
||||
|
||||
$ getest --verbose ejson_test.cfg
|
||||
|
||||
|
||||
Note: on Windows, you should use ejson_test-win.cfg
|
||||
|
||||
Reference in New Issue
Block a user