From 8ce1ce85ad33b9b37f0ba5c49448e188077c64eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20=28counter=29?= <49562770+awwdev@users.noreply.github.com> Date: Wed, 21 Sep 2022 16:03:52 +0200 Subject: [PATCH 1/6] removed do --- vendor/zlib/zlib.odin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/zlib/zlib.odin b/vendor/zlib/zlib.odin index c052429f5..f5357d28e 100644 --- a/vendor/zlib/zlib.odin +++ b/vendor/zlib/zlib.odin @@ -2,8 +2,8 @@ package zlib import "core:c" -when ODIN_OS == .Windows do foreign import zlib "libz.lib" -when ODIN_OS == .Linux do foreign import zlib "system:z" +when ODIN_OS == .Windows { foreign import zlib "libz.lib" } +when ODIN_OS == .Linux { foreign import zlib "system:z" } VERSION :: "1.2.12" VERNUM :: 0x12c0 @@ -259,4 +259,4 @@ gzgetc :: #force_inline proc(file: gzFile) -> c.int { return ch } return gzgetc_unique(file) -} \ No newline at end of file +} From 0ca8a5e1868b1d1b25beb828c380d71f583c6678 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Wed, 21 Sep 2022 16:45:01 +0200 Subject: [PATCH 2/6] Add vendor:zlib to examples/all; prefix vendor packages. --- examples/all/all_vendor.odin | 47 +++++++++++++++------------ vendor/OpenGL/constants.odin | 2 +- vendor/OpenGL/enums.odin | 2 +- vendor/OpenGL/helpers.odin | 2 +- vendor/OpenGL/impl.odin | 2 +- vendor/OpenGL/wrappers.odin | 2 +- vendor/botan/bindings/botan.odin | 2 +- vendor/botan/blake2b/blake2b.odin | 2 +- vendor/botan/gost/gost.odin | 2 +- vendor/botan/keccak/keccak.odin | 2 +- vendor/botan/md4/md4.odin | 2 +- vendor/botan/md5/md5.odin | 2 +- vendor/botan/ripemd/ripemd.odin | 2 +- vendor/botan/sha1/sha1.odin | 2 +- vendor/botan/sha2/sha2.odin | 2 +- vendor/botan/sha3/sha3.odin | 2 +- vendor/botan/shake/shake.odin | 2 +- vendor/botan/siphash/siphash.odin | 2 +- vendor/botan/skein512/skein512.odin | 2 +- vendor/botan/sm3/sm3.odin | 2 +- vendor/botan/streebog/streebog.odin | 2 +- vendor/botan/tiger/tiger.odin | 2 +- vendor/botan/whirlpool/whirlpool.odin | 2 +- vendor/commonmark/cmark.odin | 2 +- vendor/commonmark/doc.odin | 2 +- vendor/ggpo/ggpo.odin | 2 +- vendor/zlib/zlib.odin | 2 +- 27 files changed, 53 insertions(+), 46 deletions(-) diff --git a/examples/all/all_vendor.odin b/examples/all/all_vendor.odin index 7da2e501b..11fcfeac6 100644 --- a/examples/all/all_vendor.odin +++ b/examples/all/all_vendor.odin @@ -1,29 +1,32 @@ package all -import botan "vendor:botan" -import ENet "vendor:ENet" -import ggpo "vendor:ggpo" -import gl "vendor:OpenGL" -import glfw "vendor:glfw" -import microui "vendor:microui" -import miniaudio "vendor:miniaudio" -import PM "vendor:portmidi" -import rl "vendor:raylib" -import exr "vendor:OpenEXRCore" +import botan "vendor:botan" +import cm "vendor:commonmark" +import ENet "vendor:ENet" +import ggpo "vendor:ggpo" +import gl "vendor:OpenGL" +import glfw "vendor:glfw" +import microui "vendor:microui" +import miniaudio "vendor:miniaudio" +import PM "vendor:portmidi" +import rl "vendor:raylib" +import exr "vendor:OpenEXRCore" +import zlib "vendor:zlib" -import SDL "vendor:sdl2" -import SDLNet "vendor:sdl2/net" -import IMG "vendor:sdl2/image" -import MIX "vendor:sdl2/mixer" -import TTF "vendor:sdl2/ttf" +import SDL "vendor:sdl2" +import SDLNet "vendor:sdl2/net" +import IMG "vendor:sdl2/image" +import MIX "vendor:sdl2/mixer" +import TTF "vendor:sdl2/ttf" -import vk "vendor:vulkan" +import vk "vendor:vulkan" -import NS "vendor:darwin/Foundation" -import MTL "vendor:darwin/Metal" -import CA "vendor:darwin/QuartzCore" +import NS "vendor:darwin/Foundation" +import MTL "vendor:darwin/Metal" +import CA "vendor:darwin/QuartzCore" _ :: botan +_ :: cm _ :: ENet _ :: ggpo _ :: gl @@ -33,12 +36,16 @@ _ :: miniaudio _ :: PM _ :: rl _ :: exr +_ :: zlib + _ :: SDL _ :: SDLNet _ :: IMG _ :: MIX _ :: TTF + _ :: vk + _ :: NS _ :: MTL -_ :: CA +_ :: CA \ No newline at end of file diff --git a/vendor/OpenGL/constants.odin b/vendor/OpenGL/constants.odin index c7d8b9542..798cf2cde 100644 --- a/vendor/OpenGL/constants.odin +++ b/vendor/OpenGL/constants.odin @@ -1,4 +1,4 @@ -package odin_gl +package vendor_gl GL_DEBUG :: #config(GL_DEBUG, ODIN_DEBUG) diff --git a/vendor/OpenGL/enums.odin b/vendor/OpenGL/enums.odin index 3802b7e76..8583ce4fb 100644 --- a/vendor/OpenGL/enums.odin +++ b/vendor/OpenGL/enums.odin @@ -1,4 +1,4 @@ -package odin_gl +package vendor_gl GL_Enum :: enum u64 { FALSE = 0, diff --git a/vendor/OpenGL/helpers.odin b/vendor/OpenGL/helpers.odin index 61c68ace5..900710f3d 100644 --- a/vendor/OpenGL/helpers.odin +++ b/vendor/OpenGL/helpers.odin @@ -1,4 +1,4 @@ -package odin_gl +package vendor_gl // Helper for loading shaders into a program diff --git a/vendor/OpenGL/impl.odin b/vendor/OpenGL/impl.odin index e9adda4bd..783b509a0 100644 --- a/vendor/OpenGL/impl.odin +++ b/vendor/OpenGL/impl.odin @@ -1,4 +1,4 @@ -package odin_gl +package vendor_gl loaded_up_to: [2]int loaded_up_to_major := 0 diff --git a/vendor/OpenGL/wrappers.odin b/vendor/OpenGL/wrappers.odin index ba6ff369c..46511c7d7 100644 --- a/vendor/OpenGL/wrappers.odin +++ b/vendor/OpenGL/wrappers.odin @@ -1,4 +1,4 @@ -package odin_gl +package vendor_gl #assert(size_of(bool) == size_of(u8)) diff --git a/vendor/botan/bindings/botan.odin b/vendor/botan/bindings/botan.odin index a12706e95..2217eda5a 100644 --- a/vendor/botan/bindings/botan.odin +++ b/vendor/botan/bindings/botan.odin @@ -1,4 +1,4 @@ -package botan_bindings +package vendor_botan /* Copyright 2021 zhibog diff --git a/vendor/botan/blake2b/blake2b.odin b/vendor/botan/blake2b/blake2b.odin index 67238ec74..18fd89bd8 100644 --- a/vendor/botan/blake2b/blake2b.odin +++ b/vendor/botan/blake2b/blake2b.odin @@ -1,4 +1,4 @@ -package botan_blake2b +package vendor_botan_blake2b /* Copyright 2021 zhibog diff --git a/vendor/botan/gost/gost.odin b/vendor/botan/gost/gost.odin index 6bf1c5b97..bccc4d463 100644 --- a/vendor/botan/gost/gost.odin +++ b/vendor/botan/gost/gost.odin @@ -1,4 +1,4 @@ -package gost +package vendor_gost /* Copyright 2021 zhibog diff --git a/vendor/botan/keccak/keccak.odin b/vendor/botan/keccak/keccak.odin index 28e7374ba..4c82edc92 100644 --- a/vendor/botan/keccak/keccak.odin +++ b/vendor/botan/keccak/keccak.odin @@ -1,4 +1,4 @@ -package keccak +package vendor_keccak /* Copyright 2021 zhibog diff --git a/vendor/botan/md4/md4.odin b/vendor/botan/md4/md4.odin index 174676a82..ddb7d5940 100644 --- a/vendor/botan/md4/md4.odin +++ b/vendor/botan/md4/md4.odin @@ -1,4 +1,4 @@ -package md4 +package vendor_md4 /* Copyright 2021 zhibog diff --git a/vendor/botan/md5/md5.odin b/vendor/botan/md5/md5.odin index 01e099062..9ea489669 100644 --- a/vendor/botan/md5/md5.odin +++ b/vendor/botan/md5/md5.odin @@ -1,4 +1,4 @@ -package md5 +package vendor_md5 /* Copyright 2021 zhibog diff --git a/vendor/botan/ripemd/ripemd.odin b/vendor/botan/ripemd/ripemd.odin index 230e4c0d9..33f0ba692 100644 --- a/vendor/botan/ripemd/ripemd.odin +++ b/vendor/botan/ripemd/ripemd.odin @@ -1,4 +1,4 @@ -package ripemd +package vendor_ripemd /* Copyright 2021 zhibog diff --git a/vendor/botan/sha1/sha1.odin b/vendor/botan/sha1/sha1.odin index 1f74c8fc2..96520f09e 100644 --- a/vendor/botan/sha1/sha1.odin +++ b/vendor/botan/sha1/sha1.odin @@ -1,4 +1,4 @@ -package sha1 +package vendor_sha1 /* Copyright 2021 zhibog diff --git a/vendor/botan/sha2/sha2.odin b/vendor/botan/sha2/sha2.odin index 4c201cc26..d583298ee 100644 --- a/vendor/botan/sha2/sha2.odin +++ b/vendor/botan/sha2/sha2.odin @@ -1,4 +1,4 @@ -package sha2 +package vendor_sha2 /* Copyright 2021 zhibog diff --git a/vendor/botan/sha3/sha3.odin b/vendor/botan/sha3/sha3.odin index 4c1b87dda..5f82be49c 100644 --- a/vendor/botan/sha3/sha3.odin +++ b/vendor/botan/sha3/sha3.odin @@ -1,4 +1,4 @@ -package sha3 +package vendor_sha3 /* Copyright 2021 zhibog diff --git a/vendor/botan/shake/shake.odin b/vendor/botan/shake/shake.odin index f1023b90e..b973fee24 100644 --- a/vendor/botan/shake/shake.odin +++ b/vendor/botan/shake/shake.odin @@ -1,4 +1,4 @@ -package shake +package vendor_shake /* Copyright 2021 zhibog diff --git a/vendor/botan/siphash/siphash.odin b/vendor/botan/siphash/siphash.odin index c2b7b64f4..81ac71cd5 100644 --- a/vendor/botan/siphash/siphash.odin +++ b/vendor/botan/siphash/siphash.odin @@ -1,4 +1,4 @@ -package siphash +package vendor_siphash /* Copyright 2022 zhibog diff --git a/vendor/botan/skein512/skein512.odin b/vendor/botan/skein512/skein512.odin index 4fed07853..41ffaefff 100644 --- a/vendor/botan/skein512/skein512.odin +++ b/vendor/botan/skein512/skein512.odin @@ -1,4 +1,4 @@ -package skein512 +package vendor_skein512 /* Copyright 2021 zhibog diff --git a/vendor/botan/sm3/sm3.odin b/vendor/botan/sm3/sm3.odin index 75cf40679..52fe9a488 100644 --- a/vendor/botan/sm3/sm3.odin +++ b/vendor/botan/sm3/sm3.odin @@ -1,4 +1,4 @@ -package sm3 +package vendor_sm3 /* Copyright 2021 zhibog diff --git a/vendor/botan/streebog/streebog.odin b/vendor/botan/streebog/streebog.odin index 20b4e6adb..fdc07923f 100644 --- a/vendor/botan/streebog/streebog.odin +++ b/vendor/botan/streebog/streebog.odin @@ -1,4 +1,4 @@ -package streebog +package vendor_streebog /* Copyright 2021 zhibog diff --git a/vendor/botan/tiger/tiger.odin b/vendor/botan/tiger/tiger.odin index f24dc7019..3d7e064d0 100644 --- a/vendor/botan/tiger/tiger.odin +++ b/vendor/botan/tiger/tiger.odin @@ -1,4 +1,4 @@ -package tiger +package vendor_tiger /* Copyright 2021 zhibog diff --git a/vendor/botan/whirlpool/whirlpool.odin b/vendor/botan/whirlpool/whirlpool.odin index a7c1abbe8..c32ff20c0 100644 --- a/vendor/botan/whirlpool/whirlpool.odin +++ b/vendor/botan/whirlpool/whirlpool.odin @@ -1,4 +1,4 @@ -package whirlpool +package vendor_whirlpool /* Copyright 2021 zhibog diff --git a/vendor/commonmark/cmark.odin b/vendor/commonmark/cmark.odin index 313435870..fba12436d 100644 --- a/vendor/commonmark/cmark.odin +++ b/vendor/commonmark/cmark.odin @@ -4,7 +4,7 @@ Original authors: John MacFarlane, Vicent Marti, Kārlis Gaņģis, Nick Wellnhofer. See LICENSE for license details. */ -package commonmark +package vendor_commonmark import "core:c" import "core:c/libc" diff --git a/vendor/commonmark/doc.odin b/vendor/commonmark/doc.odin index 24f6780f3..f37dc8153 100644 --- a/vendor/commonmark/doc.odin +++ b/vendor/commonmark/doc.odin @@ -5,7 +5,7 @@ Original authors: John MacFarlane, Vicent Marti, Kārlis Gaņģis, Nick Wellnhofer. See LICENSE for license details. */ -package commonmark +package vendor_commonmark /* Parsing - Simple interface: diff --git a/vendor/ggpo/ggpo.odin b/vendor/ggpo/ggpo.odin index c727e4a67..d17c33638 100644 --- a/vendor/ggpo/ggpo.odin +++ b/vendor/ggpo/ggpo.odin @@ -1,4 +1,4 @@ -package ggpo +package vendor_ggpo foreign import lib "GGPO.lib" diff --git a/vendor/zlib/zlib.odin b/vendor/zlib/zlib.odin index f5357d28e..8a046a401 100644 --- a/vendor/zlib/zlib.odin +++ b/vendor/zlib/zlib.odin @@ -1,4 +1,4 @@ -package zlib +package vendor_zlib import "core:c" From 3455e5690ce8d09eda37bff8478dadae73160af1 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Wed, 21 Sep 2022 16:54:21 +0200 Subject: [PATCH 3/6] [examples/all] Make OS-specific for zlib, cmark --- examples/all/all_vendor.odin | 4 ---- examples/all/all_vendor_cmark.odin | 5 +++++ examples/all/all_vendor_zlib.odin | 5 +++++ 3 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 examples/all/all_vendor_cmark.odin create mode 100644 examples/all/all_vendor_zlib.odin diff --git a/examples/all/all_vendor.odin b/examples/all/all_vendor.odin index 11fcfeac6..22be12ef9 100644 --- a/examples/all/all_vendor.odin +++ b/examples/all/all_vendor.odin @@ -1,7 +1,6 @@ package all import botan "vendor:botan" -import cm "vendor:commonmark" import ENet "vendor:ENet" import ggpo "vendor:ggpo" import gl "vendor:OpenGL" @@ -11,7 +10,6 @@ import miniaudio "vendor:miniaudio" import PM "vendor:portmidi" import rl "vendor:raylib" import exr "vendor:OpenEXRCore" -import zlib "vendor:zlib" import SDL "vendor:sdl2" import SDLNet "vendor:sdl2/net" @@ -26,7 +24,6 @@ import MTL "vendor:darwin/Metal" import CA "vendor:darwin/QuartzCore" _ :: botan -_ :: cm _ :: ENet _ :: ggpo _ :: gl @@ -36,7 +33,6 @@ _ :: miniaudio _ :: PM _ :: rl _ :: exr -_ :: zlib _ :: SDL _ :: SDLNet diff --git a/examples/all/all_vendor_cmark.odin b/examples/all/all_vendor_cmark.odin new file mode 100644 index 000000000..5faf47efc --- /dev/null +++ b/examples/all/all_vendor_cmark.odin @@ -0,0 +1,5 @@ +//+build windows, linux +package all + +import cm "vendor:commonmark" +_ :: cm diff --git a/examples/all/all_vendor_zlib.odin b/examples/all/all_vendor_zlib.odin new file mode 100644 index 000000000..6004bed50 --- /dev/null +++ b/examples/all/all_vendor_zlib.odin @@ -0,0 +1,5 @@ +//+build windows, linux +package all + +import zlib "vendor:zlib" +_ :: zlib From d469c2da48594d1dfea99fea2a4bb1391809c055 Mon Sep 17 00:00:00 2001 From: Vitaly Kravchenko Date: Wed, 21 Sep 2022 17:31:37 +0100 Subject: [PATCH 4/6] Fix indent --- core/os/os.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/os/os.odin b/core/os/os.odin index 5e71e720e..1d8845da7 100644 --- a/core/os/os.odin +++ b/core/os/os.odin @@ -120,7 +120,7 @@ read_entire_file_from_handle :: proc(fd: Handle, allocator := context.allocator) data = make([]byte, int(length), allocator) if data == nil { - return nil, false + return nil, false } bytes_read, read_err := read_full(fd, data) From 4b4c2a2abd71dff2dc865df815f25318700e0929 Mon Sep 17 00:00:00 2001 From: 13419596 <13419596@hotmail.com> Date: Wed, 21 Sep 2022 17:15:28 -0500 Subject: [PATCH 5/6] Correcting libc pow bindings Adding tests that libc pow(f) functions - have two arguments - behave as expected for simple inputs. --- core/c/libc/complex.odin | 4 +- tests/core/c/libc/test_core_libc.odin | 37 ++++++++ .../c/libc/test_core_libc_complex_pow.odin | 91 +++++++++++++++++++ 3 files changed, 130 insertions(+), 2 deletions(-) create mode 100644 tests/core/c/libc/test_core_libc.odin create mode 100644 tests/core/c/libc/test_core_libc_complex_pow.odin diff --git a/core/c/libc/complex.odin b/core/c/libc/complex.odin index 22c422cce..7f2ca37ae 100644 --- a/core/c/libc/complex.odin +++ b/core/c/libc/complex.odin @@ -49,8 +49,8 @@ foreign libc { // 7.3.8 Power and absolute-value functions cabs :: proc(z: complex_double) -> complex_double --- cabsf :: proc(z: complex_float) -> complex_float --- - cpow :: proc(z: complex_double) -> complex_double --- - cpowf :: proc(z: complex_float) -> complex_float --- + cpow :: proc(x, y: complex_double) -> complex_double --- + cpowf :: proc(x, y: complex_float) -> complex_float --- csqrt :: proc(z: complex_double) -> complex_double --- csqrtf :: proc(z: complex_float) -> complex_float --- diff --git a/tests/core/c/libc/test_core_libc.odin b/tests/core/c/libc/test_core_libc.odin new file mode 100644 index 000000000..6ad37ac6d --- /dev/null +++ b/tests/core/c/libc/test_core_libc.odin @@ -0,0 +1,37 @@ +package test_core_libc + +import "core:fmt" +import "core:os" +import "core:strings" +import "core:testing" + +TEST_count := 0 +TEST_fail := 0 + +when ODIN_TEST { + expect :: testing.expect + log :: testing.log +} else { + expect :: proc(t: ^testing.T, condition: bool, message: string, loc := #caller_location) { + TEST_count += 1 + if !condition { + TEST_fail += 1 + fmt.printf("[%v] %v\n", loc, message) + return + } + } + log :: proc(t: ^testing.T, v: any, loc := #caller_location) { + fmt.printf("[%v] ", loc) + fmt.printf("log: %v\n", v) + } +} + +main :: proc() { + t := testing.T{} + test_libc_complex(&t) + + fmt.printf("%v/%v tests successful.\n", TEST_count - TEST_fail, TEST_count) + if TEST_fail > 0 { + os.exit(1) + } +} diff --git a/tests/core/c/libc/test_core_libc_complex_pow.odin b/tests/core/c/libc/test_core_libc_complex_pow.odin new file mode 100644 index 000000000..90928794c --- /dev/null +++ b/tests/core/c/libc/test_core_libc_complex_pow.odin @@ -0,0 +1,91 @@ +package test_core_libc + +import "core:testing" +import "core:fmt" +import "core:c/libc" + +reldiff :: proc(lhs, rhs: $T) -> f64 { + if lhs == rhs { + return 0. + } + amean := f64((abs(lhs)+abs(rhs)) / 2.) + adiff := f64(abs(lhs - rhs)) + out := adiff / amean + return out +} + +isclose :: proc(lhs, rhs: $T, rtol:f64 = 1e-12, atol:f64 = 1e-12) -> bool { + adiff := f64(abs(lhs - rhs)) + if adiff < atol { + return true + } + rdiff := reldiff(lhs, rhs) + if rdiff < rtol { + return true + } + fmt.printf("not close -- lhs:%v rhs:%v -- adiff:%e rdiff:%e\n",lhs, rhs, adiff, rdiff) + return false +} + +// declaring here so they can be used as function pointers + +libc_pow :: proc(x, y: libc.complex_double) -> libc.complex_double { + return libc.pow(x,y) +} + +libc_powf :: proc(x, y: libc.complex_float) -> libc.complex_float { + return libc.pow(x,y) +} + +@test +test_libc_complex :: proc(t: ^testing.T) { + test_libc_pow_binding(t, libc.complex_double, f64, libc_pow, 1e-12, 1e-12) + // f32 needs more atol for comparing values close to zero + test_libc_pow_binding(t, libc.complex_float, f32, libc_powf, 1e-12, 1e-5) +} + +@test +test_libc_pow_binding :: proc(t: ^testing.T, $LIBC_COMPLEX:typeid, $F:typeid, pow: proc(LIBC_COMPLEX, LIBC_COMPLEX) -> LIBC_COMPLEX, + rtol: f64, atol: f64) { + // Tests that c/libc/pow(f) functions have two arguments and that the function works as expected for simple inputs + { + // tests 2^n + expected_real : F = 1./16. + expected_imag : F = 0. + complex_base := LIBC_COMPLEX(complex(F(2.), F(0.))) + for n in -4..=4 { + complex_power := LIBC_COMPLEX(complex(F(n), F(0.))) + result := pow(complex_base, complex_power) + expect(t, isclose(expected_real, F(real(result)), rtol, atol), fmt.tprintf("ftype:%T, n:%v reldiff(%v, re(%v)) is greater than specified rtol:%e", F{}, n, expected_real, result, rtol)) + expect(t, isclose(expected_imag, F(imag(result)), rtol, atol), fmt.tprintf("ftype:%T, n:%v reldiff(%v, im(%v)) is greater than specified rtol:%e", F{}, n, expected_imag, result, rtol)) + expected_real *= 2 + } + } + { + // tests (2i)^n + value : F = 1/16. + expected_real, expected_imag : F + complex_base := LIBC_COMPLEX(complex(F(0.), F(2.))) + for n in -4..=4 { + complex_power := LIBC_COMPLEX(complex(F(n), F(0.))) + result := pow(complex_base, complex_power) + switch n%%4 { + case 0: + expected_real = value + expected_imag = 0. + case 1: + expected_real = 0. + expected_imag = value + case 2: + expected_real = -value + expected_imag = 0. + case 3: + expected_real = 0. + expected_imag = -value + } + expect(t, isclose(expected_real, F(real(result)), rtol, atol), fmt.tprintf("ftype:%T, n:%v reldiff(%v, re(%v)) is greater than specified rtol:%e", F{}, n, expected_real, result, rtol)) + expect(t, isclose(expected_imag, F(imag(result)), rtol, atol), fmt.tprintf("ftype:%T, n:%v reldiff(%v, im(%v)) is greater than specified rtol:%e", F{}, n, expected_imag, result, rtol)) + value *= 2 + } + } +} \ No newline at end of file From b7abacfa7ef6bbeb9434673b62f47a136ba34737 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Thu, 22 Sep 2022 01:01:40 +0200 Subject: [PATCH 6/6] Enable libc complex test. --- tests/core/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/core/Makefile b/tests/core/Makefile index 5c2918e30..92f12cbe7 100644 --- a/tests/core/Makefile +++ b/tests/core/Makefile @@ -2,7 +2,7 @@ ODIN=../../odin PYTHON=$(shell which python3) 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 i18n_test + math_test linalg_glsl_math_test filepath_test reflect_test os_exit_test i18n_test c_libc_test download_test_assets: $(PYTHON) download_assets.py @@ -47,4 +47,7 @@ os_exit_test: $(ODIN) run os/test_core_os_exit.odin -file -out:test_core_os_exit && exit 1 || exit 0 i18n_test: - $(ODIN) run text/i18n -out:test_core_i18n \ No newline at end of file + $(ODIN) run text/i18n -out:test_core_i18n + +c_libc_test: + $(ODIN) run c/libc -out:test_core_libc \ No newline at end of file