Commit Graph

23 Commits

Author SHA1 Message Date
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