mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 14:48:47 +00:00
utilize odin test -all-packages instead of (make/bat) scripts for running tests
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
ODIN=../../odin
|
||||
COMMON=-no-bounds-check -vet -strict-style -define:ODIN_TEST_FANCY=false
|
||||
|
||||
all: crypto_bench \
|
||||
hash_bench
|
||||
|
||||
crypto_bench:
|
||||
$(ODIN) test crypto $(COMMON) -o:speed -out:bench_crypto
|
||||
|
||||
hash_bench:
|
||||
$(ODIN) test hash $(COMMON) -o:speed -out:bench_hash
|
||||
|
||||
clean:
|
||||
rm bench_*
|
||||
@@ -0,0 +1,4 @@
|
||||
package benchmarks
|
||||
|
||||
@(require) import "crypto"
|
||||
@(require) import "hash"
|
||||
@@ -1,13 +0,0 @@
|
||||
@echo off
|
||||
set COMMON=-no-bounds-check -vet -strict-style -define:ODIN_TEST_FANCY=false
|
||||
set PATH_TO_ODIN==..\..\odin
|
||||
|
||||
echo ---
|
||||
echo Running core:crypto benchmarks
|
||||
echo ---
|
||||
%PATH_TO_ODIN% test crypto %COMMON% -o:speed -out:bench_crypto.exe || exit /b
|
||||
|
||||
echo ---
|
||||
echo Running core:hash benchmarks
|
||||
echo ---
|
||||
%PATH_TO_ODIN% test hash %COMMON% -o:speed -out:bench_hash.exe || exit /b
|
||||
Reference in New Issue
Block a user