mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-04 04:02:33 +00:00
Move math/big tests under tests/.
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -69,14 +69,7 @@ jobs:
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
||||
odin run examples/demo/demo.odin
|
||||
timeout-minutes: 10
|
||||
- name: core:math/big tests
|
||||
shell: cmd
|
||||
run: |
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
||||
cd core\math\big\tests
|
||||
call build.bat
|
||||
timeout-minutes: 10
|
||||
- name: core:image and core:compress tests
|
||||
- name: Tests for core:{image,compress,math}
|
||||
shell: cmd
|
||||
run: |
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
@echo off
|
||||
set TEST_ARGS=-fast-tests
|
||||
set TEST_ARGS=
|
||||
set OUT_NAME=test_library
|
||||
set COMMON=-build-mode:shared -show-timings -no-bounds-check -define:MATH_BIG_EXE=false -vet -strict-style
|
||||
set PATH_TO_ODIN==..\..\..\..\odin
|
||||
:%PATH_TO_ODIN% build . %COMMON% -o:minimal -out:%OUT_NAME% && python3 test.py %TEST_ARGS%
|
||||
:%PATH_TO_ODIN% build . %COMMON% -o:size -out:%OUT_NAME% && python3 test.py %TEST_ARGS%
|
||||
%PATH_TO_ODIN% build . %COMMON% -o:speed -out:%OUT_NAME% && python3 test.py %TEST_ARGS%
|
||||
@@ -1,6 +1,27 @@
|
||||
@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%
|
||||
%PATH_TO_ODIN% test compress %COMMON%
|
||||
del image.exe
|
||||
echo ---
|
||||
echo Running core:compress tests
|
||||
echo ---
|
||||
%PATH_TO_ODIN% test compress %COMMON%
|
||||
del compress.exe
|
||||
|
||||
rem math/big tests
|
||||
set TEST_ARGS=-fast-tests
|
||||
set TEST_ARGS=
|
||||
set OUT_NAME=math_big_test_library
|
||||
set COMMON=-build-mode:shared -show-timings -no-bounds-check -define:MATH_BIG_EXE=false -vet -strict-style
|
||||
echo ---
|
||||
echo Running core:math/big tests
|
||||
echo ---
|
||||
|
||||
%PATH_TO_ODIN% build math/big %COMMON% -o:speed -out:%OUT_NAME%
|
||||
python3 math/big/test.py %TEST_ARGS%
|
||||
del %OUT_NAME%.*
|
||||
@@ -101,11 +101,11 @@ if args.no_random:
|
||||
# Where is the DLL? If missing, build using: `odin build . -build-mode:shared`
|
||||
#
|
||||
if platform.system() == "Windows":
|
||||
LIB_PATH = os.getcwd() + os.sep + "test_library.dll"
|
||||
LIB_PATH = os.getcwd() + os.sep + "math_big_test_library.dll"
|
||||
elif platform.system() == "Linux":
|
||||
LIB_PATH = os.getcwd() + os.sep + "test_library.so"
|
||||
LIB_PATH = os.getcwd() + os.sep + "math_big_test_library.so"
|
||||
elif platform.system() == "Darwin":
|
||||
LIB_PATH = os.getcwd() + os.sep + "test_library.dylib"
|
||||
LIB_PATH = os.getcwd() + os.sep + "math_big_test_library.dylib"
|
||||
else:
|
||||
print("Platform is unsupported.")
|
||||
exit(1)
|
||||
Reference in New Issue
Block a user