Frank Denis
e4fd497b98
sodium_utils{2,3} are not worth running in benchmarks
2023-06-16 19:01:20 +02:00
Frank Denis
abfbcab412
Use CLOCK_MONOTONIC for benchmarking, if possible
2023-02-15 19:53:33 +01:00
Frank Denis
410d0a38b7
Check for iwasm existence before trying to use it
2023-02-07 18:35:25 +01:00
Frank Denis
045bdc0782
Add a pwhash test with guarded memory; it doesn't hurt
2023-01-09 10:48:51 +01:00
Frank Denis
6d726c70e4
Skip the misuse handler test when running benchmarks or wasm
2022-12-20 13:17:31 +01:00
Frank Denis
65d56b1077
iwasm requires precompilation to get decent speed
2022-12-19 12:34:51 +01:00
Frank Denis
374a58c1e1
Bun: explicitly print the output of the wasm module to the console
2022-12-19 10:27:36 +01:00
Frank Denis
45da50ab0e
Bun requires an absolute path
2022-12-19 10:22:09 +01:00
Frank Denis
c3c2595bd7
Add support for Bun as a WebAssembly runtime
2022-12-19 10:15:22 +01:00
Frank Denis
4ffb2dd0ef
Node requires an async function to start wasm code
2022-12-18 21:37:01 +01:00
Frank Denis
6c3b1492b2
Running tests with Node requires --experimental-wasm-bigint
2022-12-18 21:21:27 +01:00
Frank Denis
b73238ff32
Remove unused MAX_MEMORY_TESTS constant
2022-12-17 21:46:32 +01:00
Frank Denis
51f6b2df8d
Add wazero to the list of tested wasm runtimes
2022-12-17 21:46:00 +01:00
Frank Denis
3cbaea8bc6
Avoid memcmp() with len=0
2022-12-12 00:16:51 +01:00
Frank Denis
8b9a98c47f
Add a test for aes256gcm_decrypt with long inputs, make it pass
2022-12-11 23:45:59 +01:00
Frank Denis
c69b3ec9be
Add some additional tests of in-place encryption/decryption
2022-12-11 21:05:23 +01:00
Frank Denis
634df56c5d
Add an AES-GCM test of in-place encryption/decryption
2022-12-11 20:44:28 +01:00
Frank Denis
35089b7870
Ship run.sh
2022-11-27 22:43:19 +01:00
Frank Denis
1904d6ad21
test/default/run.sh compat with GNU find
2022-11-27 22:12:40 +01:00
Frank Denis
3075417ef8
Add a simple test runner to zig-out/bin/
2022-11-23 21:47:39 +01:00
Frank Denis
f1da14de2b
sodium_utils tests: exit() -> _exit()
2022-11-14 22:16:45 +01:00
Yi
17d9198774
Update wasi-test-wrapper: SSVM was renamed to WasmEdge ( #1179 )
2022-05-12 12:37:09 +02:00
Frank Denis
7389bf7f29
libtool update
2022-04-03 00:03:17 +02:00
Frank Denis
89b2d420d4
Lucet has reached EOL
2022-01-22 23:36:35 +01:00
Frank Denis
aa099f5e82
Revert "wasm-opt: use --strip-debug"
...
This reverts commit 0c2fb123f7
.
2021-11-18 14:15:26 +01:00
Frank Denis
0c2fb123f7
wasm-opt: use --strip-debug
2021-11-17 21:03:25 +01:00
Jørgen P. Tjernø
100ccb452d
Portability improvements ( #1105 )
...
* Move `raise` code to be behind an autoconf check
This moves the call to `raise` behind a `HAVE_RAISE` autoconf check,
in addition to `__wasm__`. This is intended to help porting to
other platforms that don't support `raise` (e.g. modern game consoles).
* Add autoconf check for `sysconf`
Only try to invoke `sysconf` if the target platform supports it, and
don't warn about unknown page size if `PAGE_SIZE` was defined. Add an
include for `sys/param.h` to increase likelihood of finding `PAGE_SIZE`.
This is intended to help porting to other platforms that don't support
`sysconf` (e.g. modern game consoles) that have a fixed hardware page
size.
* Don't try to use raise & sysconf in a WASI environment
Co-authored-by: Frank Denis <124872+jedisct1@users.noreply.github.com>
2021-10-09 18:39:02 +02:00
Frank Denis
b5b62722b7
Autoconf update & regen
2021-05-22 12:21:15 +02:00
Frank Denis
7168944f16
Update some autoconf definitions
2021-04-08 10:57:21 +02:00
Frank Denis
0389b96972
Regen autoconf files
2021-04-08 10:12:12 +02:00
Frank Denis
b5753e3fae
Add some more base64 decoding tests
2021-03-20 00:08:54 +01:00
Frank Denis
dc2d459cc5
Regen autoconf
2021-03-15 11:04:51 +01:00
Frank Denis
312bb605ee
Move lucet down
2021-03-10 18:46:07 +01:00
Tobias Nießen
fcff8e9cee
test: fix two error messages ( #1034 )
2021-02-24 23:56:35 +01:00
Frank Denis
3d807d9205
wasm bench: make lucet performance significantly better
...
By default, lucetc generates code with explicit bound checking,
even though the runtime has guard pages.
Elision only happens with --reserved-size=4GiB
2021-02-24 21:52:44 +01:00
Frank Denis
d73fd3903f
Remove unused hash2.exp
2021-02-21 00:52:29 +01:00
Frank Denis
88a591050e
Add support for Node without wasmer-js
2021-02-20 21:24:29 +01:00
Frank Denis
25316cce5a
Add support for SSVM
2021-02-20 20:55:52 +01:00
Frank Denis
044c3ef3f2
WASM benchmarks: add lucet and WAMR, update wasmtime & wasmer
2021-02-19 23:11:29 +01:00
Frank Denis
afaf3aa1d8
Braces
2021-02-13 12:10:21 +01:00
Frank Denis
a1e944cbc6
Put <meta> tag outside <style>
...
Fixes https://github.com/jedisct1/libsodium.js/pull/267
2021-02-07 13:57:31 +01:00
Frank Denis
04b44a4df4
Automake update
2020-11-24 22:55:50 +01:00
Frank Denis
6cf5e97bf6
Remove unused variable in tests
...
Fixes #998
2020-09-29 11:05:45 +02:00
Frank Denis
9b024b50b1
box_seal test: don't check empty messages
...
Fixes #974
2020-06-22 18:31:46 +02:00
Frank Denis
2ea21b96e0
Don't even include signal.h on WASI
...
Since version 11, wasi-sysroot doesn't ignore it but spits out
an error instead.
2020-06-04 10:53:49 +02:00
Frank Denis
824c8cdf69
Backport wavm support
2020-06-04 10:53:49 +02:00
Frank Denis
c35437c2e5
Add extra box_seal() tests
2020-05-21 18:38:34 +02:00
Frank Denis
2952a15bfe
Additional sc25519 tests
2020-05-14 12:40:59 +02:00
Frank Denis
088e78cc58
Simplify scalarmult{2,5} tests
2020-04-26 20:07:29 +02:00
Frank Denis
8cd121c989
Add a scalarmult test to show that the high bit is ignored
2020-04-26 20:07:24 +02:00