chore: update tests

This commit is contained in:
Paul Pan 2023-02-07 11:22:47 +08:00
parent 989f985d12
commit c430e73549
5 changed files with 7 additions and 3 deletions

2
main.c
View File

@ -27,7 +27,7 @@ uint8_t *read_file(const char *filename, uint32_t *fsize) {
void test_wrt() {
uint32_t buf_size;
uint8_t *buf = read_file("wasm_sample.wasm", &buf_size);
uint8_t *buf = read_file("example.wasm", &buf_size);
WRTContext context;
wrt_platform_init(&context, malloc, free);

1
tests/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/bin

3
tests/lib/build.sh Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
clang++ -O3 -shared -o ../bin/SimpleLib.so SimpleLib.cpp

View File

@ -1,8 +1,8 @@
#!/usr/bin/env bash
WAMR_DIR=../../wasm-micro-runtime
PROG_SRCS=sample.c
BIN_FILE=wasm_sample.wasm
PROG_SRCS=example.c
BIN_FILE=../bin/example.wasm
clang \
--target=wasm32 -O3 -z stack-size=4096 -Wl,--initial-memory=65536 \