Revert "Merge pull request #1702 from Kelimion/filename_generation"

This reverts commit a40a53b104, reversing
changes made to 5422a3b17e.
This commit is contained in:
Jeroen van Rijn
2022-04-24 19:53:36 +02:00
parent a40a53b104
commit 63331ef731
21 changed files with 436 additions and 699 deletions
+14 -15
View File
@@ -1,6 +1,5 @@
ODIN=../../odin
PYTHON=$(shell which python3)
OUT_FILE=test_binary.bin
all: download_test_assets image_test compress_test strings_test hash_test crypto_test noise_test encoding_test \
math_test linalg_glsl_math_test filepath_test reflect_test os_exit_test
@@ -9,39 +8,39 @@ download_test_assets:
$(PYTHON) download_assets.py
image_test:
$(ODIN) run image/test_core_image.odin -out=$(OUT_FILE) -file
$(ODIN) run image/test_core_image.odin -file
compress_test:
$(ODIN) run compress/test_core_compress.odin -out=$(OUT_FILE) -file
$(ODIN) run compress/test_core_compress.odin -file
strings_test:
$(ODIN) run strings/test_core_strings.odin -out=$(OUT_FILE) -file
$(ODIN) run strings/test_core_strings.odin -file
hash_test:
$(ODIN) run hash -out=$(OUT_FILE) -o:speed -no-bounds-check
$(ODIN) run hash -out=test_hash -o:speed -no-bounds-check
crypto_test:
$(ODIN) run crypto -out=$(OUT_FILE) -o:speed -no-bounds-check
$(ODIN) run crypto -out=test_crypto_hash -o:speed -no-bounds-check
noise_test:
$(ODIN) run math/noise -out=$(OUT_FILE)
$(ODIN) run math/noise -out=test_noise
encoding_test:
$(ODIN) run encoding/hxa -out=$(OUT_FILE) -collection:tests=..
$(ODIN) run encoding/json -out=$(OUT_FILE)
$(ODIN) run encoding/varint -out=$(OUT_FILE)
$(ODIN) run encoding/hxa -out=test_hxa -collection:tests=..
$(ODIN) run encoding/json -out=test_json
$(ODIN) run encoding/varint -out=test_varint
math_test:
$(ODIN) run math/test_core_math.odin -out=$(OUT_FILE) -file -collection:tests=..
$(ODIN) run math/test_core_math.odin -out=test_core_math -file -collection:tests=..
linalg_glsl_math_test:
$(ODIN) run math/linalg/glsl/test_linalg_glsl_math.odin -file -out=$(OUT_FILE) -collection:tests=..
$(ODIN) run math/linalg/glsl/test_linalg_glsl_math.odin -file -out=test_linalg_glsl_math -collection:tests=..
filepath_test:
$(ODIN) run path/filepath/test_core_filepath.odin -file -out=$(OUT_FILE) -collection:tests=..
$(ODIN) run path/filepath/test_core_filepath.odin -file -out=test_core_filepath -collection:tests=..
reflect_test:
$(ODIN) run reflect/test_core_reflect.odin -file -out=$(OUT_FILE) -collection:tests=..
$(ODIN) run reflect/test_core_reflect.odin -file -out=test_core_reflect -collection:tests=..
os_exit_test:
$(ODIN) run os/test_core_os_exit.odin -file -out=$(OUT_FILE) && exit 1 || exit 0
$(ODIN) run os/test_core_os_exit.odin -file -out=test_core_os_exit && exit 1 || exit 0
+4 -6
View File
@@ -1,8 +1,6 @@
@echo off
set OUT_FILE=test_binary.exe
set COMMON=-show-timings -no-bounds-check -vet -strict-style -collection:tests=.. -out:%OUT_FILE%
set COMMON=-show-timings -no-bounds-check -vet -strict-style -collection:tests=..
set PATH_TO_ODIN==..\..\odin
python3 download_assets.py
echo ---
echo Running core:image tests
@@ -37,14 +35,14 @@ echo ---
echo ---
echo Running core:encoding tests
echo ---
%PATH_TO_ODIN% run encoding/hxa %COMMON%
%PATH_TO_ODIN% run encoding/json %COMMON%
%PATH_TO_ODIN% run encoding/hxa %COMMON%
%PATH_TO_ODIN% run encoding/json %COMMON%
%PATH_TO_ODIN% run encoding/varint %COMMON%
echo ---
echo Running core:math/noise tests
echo ---
%PATH_TO_ODIN% run math/noise %COMMON%
%PATH_TO_ODIN% run math/noise %COMMON%
echo ---
echo Running core:math tests
+1 -1
View File
@@ -4,7 +4,7 @@ set PATH_TO_ODIN==..\..\..\..\odin
set TEST_ARGS=-fast-tests
set TEST_ARGS=-no-random
set TEST_ARGS=
set OUT_NAME=math_big_test_library.dll
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
+13 -8
View File
@@ -1,12 +1,17 @@
@echo off
set PATH_TO_ODIN==..\..\odin
set COMMON=-collection:tests=.. -out:build\test_issue
if not exist "build" mkdir build
%PATH_TO_ODIN% build test_issue_829.odin %COMMON% -file
build\test_issue
if not exist "tests\issues\build\" mkdir tests\issues\build
%PATH_TO_ODIN% build test_issue_1592.odin %COMMON% -file
build\test_issue
set COMMON=-collection:tests=tests -out:tests\issues\build\test_issue
rmdir /S /Q build
@echo on
.\odin build tests\issues\test_issue_829.odin %COMMON% -file
tests\issues\build\test_issue
.\odin build tests\issues\test_issue_1592.odin %COMMON% -file
tests\issues\build\test_issue
@echo off
rmdir /S /Q tests\issues\build
+10 -9
View File
@@ -1,17 +1,18 @@
#!/bin/bash
ODIN=../../odin
COMMON="-collection:tests=.. -out:build/test_issue.bin"
set -eu
mkdir -p build
mkdir -p tests/issues/build
COMMON="-collection:tests=tests -out:tests/issues/build/test_issue"
set -x
$ODIN build test_issue_829.odin $COMMON -file
build/test_issue.bin
./odin build tests/issues/test_issue_829.odin $COMMON -file
tests/issues/build/test_issue
$ODIN build test_issue_1592.odin $COMMON -file
build/test_issue.bin
./odin build tests/issues/test_issue_1592.odin $COMMON -file
tests/issues/build/test_issue
set +x
rm -rf build
rm -rf tests/issues/build
+1 -2
View File
@@ -1,6 +1,5 @@
ODIN=../../odin
ODINFLAGS=
OUT_FILE=test_binary.bin
OS=$(shell uname)
@@ -11,4 +10,4 @@ endif
all: botan_test
botan_test:
$(ODIN) run botan -out=$(OUT_FILE) -o:speed -no-bounds-check $(ODINFLAGS)
$(ODIN) run botan -out=botan_hash -o:speed -no-bounds-check $(ODINFLAGS)
+1 -2
View File
@@ -1,6 +1,5 @@
@echo off
set OUT_FILE=test_binary.exe
set COMMON=-show-timings -no-bounds-check -vet -strict-style -out:%OUT_FILE%
set COMMON=-show-timings -no-bounds-check -vet -strict-style
set PATH_TO_ODIN==..\..\odin
echo ---