2020-06-15 14:18:57 +00:00
|
|
|
#-*-mode:makefile-gmake;indent-tabs-mode:t;tab-width:8;coding:utf-8-*-┐
|
|
|
|
#───vi: set et ft=make ts=8 tw=8 fenc=utf-8 :vi───────────────────────┘
|
|
|
|
# Description:
|
|
|
|
# Cosmopolitan Testing Library.
|
|
|
|
|
|
|
|
PKGS += LIBC_TESTLIB
|
|
|
|
|
|
|
|
#───────────────────────────────────────────────────────────────────────────────
|
|
|
|
|
|
|
|
LIBC_TESTLIB_ARTIFACTS += LIBC_TESTLIB_A
|
|
|
|
LIBC_TESTLIB = $(LIBC_TESTLIB_A_DEPS) $(LIBC_TESTLIB_A)
|
|
|
|
LIBC_TESTLIB_A = o/$(MODE)/libc/testlib/testlib.a
|
|
|
|
LIBC_TESTLIB_A_CHECKS = $(LIBC_TESTLIB_A).pkg
|
|
|
|
|
|
|
|
LIBC_TESTLIB_A_ASSETS = \
|
Make improvements to redbean
The following Lua APIs have been added:
- IsDaemon() → bool
- ProgramPidPath(str)
The following Lua hooks have been added:
- OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
- OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
- OnProcessDestroy(pid:int)
- OnServerStart()
- OnServerStop()
- OnWorkerStart()
- OnWorkerStop()
redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.
This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.
This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 22:02:03 +00:00
|
|
|
libc/testlib/blocktronics.txt \
|
2021-06-15 13:24:46 +00:00
|
|
|
libc/testlib/hyperion.txt \
|
Make improvements to redbean
The following Lua APIs have been added:
- IsDaemon() → bool
- ProgramPidPath(str)
The following Lua hooks have been added:
- OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
- OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
- OnProcessDestroy(pid:int)
- OnServerStart()
- OnServerStop()
- OnWorkerStart()
- OnWorkerStop()
redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.
This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.
This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 22:02:03 +00:00
|
|
|
libc/testlib/moby.txt
|
2020-06-15 14:18:57 +00:00
|
|
|
|
|
|
|
LIBC_TESTLIB_A_HDRS = \
|
|
|
|
libc/testlib/bench.h \
|
2021-06-15 13:24:46 +00:00
|
|
|
libc/testlib/blocktronics.h \
|
Make improvements to redbean
The following Lua APIs have been added:
- IsDaemon() → bool
- ProgramPidPath(str)
The following Lua hooks have been added:
- OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
- OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
- OnProcessDestroy(pid:int)
- OnServerStart()
- OnServerStop()
- OnWorkerStart()
- OnWorkerStop()
redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.
This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.
This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 22:02:03 +00:00
|
|
|
libc/testlib/ezbench.h \
|
2021-09-07 02:24:10 +00:00
|
|
|
libc/testlib/fastrandomstring.h \
|
2020-06-15 14:18:57 +00:00
|
|
|
libc/testlib/hyperion.h \
|
Make improvements to redbean
The following Lua APIs have been added:
- IsDaemon() → bool
- ProgramPidPath(str)
The following Lua hooks have been added:
- OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
- OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
- OnProcessDestroy(pid:int)
- OnServerStart()
- OnServerStop()
- OnWorkerStart()
- OnWorkerStop()
redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.
This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.
This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 22:02:03 +00:00
|
|
|
libc/testlib/moby.h \
|
2020-06-15 14:18:57 +00:00
|
|
|
libc/testlib/testlib.h
|
|
|
|
|
|
|
|
LIBC_TESTLIB_A_SRCS_S = \
|
|
|
|
libc/testlib/bench.S \
|
Make improvements to redbean
The following Lua APIs have been added:
- IsDaemon() → bool
- ProgramPidPath(str)
The following Lua hooks have been added:
- OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
- OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
- OnProcessDestroy(pid:int)
- OnServerStart()
- OnServerStop()
- OnWorkerStart()
- OnWorkerStop()
redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.
This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.
This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 22:02:03 +00:00
|
|
|
libc/testlib/blocktronics.S \
|
2020-06-15 14:18:57 +00:00
|
|
|
libc/testlib/combo.S \
|
|
|
|
libc/testlib/fixture.S \
|
|
|
|
libc/testlib/hyperion.S \
|
Make improvements to redbean
The following Lua APIs have been added:
- IsDaemon() → bool
- ProgramPidPath(str)
The following Lua hooks have been added:
- OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
- OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
- OnProcessDestroy(pid:int)
- OnServerStart()
- OnServerStop()
- OnWorkerStart()
- OnWorkerStop()
redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.
This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.
This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 22:02:03 +00:00
|
|
|
libc/testlib/moby.S \
|
2020-06-15 14:18:57 +00:00
|
|
|
libc/testlib/testcase.S \
|
|
|
|
libc/testlib/thrashcodecache.S \
|
2021-09-28 05:58:51 +00:00
|
|
|
libc/testlib/polluteregisters.S \
|
2020-06-15 14:18:57 +00:00
|
|
|
libc/testlib/thunks/assert_eq.S \
|
|
|
|
libc/testlib/thunks/assert_false.S \
|
|
|
|
libc/testlib/thunks/assert_ne.S \
|
|
|
|
libc/testlib/thunks/assert_true.S \
|
|
|
|
libc/testlib/thunks/expect_eq.S \
|
|
|
|
libc/testlib/thunks/expect_false.S \
|
|
|
|
libc/testlib/thunks/expect_ne.S \
|
|
|
|
libc/testlib/thunks/expect_true.S \
|
|
|
|
libc/testlib/thunks/free.S \
|
|
|
|
libc/testlib/thunks/jump.S
|
|
|
|
|
|
|
|
LIBC_TESTLIB_A_SRCS_C = \
|
|
|
|
libc/testlib/almostequallongdouble.c \
|
Make improvements to redbean
The following Lua APIs have been added:
- IsDaemon() → bool
- ProgramPidPath(str)
The following Lua hooks have been added:
- OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
- OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
- OnProcessDestroy(pid:int)
- OnServerStart()
- OnServerStop()
- OnWorkerStart()
- OnWorkerStop()
redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.
This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.
This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 22:02:03 +00:00
|
|
|
libc/testlib/benchrunner.c \
|
2021-09-28 05:58:51 +00:00
|
|
|
libc/testlib/getcore.c \
|
Unbloat build config
- 10.5% reduction of o//depend dependency graph
- 8.8% reduction in latency of make command
- Fix issue with temporary file cleanup
There's a new -w option in compile.com that turns off the recent
Landlock output path workaround for "good commands" which do not
unlink() the output file like GNU tooling does.
Our new GNU Make unveil sandboxing appears to have zero overhead
in the grand scheme of things. Full builds are pretty fast since
the only thing that's actually slowed us down is probably libcxx
make -j16 MODE=rel
RL: took 85,732,063µs wall time
RL: ballooned to 323,612kb in size
RL: needed 828,560,521µs cpu (11% kernel)
RL: caused 39,080,670 page faults (99% memcpy)
RL: 350,073 context switches (72% consensual)
RL: performed 0 reads and 11,494,960 write i/o operations
pledge() and unveil() no longer consider ENOSYS to be an error.
These functions have also been added to Python's cosmo module.
This change also removes some WIN32 APIs and System Five magnums
which we're not using and it's doubtful anyone else would be too
2022-08-10 08:32:17 +00:00
|
|
|
libc/testlib/geterrno.c \
|
|
|
|
libc/testlib/seterrno.c \
|
|
|
|
libc/testlib/strerror.c \
|
2021-09-28 05:58:51 +00:00
|
|
|
libc/testlib/getinterrupts.c \
|
|
|
|
libc/testlib/ezbenchwarn.c \
|
2020-06-15 14:18:57 +00:00
|
|
|
libc/testlib/binequals.c \
|
2021-09-28 05:58:51 +00:00
|
|
|
libc/testlib/quota.c \
|
2020-08-25 11:23:25 +00:00
|
|
|
libc/testlib/clearxmmregisters.c \
|
Make improvements to redbean
The following Lua APIs have been added:
- IsDaemon() → bool
- ProgramPidPath(str)
The following Lua hooks have been added:
- OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
- OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
- OnProcessDestroy(pid:int)
- OnServerStart()
- OnServerStop()
- OnWorkerStart()
- OnWorkerStop()
redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.
This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.
This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 22:02:03 +00:00
|
|
|
libc/testlib/comborunner.c \
|
|
|
|
libc/testlib/contains.c \
|
|
|
|
libc/testlib/endswith.c \
|
2021-09-28 05:58:51 +00:00
|
|
|
libc/testlib/yield.c \
|
Make improvements to redbean
The following Lua APIs have been added:
- IsDaemon() → bool
- ProgramPidPath(str)
The following Lua hooks have been added:
- OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
- OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
- OnProcessDestroy(pid:int)
- OnServerStart()
- OnServerStop()
- OnWorkerStart()
- OnWorkerStop()
redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.
This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.
This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 22:02:03 +00:00
|
|
|
libc/testlib/ezbenchcontrol.c \
|
|
|
|
libc/testlib/ezbenchreport.c \
|
|
|
|
libc/testlib/fixturerunner.c \
|
2020-06-15 14:18:57 +00:00
|
|
|
libc/testlib/formatbinaryasglyphs.c \
|
|
|
|
libc/testlib/formatbinaryashex.c \
|
Make improvements to redbean
The following Lua APIs have been added:
- IsDaemon() → bool
- ProgramPidPath(str)
The following Lua hooks have been added:
- OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
- OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
- OnProcessDestroy(pid:int)
- OnServerStart()
- OnServerStop()
- OnWorkerStart()
- OnWorkerStop()
redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.
This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.
This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 22:02:03 +00:00
|
|
|
libc/testlib/formatbool.c \
|
|
|
|
libc/testlib/formatfloat.c \
|
2020-06-15 14:18:57 +00:00
|
|
|
libc/testlib/formatint.c \
|
Make improvements to redbean
The following Lua APIs have been added:
- IsDaemon() → bool
- ProgramPidPath(str)
The following Lua hooks have been added:
- OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
- OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
- OnProcessDestroy(pid:int)
- OnServerStart()
- OnServerStop()
- OnWorkerStart()
- OnWorkerStop()
redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.
This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.
This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 22:02:03 +00:00
|
|
|
libc/testlib/formatrange.c \
|
2020-06-15 14:18:57 +00:00
|
|
|
libc/testlib/formatstr.c \
|
Make improvements to redbean
The following Lua APIs have been added:
- IsDaemon() → bool
- ProgramPidPath(str)
The following Lua hooks have been added:
- OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
- OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
- OnProcessDestroy(pid:int)
- OnServerStart()
- OnServerStop()
- OnWorkerStart()
- OnWorkerStop()
redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.
This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.
This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 22:02:03 +00:00
|
|
|
libc/testlib/globals.c \
|
|
|
|
libc/testlib/hexequals.c \
|
|
|
|
libc/testlib/incrementfailed.c \
|
2020-06-15 14:18:57 +00:00
|
|
|
libc/testlib/shoulddebugbreak.c \
|
|
|
|
libc/testlib/showerror.c \
|
|
|
|
libc/testlib/startswith.c \
|
|
|
|
libc/testlib/strcaseequals.c \
|
Make improvements to redbean
The following Lua APIs have been added:
- IsDaemon() → bool
- ProgramPidPath(str)
The following Lua hooks have been added:
- OnClientConnection(ip:int,port:int,serverip:int,serverport:int) → bool
- OnProcessCreate(pid:int,ip:int,port:int,serverip:int,serverport:int)
- OnProcessDestroy(pid:int)
- OnServerStart()
- OnServerStop()
- OnWorkerStart()
- OnWorkerStop()
redbean now does a better job at applying gzip on the fly from the local
filesystem, using a streaming chunked api with constant memory, which is
useful for doing things like serving a 4gb text file off NFS, and having
it start transmitting in milliseconds. redbean will also compute entropy
on the beginnings of files to determine if compression is profitable.
This change pays off technical debts relating to memory, such as relying
on exit() to free() allocations. That's now mostly fixed so it should be
easier now to spot memory leaks in malloc traces.
This change also fixes bugs and makes improvements to our SSL support.
Uniprocess mode failed handshakes are no longer an issue. Token Alpn is
offered so curl -v looks less weird. Hybrid SSL certificate loading is
now smarter about naming conflicts. Self-signed CA root anchors will no
longer be delivered to the client during the handshake.
2021-07-10 22:02:03 +00:00
|
|
|
libc/testlib/strequals.c \
|
|
|
|
libc/testlib/testrunner.c
|
2020-06-15 14:18:57 +00:00
|
|
|
|
|
|
|
LIBC_TESTLIB_A_SRCS = \
|
|
|
|
$(LIBC_TESTLIB_A_SRCS_S) \
|
|
|
|
$(LIBC_TESTLIB_A_SRCS_C)
|
|
|
|
|
|
|
|
LIBC_TESTLIB_A_OBJS = \
|
|
|
|
$(LIBC_TESTLIB_A_SRCS_C:%.c=o/$(MODE)/%.o) \
|
|
|
|
$(LIBC_TESTLIB_A_SRCS_S:%.S=o/$(MODE)/%.o) \
|
|
|
|
$(LIBC_TESTLIB_A_ASSETS:%=o/$(MODE)/%.zip.o)
|
|
|
|
|
|
|
|
LIBC_TESTLIB_A_DIRECTDEPS = \
|
|
|
|
LIBC_ALG \
|
2021-09-28 05:58:51 +00:00
|
|
|
LIBC_BITS \
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_CALLS \
|
|
|
|
LIBC_FMT \
|
2021-01-16 20:05:41 +00:00
|
|
|
LIBC_INTRIN \
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_LOG \
|
|
|
|
LIBC_MEM \
|
|
|
|
LIBC_NEXGEN32E \
|
|
|
|
LIBC_NT_KERNEL32 \
|
|
|
|
LIBC_RAND \
|
|
|
|
LIBC_RUNTIME \
|
|
|
|
LIBC_STDIO \
|
|
|
|
LIBC_STR \
|
|
|
|
LIBC_STUBS \
|
2021-09-28 05:58:51 +00:00
|
|
|
LIBC_SYSV \
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_SYSV_CALLS \
|
2021-01-16 20:05:41 +00:00
|
|
|
LIBC_TIME \
|
|
|
|
LIBC_TINYMATH \
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_UNICODE \
|
|
|
|
LIBC_X \
|
|
|
|
LIBC_ZIPOS \
|
2021-09-28 05:58:51 +00:00
|
|
|
THIRD_PARTY_DLMALLOC \
|
2020-12-05 20:20:41 +00:00
|
|
|
THIRD_PARTY_GDTOA
|
2020-06-15 14:18:57 +00:00
|
|
|
|
|
|
|
LIBC_TESTLIB_A_DEPS := \
|
|
|
|
$(call uniq,$(foreach x,$(LIBC_TESTLIB_A_DIRECTDEPS),$($(x))))
|
|
|
|
|
|
|
|
$(LIBC_TESTLIB_A): \
|
|
|
|
libc/testlib/ \
|
|
|
|
$(LIBC_TESTLIB_A).pkg \
|
|
|
|
$(LIBC_TESTLIB_A_OBJS)
|
|
|
|
|
|
|
|
$(LIBC_TESTLIB_A).pkg: \
|
|
|
|
$(LIBC_TESTLIB_A_OBJS) \
|
|
|
|
$(foreach x,$(LIBC_TESTLIB_A_DIRECTDEPS),$($(x)_A).pkg)
|
|
|
|
|
2022-08-06 10:51:50 +00:00
|
|
|
o/$(MODE)/libc/testlib/blocktronics.o: libc/testlib/blocktronics.txt
|
|
|
|
o/$(MODE)/libc/testlib/hyperion.o: libc/testlib/hyperion.txt
|
|
|
|
o/$(MODE)/libc/testlib/moby.o: libc/testlib/moby.txt
|
|
|
|
|
2020-06-15 14:18:57 +00:00
|
|
|
#───────────────────────────────────────────────────────────────────────────────
|
|
|
|
|
|
|
|
LIBC_TESTLIB_ARTIFACTS += LIBC_TESTLIB_RUNNER_A
|
|
|
|
LIBC_TESTLIB_RUNNER = $(LIBC_TESTLIB_RUNNER_A_DEPS) $(LIBC_TESTLIB_RUNNER_A)
|
|
|
|
LIBC_TESTLIB_RUNNER_A = o/$(MODE)/libc/testlib/runner.a
|
|
|
|
LIBC_TESTLIB_RUNNER_A_SRCS = libc/testlib/runner.c
|
|
|
|
LIBC_TESTLIB_RUNNER_A_CHECKS = $(LIBC_TESTLIB_RUNNER_A).pkg
|
|
|
|
|
|
|
|
LIBC_TESTLIB_RUNNER_A_OBJS = \
|
|
|
|
$(LIBC_TESTLIB_RUNNER_A_SRCS:%.c=o/$(MODE)/%.o)
|
|
|
|
|
|
|
|
LIBC_TESTLIB_RUNNER_A_DIRECTDEPS = \
|
|
|
|
LIBC_FMT \
|
2021-01-16 20:05:41 +00:00
|
|
|
LIBC_INTRIN \
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_NEXGEN32E \
|
2021-01-16 20:05:41 +00:00
|
|
|
LIBC_RUNTIME \
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_STDIO \
|
|
|
|
LIBC_STR \
|
|
|
|
LIBC_STUBS \
|
|
|
|
LIBC_TESTLIB
|
|
|
|
|
|
|
|
LIBC_TESTLIB_RUNNER_A_DEPS := \
|
|
|
|
$(call uniq,$(foreach x,$(LIBC_TESTLIB_RUNNER_A_DIRECTDEPS),$($(x))))
|
|
|
|
|
|
|
|
$(LIBC_TESTLIB_RUNNER_A): \
|
|
|
|
libc/testlib/ \
|
|
|
|
$(LIBC_TESTLIB_RUNNER_A).pkg \
|
|
|
|
$(LIBC_TESTLIB_RUNNER_A_OBJS)
|
|
|
|
|
|
|
|
$(LIBC_TESTLIB_RUNNER_A).pkg: \
|
|
|
|
$(LIBC_TESTLIB_RUNNER_A_OBJS) \
|
|
|
|
$(foreach x,$(LIBC_TESTLIB_RUNNER_A_DIRECTDEPS),$($(x)_A).pkg)
|
|
|
|
|
|
|
|
#───────────────────────────────────────────────────────────────────────────────
|
|
|
|
|
|
|
|
LIBC_TESTLIB_ARTIFACTS += LIBC_TESTMAIN
|
|
|
|
|
|
|
|
LIBC_TESTMAIN = \
|
|
|
|
$(LIBC_TESTMAIN_DEPS) \
|
|
|
|
$(LIBC_TESTMAIN_OBJS)
|
|
|
|
|
|
|
|
LIBC_TESTMAIN_CHECKS = \
|
|
|
|
o/$(MODE)/libc/testlib/testmain.pkg
|
|
|
|
|
|
|
|
LIBC_TESTMAIN_SRCS = \
|
|
|
|
libc/testlib/testmain.c
|
|
|
|
|
|
|
|
LIBC_TESTMAIN_OBJS = \
|
|
|
|
o/$(MODE)/libc/testlib/testmain.o
|
|
|
|
|
|
|
|
LIBC_TESTMAIN_DIRECTDEPS = \
|
|
|
|
LIBC_CALLS \
|
2021-01-16 20:05:41 +00:00
|
|
|
LIBC_INTRIN \
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_LOG \
|
2021-05-14 12:36:58 +00:00
|
|
|
LIBC_MEM \
|
2020-06-15 14:18:57 +00:00
|
|
|
LIBC_NEXGEN32E \
|
|
|
|
LIBC_RUNTIME \
|
|
|
|
LIBC_STDIO \
|
|
|
|
LIBC_STUBS \
|
|
|
|
LIBC_SYSV \
|
|
|
|
LIBC_SYSV_CALLS \
|
|
|
|
LIBC_TESTLIB \
|
|
|
|
LIBC_TESTLIB_RUNNER \
|
2021-10-14 00:27:13 +00:00
|
|
|
THIRD_PARTY_DLMALLOC \
|
2020-06-15 14:18:57 +00:00
|
|
|
THIRD_PARTY_GETOPT
|
|
|
|
|
|
|
|
LIBC_TESTMAIN_DEPS := \
|
|
|
|
$(call uniq,$(foreach x,$(LIBC_TESTMAIN_DIRECTDEPS),$($(x))))
|
|
|
|
|
|
|
|
o/$(MODE)/libc/testlib/testmain.pkg: \
|
|
|
|
$(LIBC_TESTMAIN_OBJS) \
|
|
|
|
$(foreach x,$(LIBC_TESTMAIN_DIRECTDEPS),$($(x)_A).pkg)
|
|
|
|
|
|
|
|
#───────────────────────────────────────────────────────────────────────────────
|
|
|
|
|
|
|
|
LIBC_TESTLIB_LIBS = $(foreach x,$(LIBC_TESTLIB_ARTIFACTS),$($(x)_A))
|
|
|
|
LIBC_TESTLIB_ARCHIVES = $(foreach x,$(LIBC_TESTLIB_ARTIFACTS),$($(x)_A))
|
|
|
|
LIBC_TESTLIB_SRCS = $(foreach x,$(LIBC_TESTLIB_ARTIFACTS),$($(x)_SRCS))
|
|
|
|
LIBC_TESTLIB_HDRS = $(foreach x,$(LIBC_TESTLIB_ARTIFACTS),$($(x)_HDRS))
|
|
|
|
LIBC_TESTLIB_CHECKS = $(foreach x,$(LIBC_TESTLIB_ARTIFACTS),$($(x)_CHECKS))
|
|
|
|
LIBC_TESTLIB_OBJS = $(foreach x,$(LIBC_TESTLIB_ARTIFACTS),$($(x)_OBJS))
|
|
|
|
$(LIBC_TESTLIB_OBJS): $(BUILD_FILES) libc/libc.mk
|
|
|
|
|
|
|
|
.PHONY: o/$(MODE)/libc/testlib
|
|
|
|
o/$(MODE)/libc/testlib: $(LIBC_TESTLIB_LIBS) $(LIBC_TESTLIB_CHECKS)
|