Commit Graph

43 Commits

Author SHA1 Message Date
Luca BRUNO b24265e1ab
Bump to 0.2.94
Changes:
 * Add kqueue1 to NetBSD
 * Add Android items from "sys/system_properties.h"
 * Add new header to the android header files list
 * Add dl_iterate_phdr to Android
 * Update dl_phdr_info definition to more closely match header files
 * linux: add syncfs(2)
 * Add macos clonefile functions
 * Add RLIM_NLIMITS constant as alias of RLIMIT_NLIMITS on linux_like
 * Add RLIM_NLIMITS on android
 * Unified Linux TCP socket options
2021-04-26 12:57:01 +00:00
Lu, Wangshan 4b9e959f96
Bump to 0.2.93 2021-04-06 17:53:34 +08:00
bors 0a93b70496 Auto merge of #2109 - Thomasdezeeuw:issue_2104-regression_tests, r=JohnTitor
Add regression test infrastructure

Please the commit messages for details.

I still need to add lists for the following targets, but I got the major ones I think.

TODO:
* aarch64-unknown-hermit
* x86_64-unknown-hermit
* x86_64-pc-solaris
* x86_64-sun-solaris
* sparcv9-sun-solaris
* x86_64-fortanix-unknown-sgx
* x86_64-unknown-illumos
* asmjs-unknown-emscripten
* wasm32-unknown-emscripten
* wasm32-unknown-unknown
* wasm32-wasi
* Check symbols added after commit ed45c2649b.

TODO: add a bit to the contributing guide about adding to these lists.

Closes #2104.
2021-04-02 12:53:21 +00:00
Guillaume Gomez 172771e8c6 Bump crate version to 0.2.92 2021-03-30 12:04:45 +02:00
Thomas de Zeeuw c8d9470502 Add semver test infrastructure
This first step add the infrastructure to test if libc follows semantic
versioning.

In the build step it creates a test file which imports all functions,
constants, etc. that are expected to be public. This file is generated
from the files in the (not yet included) semver directory. These files
include the function and constants expected to be public per target
family, vendor, OS, etc.

See the do_semver function in the build file of libc-test for the
details.
2021-03-27 10:27:17 +01:00
Yuki Okushi 765cca1fe2 Bump to 0.2.91 2021-03-23 10:26:40 +09:00
Amanieu d'Antras c6e8f02a08 Bump to 0.2.90 2021-03-18 11:32:23 +00:00
Josh Triplett 1a359cff89 Bump to 0.2.89 2021-03-15 11:52:17 -07:00
Yuki Okushi 9abcbd15de Bump up libc version to 0.2.88 2021-03-06 01:02:04 +09:00
Yuki Okushi 1ebc29eb2e Add description metadata to libc-test 2021-03-02 19:22:52 +09:00
Yuki Okushi 5cfe0a237c Update some metadata on libc-test to publish 2021-03-02 15:16:12 +09:00
Niels Sascha Reedijk 497f7f40f7 Haiku: support testing framework on Haiku 2021-01-28 14:31:24 +00:00
Yuki Okushi b4f8191689 Unpin the `cc` crate version 2020-10-24 02:35:55 +09:00
Yuki Okushi e228df915d Pin `cc` crate to fix AArch64-Android CI 2020-10-17 04:41:00 +09:00
Yuki Okushi a6920f9a5a
Use ctest2 to drop old dependencies 2020-06-02 01:10:08 +09:00
Yuki Okushi c4aed601f5
Change branch specification 2020-05-28 05:21:45 +09:00
Yuki Okushi a8978051d6
Use fork ctest until the maintainer gets back 2020-04-08 07:11:14 +09:00
Matthew McPherrin 06938add2d Add test for SO_EE_OFFENDER
Modelled after the cmsg tests, this wraps the C macro into a function, and then
compares the results to the Rust implementation in libc.
2019-12-02 17:02:23 -08:00
gnzlbg 8f403e5ac2 Update MUSL Linux kernel headers and re-enable Linux tests 2019-05-27 22:23:02 +02:00
gnzlbg 4ac26afa83 Deprecate `use_std` cargo feature: use `std` instead .
Related to #657 .
2019-05-24 13:22:03 +02:00
gnzlbg c1e0a3f3b1 Always use the latest ctest 2019-02-12 18:34:56 +01:00
Alan Somers 38cf5b15c6 Add an integration test for the cmsg(3) functions.
Since these are defined in C as macros, they must be reimplemented in
libc as Rust functions.  They're hard to get exactly right, and they
vary from platform to platform.  The test builds custom C code that uses
the real macros, and compares its output to the Rust versions' output
for various inputs.

