chore: update tests
This commit is contained in:
parent
989f985d12
commit
c430e73549
2
main.c
2
main.c
@ -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
1
tests/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/bin
|
3
tests/lib/build.sh
Executable file
3
tests/lib/build.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
clang++ -O3 -shared -o ../bin/SimpleLib.so SimpleLib.cpp
|
@ -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 \
|
||||
|
Reference in New Issue
Block a user