mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-02 11:10:36 +02:00
* Some explanations for running tests under wasmtime
This commit is contained in:
parent
87cc2593a7
commit
1f981116f6
13
packages/paszlib/tests/README.md
Normal file
13
packages/paszlib/tests/README.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
|
||||||
|
The WebAssembly version of the tczipper test reads/writes temporary files in the current
|
||||||
|
directory and in the TMP directory (this is the directory returned by gettempdir).
|
||||||
|
|
||||||
|
You must pre-open these directories so the wasm environment can write in it.
|
||||||
|
|
||||||
|
Using wasmtime this can be done as follows:
|
||||||
|
|
||||||
|
wasmtime --dir=. --dir=/tmp tczipper.wasm
|
||||||
|
|
||||||
|
Similarly the testsingle test needs the same 2 directories:
|
||||||
|
|
||||||
|
wasmtime --dir=. --dir=/tmp testsingle.wasm
|
Loading…
Reference in New Issue
Block a user