Skip the CMSG_NXTHDR test on sparc64 linux because it hits a Bus Error.

Issue #1239

Skip the entire cmsg test program on s390x because it dumps core
seemingly before the kernel finishes booting.

Issue #1240
2019-02-05 08:26:17 -07:00
Bryant Mairs 868a85d05d Implement PartialEq,Eq for all types 2019-02-02 13:06:58 -08:00
dependabot[bot] 406877e891
Bump ctest from 0.2.7 to 0.2.8
Bumps [ctest](https://github.com/alexcrichton/ctest) from 0.2.7 to 0.2.8.
- [Release notes](https://github.com/alexcrichton/ctest/releases)
- [Commits](https://github.com/alexcrichton/ctest/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-28 07:00:26 +00:00
dependabot[bot] 157bb12a92
Bump ctest from 0.2.6 to 0.2.7
Bumps [ctest](https://github.com/alexcrichton/ctest) from 0.2.6 to 0.2.7.
- [Release notes](https://github.com/alexcrichton/ctest/releases)
- [Commits](https://github.com/alexcrichton/ctest/commits/0.2.7)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-11-26 06:20:46 +00:00
dependabot[bot] 4f970bfd88
Bump ctest from 0.2.4 to 0.2.6
Bumps [ctest](https://github.com/alexcrichton/ctest) from 0.2.4 to 0.2.6.
- [Release notes](https://github.com/alexcrichton/ctest/releases)
- [Commits](https://github.com/alexcrichton/ctest/commits)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-10-31 05:49:22 +00:00
gnzlbg 83f301d7d5 update ctest version 2018-10-19 15:02:30 +02:00
Tobias Bucher 45f191d192 Update to non-yanked version of ctest 2018-09-12 23:27:28 +02:00
Tobias Bucher 8b1d846444 Theoretically test statics
There are none of them in `libc` except for `__progname` on Android, but
that one cannot be tested because it's not present in any header files.
2018-09-05 09:48:49 +02:00
Alex Crichton e72f187cd4 Update ctest to 0.2 2018-08-13 16:58:13 -07:00
Linus Färnstrand 5f38367da3 Add testing with align feature 2018-07-29 18:54:45 +02:00
gnzlbg f9c396803c perform ctest with and without std 2018-02-27 17:36:45 +01:00
Marco A L Barbosa c9aba5f9ad Use ctest from git to allow testing linux x32 2017-10-27 11:01:20 -02:00
Alex Crichton 9029cfb9eb Add more Linux-based syscall tables
* Add syscall tables to most remaining arches in `src/unix/notbsd`
* Add aarch64/arm musl to CI
* Update dependencies
2017-10-18 15:17:00 -07:00
Alex Crichton 22b98dedfe Add asmjs/wasm32 to CI
Rebase of #610 and also move emscripten up much higher in the hierarchy to
ensure that it doesn't have too much of a ripple effect on other platforms.

This involved moving down a good number of definitions, but hopefully was done
with care to not break anything!
2017-08-26 22:15:29 -07:00
Bryant Mairs 2e11d9e14c Add more fcntl and seal constants for Android/Linux
We now create an additional binary `linux_fcntl` for testing this
since there are header conflicts when including all necessary headers.
This binary is run on all platforms even though it's empty on all non-
Android/non-Linux platforms.

Testing has been switched from a custom binary to using a runner-less
test (or pair of tests). This means that for local development a simple
`cd libc-test && cargo test` will run all the tests. CI has also been
updated here to reflect that.
2017-08-20 20:52:43 -07:00
Alex Crichton 78070bdf28 Try to fix powerpc64 and update to crates.io ctest 2016-10-20 17:23:23 -07:00
Alex Crichton a097ff6d35 Add ci for i686-unknown-linux-musl 2016-08-26 19:49:16 -07:00
Alex Crichton d11e9141b2 Switch to ctest crate
Extracted tests!
2015-09-15 23:28:52 -07:00
Alex Crichton 5a28433bb1 Run all tests manually
Running a test per thread really doesn't play well with QEMU emulation, so just
make it easy on ourselves and don't run threads.
2015-09-13 23:33:33 -07:00
Alex Crichton 31504843db Windows 32-bit fixes 2015-09-11 11:44:25 -07:00
Alex Crichton 26333d3147 Semi-pin to a version of syntex_syntax 2015-09-10 19:12:03 -07:00
Alex Crichton 8e5f0cd827 Add skeleton testing framework 2015-09-09 22:46:19 -07:00