mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
[xml] Enable tests.
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
@echo off
|
@echo off
|
||||||
set COMMON=-show-timings -no-bounds-check -vet -strict-style -collection:tests=..
|
set COMMON=-no-bounds-check -vet -strict-style
|
||||||
|
set COLLECTION=-collection:tests=..
|
||||||
set PATH_TO_ODIN==..\..\odin
|
set PATH_TO_ODIN==..\..\odin
|
||||||
python3 download_assets.py
|
python3 download_assets.py
|
||||||
echo ---
|
echo ---
|
||||||
@@ -35,9 +36,10 @@ echo ---
|
|||||||
echo ---
|
echo ---
|
||||||
echo Running core:encoding tests
|
echo Running core:encoding tests
|
||||||
echo ---
|
echo ---
|
||||||
%PATH_TO_ODIN% run encoding/hxa %COMMON% -out:test_hxa.exe
|
%PATH_TO_ODIN% run encoding/hxa %COMMON% %COLLECTION% -out:test_hxa.exe
|
||||||
%PATH_TO_ODIN% run encoding/json %COMMON% -out:test_json.exe
|
%PATH_TO_ODIN% run encoding/json %COMMON% -out:test_json.exe
|
||||||
%PATH_TO_ODIN% run encoding/varint %COMMON% -out:test_varint.exe
|
%PATH_TO_ODIN% run encoding/varint %COMMON% -out:test_varint.exe
|
||||||
|
%PATH_TO_ODIN% run encoding/xml %COMMON% -out:test_xml.exe
|
||||||
|
|
||||||
echo ---
|
echo ---
|
||||||
echo Running core:math/noise tests
|
echo Running core:math/noise tests
|
||||||
@@ -47,19 +49,19 @@ echo ---
|
|||||||
echo ---
|
echo ---
|
||||||
echo Running core:math tests
|
echo Running core:math tests
|
||||||
echo ---
|
echo ---
|
||||||
%PATH_TO_ODIN% run math %COMMON% -out:test_core_math.exe
|
%PATH_TO_ODIN% run math %COMMON% %COLLECTION% -out:test_core_math.exe
|
||||||
|
|
||||||
echo ---
|
echo ---
|
||||||
echo Running core:math/linalg/glsl tests
|
echo Running core:math/linalg/glsl tests
|
||||||
echo ---
|
echo ---
|
||||||
%PATH_TO_ODIN% run math/linalg/glsl %COMMON% -out:test_linalg_glsl.exe
|
%PATH_TO_ODIN% run math/linalg/glsl %COMMON% %COLLECTION% -out:test_linalg_glsl.exe
|
||||||
|
|
||||||
echo ---
|
echo ---
|
||||||
echo Running core:path/filepath tests
|
echo Running core:path/filepath tests
|
||||||
echo ---
|
echo ---
|
||||||
%PATH_TO_ODIN% run path/filepath %COMMON% -out:test_core_filepath.exe
|
%PATH_TO_ODIN% run path/filepath %COMMON% %COLLECTION% -out:test_core_filepath.exe
|
||||||
|
|
||||||
echo ---
|
echo ---
|
||||||
echo Running core:reflect tests
|
echo Running core:reflect tests
|
||||||
echo ---
|
echo ---
|
||||||
%PATH_TO_ODIN% run reflect %COMMON% -out:test_core_reflect.exe
|
%PATH_TO_ODIN% run reflect %COMMON% %COLLECTION% -out:test_core_reflect.exe
|
||||||
@@ -168,6 +168,21 @@ TESTS :: []TEST{
|
|||||||
err = .Invalid_DocType,
|
err = .Invalid_DocType,
|
||||||
crc32 = 0x49b83d0a,
|
crc32 = 0x49b83d0a,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/*
|
||||||
|
Parse the 8.2 MiB unicode.xml for good measure.
|
||||||
|
*/
|
||||||
|
{
|
||||||
|
filename = "unicode.xml",
|
||||||
|
options = {
|
||||||
|
flags = {
|
||||||
|
.Ignore_Unsupported,
|
||||||
|
},
|
||||||
|
expected_doctype = "",
|
||||||
|
},
|
||||||
|
err = .None,
|
||||||
|
crc32 = 0xcaa042b9,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
when ODIN_TEST {
|
when ODIN_TEST {
|
||||||
|
|||||||
Reference in New Issue
Block a user