Tests: Integrate strings into CI.

This commit is contained in:
Jeroen van Rijn
2021-09-07 19:57:08 +02:00
parent f7601a759b
commit fcb23abce4
2 changed files with 14 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
ODIN=../../odin
PYTHON=$(shell which python3)
all: download_test_assets image_test compress_test
all: download_test_assets image_test compress_test strings_test
download_test_assets:
$(PYTHON) download_assets.py
@@ -13,3 +13,7 @@ image_test:
compress_test:
$(ODIN) test compress/test_core_compress.odin
rm test_core_compress
strings_test:
$(ODIN) test strings/test_core_strings.odin
rm test_core_strings

View File

@@ -1,18 +1,26 @@
@echo off
set COMMON=-show-timings -no-bounds-check -vet -strict-style
set PATH_TO_ODIN==..\..\odin
:python3 download_assets.py
python3 download_assets.py
echo ---
echo Running core:image tests
echo ---
%PATH_TO_ODIN% test image %COMMON%
del image.exe
echo ---
echo Running core:compress tests
echo ---
%PATH_TO_ODIN% test compress %COMMON%
del compress.exe
echo ---
echo Running core:strings tests
echo ---
%PATH_TO_ODIN% test strings %COMMON%
del strings.exe
rem math/big tests
set TEST_ARGS=-fast-tests
set TEST_ARGS=