Browse Source

Tests: Integrate `strings` into CI.

Jeroen van Rijn 4 years ago
parent
commit
fcb23abce4
2 changed files with 14 additions and 2 deletions
  1. 5 1
      tests/core/Makefile
  2. 9 1
      tests/core/build.bat

+ 5 - 1
tests/core/Makefile

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

+ 9 - 1
tests/core/build.bat

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