fpc/packages/paszlib/tests
Michaël Van Canneyt 9aab3305e5 * PChar -> PAnsiChar
2023-07-15 18:22:37 +02:00
..
.gitignore
README.md * Some explanations for running tests under wasmtime 2023-07-11 14:51:51 +02:00
tczipper.pp * PChar -> PAnsiChar 2023-07-15 18:22:37 +02:00
tczstreamseek.pp * Progress and exit status display 2023-07-11 14:51:34 +02:00
test.zip
testsingle.lpi
testsingle.pas

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