소스 검색

* Some explanations for running tests under wasmtime

Michaël Van Canneyt 2 년 전
부모
커밋
1f981116f6
1개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. 13 0
      packages/paszlib/tests/README.md

+ 13 - 0
packages/paszlib/tests/README.md

@@ -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