diff options
author | Paula Toth <paulatoth@google.com> | 2020-06-02 12:13:57 -0700 |
---|---|---|
committer | Paula Toth <paulatoth@google.com> | 2020-06-02 12:14:07 -0700 |
commit | b836ae24a9f4202a73a227bc3dac9b1a40979a7d (patch) | |
tree | f5be1798ae99fc0b4b3c6a8bcc499d7a7bd3a6b3 /libc/lib | |
parent | 9244be7b0514c41e0fa8a2880595fa663cc2f85f (diff) | |
download | llvm-b836ae24a9f4202a73a227bc3dac9b1a40979a7d.tar.gz |
[libc] Add integration tests.
Summary:
This patch aims to add integration tests to check the following:
1) Header files are generated as expected.
2) Libc functions have the correct public name.
3) Libc functions have the correct return type and parameter types.
4) Symbols are exposed in the public lib.a files.
Reviewers: sivachandra, abrachet
Reviewed By: sivachandra
Subscribers: aheejin, ecnelises, dxf, mgorny, jfb, tschuett, libc-commits
Tags: #libc-project
Differential Revision: https://reviews.llvm.org/D79192
Diffstat (limited to 'libc/lib')
-rw-r--r-- | libc/lib/CMakeLists.txt | 61 |
1 files changed, 4 insertions, 57 deletions
diff --git a/libc/lib/CMakeLists.txt b/libc/lib/CMakeLists.txt index e0921d93d410..deae56e874ec 100644 --- a/libc/lib/CMakeLists.txt +++ b/libc/lib/CMakeLists.txt @@ -1,69 +1,16 @@ +include("${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/${LIBC_TARGET_MACHINE}/entrypoints.txt") +include("${LIBC_SOURCE_DIR}/config/${LIBC_TARGET_OS}/${LIBC_TARGET_MACHINE}/headers.txt") add_entrypoint_library( llvmlibc DEPENDS - # assert.h entrypoints - libc.src.assert.__assert_fail - - # errno.h entrypoints - libc.src.errno.__errno_location - - # signal.h entrypoints - libc.src.signal.raise - libc.src.signal.sigaction - libc.src.signal.sigdelset - libc.src.signal.sigaddset - libc.src.signal.sigemptyset - libc.src.signal.sigprocmask - libc.src.signal.sigfillset - libc.src.signal.signal - - # stdlib.h entrypoints - libc.src.stdlib._Exit - libc.src.stdlib.abort - - # string.h entrypoints - libc.src.string.bzero - libc.src.string.memcpy - libc.src.string.memset - libc.src.string.strcat - libc.src.string.strcpy - libc.src.string.strlen - - # sys/mman.h entrypoints - libc.src.sys.mman.mmap - libc.src.sys.mman.munmap - - # threads.h entrypoints - libc.src.threads.call_once - libc.src.threads.mtx_init - libc.src.threads.mtx_lock - libc.src.threads.mtx_unlock - libc.src.threads.thrd_create - libc.src.threads.thrd_join - - # unistd.h entrypoints - libc.src.unistd.write + ${LIBC_ENTRYPOINTS} ) add_entrypoint_library( llvmlibm DEPENDS - # math.h entrypoints - libc.src.math.ceil - libc.src.math.ceilf - libc.src.math.cosf - libc.src.math.fabs - libc.src.math.fabsf - libc.src.math.floor - libc.src.math.floorf - libc.src.math.expf - libc.src.math.exp2f - libc.src.math.round - libc.src.math.sincosf - libc.src.math.sinf - libc.src.math.trunc - libc.src.math.truncf + ${LIBM_ENTRYPOINTS} ) add_redirector_library( |