Brian Smith
c32f7a23d8
Digest tests: Don't disable tests for wasm32 targets.
2023-10-14 18:29:44 -07:00
JanKaul
2019d8482f
Add support for wasm32-wasi.
...
[The files changed in this commit were part of the original PR. The
original PR also changed other files, but those changes were removed.]
2023-10-14 16:50:18 -07:00
Brian Smith
c9fd0ba48f
NFC: Remove unneeded #cfg(...)
in digest_tests.rs
...
The code is always enabled since "wasm32" was spelled wrongly. Apparently
the wasm-bindgen compatibility issue is no longer an issue.
2023-09-19 10:16:01 -07:00
Brian Smith
a26925cd1e
digest: Make public Algorithm
fields accessor functions.
...
This was done a long time ago for `aead` and other modules.
2021-10-04 15:37:16 -07:00
Brian Smith
9accd874cb
WebAssembly: Reduce boilerplate for running tests in WebAssembly.
...
Skip `digest_tests.rs` since it doesn't get built by wasm-bindgen
correctly when we do this.
2021-04-20 18:22:20 -07:00
Brian Smith
b9d7d089d9
Remove #![forbid(warnings)]
; reply on Clippy in CI/CD instead.
...
The newest Rust Nightly is getting stricter about `forbid(warnings)`
which breaks the build.
Use "deny" instead of "forbid". And only deny when running Clippy in
CI/CD, so that when hacking on *ring* we don't have to deal with
warnings right away; we now only have to deal with them when we're ready
to submit a change to be merged.
2020-12-03 17:40:33 -08:00
Brian Smith
0d5ab53e50
Simplify wasm32 test conditional use
s.
2020-05-28 11:12:37 -05:00
Brian Smith
42f110abe5
Clean up conditional compilation logic w.r.t wasm_bindgen_test.
...
When I wrote the tests, `#[cfg_attr(not(target_arch = "wasm32"), test)]` seemed
to be necessary, but now `#[test]` works.
2020-05-27 14:59:52 -05:00
Brian Smith
f15828a7a6
Stop disabling legacy_directory_ownership to fix Rust 1.41 beta channel builds.
2019-12-23 18:41:07 -06:00
Brian Smith
0c962674a1
Fix SHA-1 slow tests.
2019-07-09 17:47:52 -10:00
Brian Smith
d367526a27
Remove 32-bit x86 SHA-2 assembly code.
2019-07-09 17:25:46 -10:00
Brian Smith
7b6e9dd911
Rename SHA1
to SHA1_FOR_LEGACY_USE_ONLY
.
2019-07-09 14:16:39 -10:00
Brian Smith
c53955ea8a
Initial wasm32-unknown-unknown support.
2019-07-03 12:20:00 -10:00
Andy Russell
c51221d329
convert doc comment to regular comment
2019-02-20 03:57:05 -10:00
Brian Smith
ab0726d0cd
Embed test data into test executables.
...
Embed test data files into test executables so that file I/O isn't
necessary during tests. This allows the tests to run on platforms that
don't have file I/O. It also makes it easier to run the tests on a
separate (virtual) machine from the build machine since the test
automation no longer needs to keep track of the test files.
2019-02-02 13:21:02 -10:00
Brian Smith
2843931bb7
Switch to Rust 2018 Edition.
...
Switch to Rust 2018 Edition. Fix up some build breakage for different
configurations that were found in the process of testing this,
particularly `--no-default-features`.
2018-12-08 21:39:17 -10:00
Brian Smith
6e98bf0568
Reformat tests/, except AEAD tests.
...
AEAD tests will be reformatted later.
2018-11-15 16:17:49 -10:00
Brian Smith
d42b765cb1
Rename third-party/ to third_party/.
...
Be consistent with BoringSSL.
2018-04-30 13:31:35 -10:00
Brian Smith
72f5e2ebf0
Avoid trying to disable removed fat_ptr_transmutes
antifeature.
...
The antifeature was removed from rustc in 2014, according to a new warning,
so this was doing nothing.
2017-12-24 09:50:10 -10:00
Brian Smith
7b7d562e76
Be stricter with lints in the rest of tests/*.rs.
2017-08-27 12:31:17 -10:00
Brian Smith
dde61c2945
Add SHA-512/256.
2017-06-09 17:47:34 -10:00
Brian Smith
c66da3e5bf
Remove the dashes in Debug
output for ring::digest types.
...
This will make the output for the upcoming SHA-512/256 more sensible.
2017-06-07 13:20:27 -10:00
Brian Smith
0cc5bde692
Add digest_
prefix to digest tests.
...
This makes them run with `cargo test digest`.
2017-06-07 13:20:23 -10:00
Brian Smith
eed6898211
Move digest functional tests to tests/.
2017-06-07 13:20:15 -10:00