build: wire math sources and tests
This commit is contained in:
+39
-4
@@ -28,7 +28,9 @@ AM_CFLAGS = @VLIBC_CFLAGS@
|
||||
# getitimer/setitimer/utimes.c + sys/time.h —
|
||||
# all wired), src/stdio (todo 15-18 FILE core
|
||||
# + popen; vfprintf.c/vfprintf_float.c now
|
||||
# wired with the printf test)
|
||||
# wired with the printf test),
|
||||
# src/math (todo 39-42 basic set — all L1,
|
||||
# wired with the consolidated math test)
|
||||
# todo 39-42 src/math todo 50 src/multibyte
|
||||
# todo 11-14 src/stdlib todo 43 src/complex todo 53-54 src/regex
|
||||
# todo 15-18 src/stdio todo 9,51 src/ctype todo 57-58 src/network
|
||||
@@ -184,7 +186,31 @@ VLIBC_CORE_SRCS = \
|
||||
src/time/strftime.c \
|
||||
src/mman/mmap.c \
|
||||
src/passwd/passwd.c \
|
||||
src/group/group.c
|
||||
src/group/group.c \
|
||||
src/math/ceil.c \
|
||||
src/math/copysign.c \
|
||||
src/math/fabs.c \
|
||||
src/math/fdim.c \
|
||||
src/math/floor.c \
|
||||
src/math/fmax.c \
|
||||
src/math/fmin.c \
|
||||
src/math/fmod.c \
|
||||
src/math/frexp.c \
|
||||
src/math/ilogb.c \
|
||||
src/math/ldexp.c \
|
||||
src/math/llrint.c \
|
||||
src/math/llround.c \
|
||||
src/math/logb.c \
|
||||
src/math/lrint.c \
|
||||
src/math/lround.c \
|
||||
src/math/modf.c \
|
||||
src/math/nearbyint.c \
|
||||
src/math/remainder.c \
|
||||
src/math/remquo.c \
|
||||
src/math/rint.c \
|
||||
src/math/round.c \
|
||||
src/math/scalbn.c \
|
||||
src/math/trunc.c
|
||||
|
||||
# Profile-gated sources, EXISTING gates preserved (strlcpy/strlcat stay L2
|
||||
# BSD, strcasestr stays L3 GNU — NOT promoted). Task 8/9 additions: stpcpy.c
|
||||
@@ -263,6 +289,7 @@ vlibc_include_HEADERS = \
|
||||
include/stdlib.h \
|
||||
include/stdnoreturn.h \
|
||||
include/tar.h \
|
||||
include/math.h \
|
||||
include/tgmath.h \
|
||||
include/threads.h \
|
||||
include/uchar.h \
|
||||
@@ -428,7 +455,7 @@ check_PROGRAMS = test_syscall test_strerror test_setjmp test_headers \
|
||||
test_poll test_time test_scanf test_getline \
|
||||
test_systime test_printf test_stdio test_unistd_file \
|
||||
test_mman test_statvfs test_times test_syslog test_pwdgrp \
|
||||
test_unistd_misc
|
||||
test_unistd_misc test_math_basic
|
||||
|
||||
test_syscall_SOURCES = tests/syscall_test.c
|
||||
test_syscall_CFLAGS = $(VLIBC_TEST_CFLAGS)
|
||||
@@ -622,6 +649,12 @@ test_unistd_misc_DEPENDENCIES = crt1.o libvlibc-check.a
|
||||
test_unistd_misc_LINK = $(VLIBC_TEST_LINK)
|
||||
test_unistd_misc_LDADD = $(VLIBC_TEST_LDADD)
|
||||
|
||||
test_math_basic_SOURCES = tests/test_math_basic.c
|
||||
test_math_basic_CFLAGS = $(VLIBC_TEST_CFLAGS)
|
||||
test_math_basic_DEPENDENCIES = crt1.o libvlibc-check.a
|
||||
test_math_basic_LINK = $(VLIBC_TEST_LINK)
|
||||
test_math_basic_LDADD = $(VLIBC_TEST_LDADD)
|
||||
|
||||
# test_startup's default mode exits 42 by design, so it is NOT a bare TESTS
|
||||
# entry; tests/startup_modes.sh runs its full mode matrix and the -f failure
|
||||
# scenarios of the other binaries. test_malloc/test_string/test_ctype/
|
||||
@@ -638,6 +671,7 @@ TESTS = test_syscall test_strerror test_setjmp test_headers \
|
||||
test_systime test_printf test_stdio test_unistd_file \
|
||||
test_mman test_statvfs test_times test_syslog test_pwdgrp \
|
||||
test_unistd_misc \
|
||||
test_math_basic \
|
||||
tests/startup_modes.sh
|
||||
|
||||
CLEANFILES = crt1.o libvlibc-check.a $(VLIBC_CHECK_OBJECTS)
|
||||
@@ -665,4 +699,5 @@ EXTRA_DIST = \
|
||||
src/stdio/stdio_impl.h \
|
||||
src/stdio/vfprintf_float.c \
|
||||
src/time/time_impl.h \
|
||||
src/unistd/unistd_impl.h
|
||||
src/unistd/unistd_impl.h \
|
||||
src/math/math_impl.h
|
||||
|
||||
Reference in New Issue
Block a user