mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Update test paths.
This commit is contained in:
@@ -39,7 +39,9 @@ jobs:
|
|||||||
make
|
make
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
- name: Odin issues tests
|
- name: Odin issues tests
|
||||||
run: tests/issues/run.sh
|
run: |
|
||||||
|
cd tests/issues
|
||||||
|
./run.sh
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
- name: Odin check examples/all for Linux i386
|
- name: Odin check examples/all for Linux i386
|
||||||
run: ./odin check examples/all -vet -strict-style -target:linux_i386
|
run: ./odin check examples/all -vet -strict-style -target:linux_i386
|
||||||
@@ -91,7 +93,9 @@ jobs:
|
|||||||
make
|
make
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
- name: Odin issues tests
|
- name: Odin issues tests
|
||||||
run: tests/issues/run.sh
|
run: |
|
||||||
|
cd tests/issues
|
||||||
|
./run.sh
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
- name: Odin check examples/all for Darwin arm64
|
- name: Odin check examples/all for Darwin arm64
|
||||||
run: ./odin check examples/all -vet -strict-style -target:darwin_arm64
|
run: ./odin check examples/all -vet -strict-style -target:darwin_arm64
|
||||||
@@ -163,7 +167,8 @@ jobs:
|
|||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat
|
||||||
call tests\issues\run.bat
|
cd tests\issues
|
||||||
|
call run.bat
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
- name: Odin check examples/all for Windows 32bits
|
- name: Odin check examples/all for Windows 32bits
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ package util
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import "core:mem"
|
import "core:mem"
|
||||||
|
_ :: mem
|
||||||
|
|
||||||
// @note(bp): this can replace the other two
|
// @note(bp): this can replace the other two
|
||||||
cast_slice :: #force_inline proc "contextless" ($D: typeid/[]$DE, src: $S/[]$SE) -> D {
|
cast_slice :: #force_inline proc "contextless" ($D: typeid/[]$DE, src: $S/[]$SE) -> D {
|
||||||
|
|||||||
+14
-14
@@ -8,39 +8,39 @@ download_test_assets:
|
|||||||
$(PYTHON) download_assets.py
|
$(PYTHON) download_assets.py
|
||||||
|
|
||||||
image_test:
|
image_test:
|
||||||
$(ODIN) run image/test_core_image.odin -file
|
$(ODIN) run image/test_core_image.odin -file -out:test_core_image
|
||||||
|
|
||||||
compress_test:
|
compress_test:
|
||||||
$(ODIN) run compress/test_core_compress.odin -file
|
$(ODIN) run compress/test_core_compress.odin -file -out:test_core_compress
|
||||||
|
|
||||||
strings_test:
|
strings_test:
|
||||||
$(ODIN) run strings/test_core_strings.odin -file
|
$(ODIN) run strings/test_core_strings.odin -file -out:test_core_strings
|
||||||
|
|
||||||
hash_test:
|
hash_test:
|
||||||
$(ODIN) run hash -out=test_hash -o:speed -no-bounds-check
|
$(ODIN) run hash -o:speed -no-bounds-check -out:test_hash
|
||||||
|
|
||||||
crypto_test:
|
crypto_test:
|
||||||
$(ODIN) run crypto -out=test_crypto_hash -o:speed -no-bounds-check
|
$(ODIN) run crypto -o:speed -no-bounds-check -out:test_crypto_hash
|
||||||
|
|
||||||
noise_test:
|
noise_test:
|
||||||
$(ODIN) run math/noise -out=test_noise
|
$(ODIN) run math/noise -out:test_noise
|
||||||
|
|
||||||
encoding_test:
|
encoding_test:
|
||||||
$(ODIN) run encoding/hxa -out=test_hxa -collection:tests=..
|
$(ODIN) run encoding/hxa -collection:tests=.. -out:test_hxa
|
||||||
$(ODIN) run encoding/json -out=test_json
|
$(ODIN) run encoding/json -out:test_json
|
||||||
$(ODIN) run encoding/varint -out=test_varint
|
$(ODIN) run encoding/varint -out:test_varint
|
||||||
|
|
||||||
math_test:
|
math_test:
|
||||||
$(ODIN) run math/test_core_math.odin -out=test_core_math -file -collection:tests=..
|
$(ODIN) run math/test_core_math.odin -file -collection:tests=.. -out:test_core_math
|
||||||
|
|
||||||
linalg_glsl_math_test:
|
linalg_glsl_math_test:
|
||||||
$(ODIN) run math/linalg/glsl/test_linalg_glsl_math.odin -file -out=test_linalg_glsl_math -collection:tests=..
|
$(ODIN) run math/linalg/glsl/test_linalg_glsl_math.odin -file -collection:tests=.. -out:test_linalg_glsl_math
|
||||||
|
|
||||||
filepath_test:
|
filepath_test:
|
||||||
$(ODIN) run path/filepath/test_core_filepath.odin -file -out=test_core_filepath -collection:tests=..
|
$(ODIN) run path/filepath/test_core_filepath.odin -file -collection:tests=.. -out:test_core_filepath
|
||||||
|
|
||||||
reflect_test:
|
reflect_test:
|
||||||
$(ODIN) run reflect/test_core_reflect.odin -file -out=test_core_reflect -collection:tests=..
|
$(ODIN) run reflect/test_core_reflect.odin -file -collection:tests=.. -out:test_core_reflect
|
||||||
|
|
||||||
os_exit_test:
|
os_exit_test:
|
||||||
$(ODIN) run os/test_core_os_exit.odin -file -out=test_core_os_exit && exit 1 || exit 0
|
$(ODIN) run os/test_core_os_exit.odin -file -out:test_core_os_exit && exit 1 || exit 0
|
||||||
+14
-14
@@ -5,61 +5,61 @@ python3 download_assets.py
|
|||||||
echo ---
|
echo ---
|
||||||
echo Running core:image tests
|
echo Running core:image tests
|
||||||
echo ---
|
echo ---
|
||||||
%PATH_TO_ODIN% run image %COMMON%
|
%PATH_TO_ODIN% run image %COMMON% -out:test_core_image.exe
|
||||||
|
|
||||||
echo ---
|
echo ---
|
||||||
echo Running core:compress tests
|
echo Running core:compress tests
|
||||||
echo ---
|
echo ---
|
||||||
%PATH_TO_ODIN% run compress %COMMON%
|
%PATH_TO_ODIN% run compress %COMMON% -out:test_core_compress.exe
|
||||||
|
|
||||||
echo ---
|
echo ---
|
||||||
echo Running core:strings tests
|
echo Running core:strings tests
|
||||||
echo ---
|
echo ---
|
||||||
%PATH_TO_ODIN% run strings %COMMON%
|
%PATH_TO_ODIN% run strings %COMMON% -out:test_core_strings.exe
|
||||||
|
|
||||||
echo ---
|
echo ---
|
||||||
echo Running core:hash tests
|
echo Running core:hash tests
|
||||||
echo ---
|
echo ---
|
||||||
%PATH_TO_ODIN% run hash %COMMON% -o:size
|
%PATH_TO_ODIN% run hash %COMMON% -o:size -out:test_core_hash.exe
|
||||||
|
|
||||||
echo ---
|
echo ---
|
||||||
echo Running core:odin tests
|
echo Running core:odin tests
|
||||||
echo ---
|
echo ---
|
||||||
%PATH_TO_ODIN% run odin %COMMON% -o:size
|
%PATH_TO_ODIN% run odin %COMMON% -o:size -out:test_core_odin.exe
|
||||||
|
|
||||||
echo ---
|
echo ---
|
||||||
echo Running core:crypto hash tests
|
echo Running core:crypto hash tests
|
||||||
echo ---
|
echo ---
|
||||||
%PATH_TO_ODIN% run crypto %COMMON%
|
%PATH_TO_ODIN% run crypto %COMMON% -out:test_crypto_hash.exe
|
||||||
|
|
||||||
echo ---
|
echo ---
|
||||||
echo Running core:encoding tests
|
echo Running core:encoding tests
|
||||||
echo ---
|
echo ---
|
||||||
%PATH_TO_ODIN% run encoding/hxa %COMMON%
|
%PATH_TO_ODIN% run encoding/hxa %COMMON% -out:test_hxa.exe
|
||||||
%PATH_TO_ODIN% run encoding/json %COMMON%
|
%PATH_TO_ODIN% run encoding/json %COMMON% -out:test_json.exe
|
||||||
%PATH_TO_ODIN% run encoding/varint %COMMON%
|
%PATH_TO_ODIN% run encoding/varint %COMMON% -out:test_varint.exe
|
||||||
|
|
||||||
echo ---
|
echo ---
|
||||||
echo Running core:math/noise tests
|
echo Running core:math/noise tests
|
||||||
echo ---
|
echo ---
|
||||||
%PATH_TO_ODIN% run math/noise %COMMON%
|
%PATH_TO_ODIN% run math/noise %COMMON% -out:test_noise.exe
|
||||||
|
|
||||||
echo ---
|
echo ---
|
||||||
echo Running core:math tests
|
echo Running core:math tests
|
||||||
echo ---
|
echo ---
|
||||||
%PATH_TO_ODIN% run math %COMMON%
|
%PATH_TO_ODIN% run math %COMMON% -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%
|
%PATH_TO_ODIN% run math/linalg/glsl %COMMON% -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%
|
%PATH_TO_ODIN% run path/filepath %COMMON% -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%
|
%PATH_TO_ODIN% run reflect %COMMON% -out:test_core_reflect.exe
|
||||||
@@ -1,17 +1,17 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
if not exist "tests\issues\build\" mkdir tests\issues\build
|
if not exist "build\" mkdir build
|
||||||
|
|
||||||
set COMMON=-collection:tests=tests -out:tests\issues\build\test_issue
|
set COMMON=-collection:tests=.. -out:build\test_issue.exe
|
||||||
|
|
||||||
@echo on
|
@echo on
|
||||||
|
|
||||||
.\odin build tests\issues\test_issue_829.odin %COMMON% -file
|
..\..\odin build test_issue_829.odin %COMMON% -file
|
||||||
tests\issues\build\test_issue
|
build\test_issue
|
||||||
|
|
||||||
.\odin build tests\issues\test_issue_1592.odin %COMMON% -file
|
..\..\odin build test_issue_1592.odin %COMMON% -file
|
||||||
tests\issues\build\test_issue
|
build\test_issue
|
||||||
|
|
||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
rmdir /S /Q tests\issues\build
|
rmdir /S /Q build
|
||||||
|
|||||||
+8
-8
@@ -1,18 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
mkdir -p tests/issues/build
|
mkdir -p build
|
||||||
|
ODIN=../../odin
|
||||||
COMMON="-collection:tests=tests -out:tests/issues/build/test_issue"
|
COMMON="-collection:tests=.. -out:build/test_issue"
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
./odin build tests/issues/test_issue_829.odin $COMMON -file
|
$ODIN build test_issue_829.odin $COMMON -file
|
||||||
tests/issues/build/test_issue
|
./build/test_issue
|
||||||
|
|
||||||
./odin build tests/issues/test_issue_1592.odin $COMMON -file
|
$ODIN build test_issue_1592.odin $COMMON -file
|
||||||
tests/issues/build/test_issue
|
./build/test_issue
|
||||||
|
|
||||||
set +x
|
set +x
|
||||||
|
|
||||||
rm -rf tests/issues/build
|
rm -rf build
|
||||||
|
|||||||
Vendored
+1
-1
@@ -10,4 +10,4 @@ endif
|
|||||||
all: botan_test
|
all: botan_test
|
||||||
|
|
||||||
botan_test:
|
botan_test:
|
||||||
$(ODIN) run botan -out=botan_hash -o:speed -no-bounds-check $(ODINFLAGS)
|
$(ODIN) run botan -o:speed -no-bounds-check $(ODINFLAGS) -out=vendor_botan
|
||||||
|
|||||||
Vendored
+2
-2
@@ -5,9 +5,9 @@ set PATH_TO_ODIN==..\..\odin
|
|||||||
echo ---
|
echo ---
|
||||||
echo Running vendor:botan tests
|
echo Running vendor:botan tests
|
||||||
echo ---
|
echo ---
|
||||||
%PATH_TO_ODIN% run botan %COMMON%
|
%PATH_TO_ODIN% run botan %COMMON% -out:vendor_botan.exe
|
||||||
|
|
||||||
echo ---
|
echo ---
|
||||||
echo Running vendor:glfw tests
|
echo Running vendor:glfw tests
|
||||||
echo ---
|
echo ---
|
||||||
%PATH_TO_ODIN% run glfw %COMMON%
|
%PATH_TO_ODIN% run glfw %COMMON% -out:vendor_glfw.exe
|
||||||
Reference in New Issue
Block a user