diff --git a/lib/runtime-c-api/tests/hello_wasm.wasm b/lib/runtime-c-api/tests/assets/hello_wasm.wasm similarity index 100% rename from lib/runtime-c-api/tests/hello_wasm.wasm rename to lib/runtime-c-api/tests/assets/hello_wasm.wasm diff --git a/lib/runtime-c-api/tests/sum.wasm b/lib/runtime-c-api/tests/assets/sum.wasm similarity index 100% rename from lib/runtime-c-api/tests/sum.wasm rename to lib/runtime-c-api/tests/assets/sum.wasm diff --git a/lib/runtime-c-api/tests/wasm_sample_app.wasm b/lib/runtime-c-api/tests/assets/wasm_sample_app.wasm similarity index 100% rename from lib/runtime-c-api/tests/wasm_sample_app.wasm rename to lib/runtime-c-api/tests/assets/wasm_sample_app.wasm diff --git a/lib/runtime-c-api/tests/test-exports.c b/lib/runtime-c-api/tests/test-exports.c index b282f1911..bb216bcd0 100644 --- a/lib/runtime-c-api/tests/test-exports.c +++ b/lib/runtime-c-api/tests/test-exports.c @@ -6,7 +6,7 @@ int main() { // Read the wasm file bytes - FILE *file = fopen("sum.wasm", "r"); + FILE *file = fopen("assets/sum.wasm", "r"); fseek(file, 0, SEEK_END); long len = ftell(file); uint8_t *bytes = malloc(len); diff --git a/lib/runtime-c-api/tests/test-import-function.c b/lib/runtime-c-api/tests/test-import-function.c index ce6736deb..92e3e821d 100644 --- a/lib/runtime-c-api/tests/test-import-function.c +++ b/lib/runtime-c-api/tests/test-import-function.c @@ -57,7 +57,7 @@ int main() wasmer_import_t imports[] = {import}; // Read the wasm file bytes - FILE *file = fopen("wasm_sample_app.wasm", "r"); + FILE *file = fopen("assets/wasm_sample_app.wasm", "r"); fseek(file, 0, SEEK_END); long len = ftell(file); uint8_t *bytes = malloc(len); diff --git a/lib/runtime-c-api/tests/test-imports.c b/lib/runtime-c-api/tests/test-imports.c index 9c0c45467..4713719ed 100644 --- a/lib/runtime-c-api/tests/test-imports.c +++ b/lib/runtime-c-api/tests/test-imports.c @@ -117,7 +117,7 @@ int main() wasmer_import_t imports[] = {func_import, global_import, memory_import, table_import}; // Read the wasm file bytes - FILE *file = fopen("hello_wasm.wasm", "r"); + FILE *file = fopen("assets/hello_wasm.wasm", "r"); fseek(file, 0, SEEK_END); long len = ftell(file); uint8_t *bytes = malloc(len); diff --git a/lib/runtime-c-api/tests/test-instantiate.c b/lib/runtime-c-api/tests/test-instantiate.c index e7fae37e4..20332623e 100644 --- a/lib/runtime-c-api/tests/test-instantiate.c +++ b/lib/runtime-c-api/tests/test-instantiate.c @@ -7,7 +7,7 @@ int main() { // Read the wasm file bytes - FILE *file = fopen("sum.wasm", "r"); + FILE *file = fopen("assets/sum.wasm", "r"); fseek(file, 0, SEEK_END); long len = ftell(file); uint8_t *bytes = malloc(len); diff --git a/lib/runtime-c-api/tests/test-module-exports.c b/lib/runtime-c-api/tests/test-module-exports.c index 48fe6f25b..f290ef45b 100644 --- a/lib/runtime-c-api/tests/test-module-exports.c +++ b/lib/runtime-c-api/tests/test-module-exports.c @@ -6,7 +6,7 @@ int main() { // Read the wasm file bytes - FILE *file = fopen("sum.wasm", "r"); + FILE *file = fopen("assets/sum.wasm", "r"); fseek(file, 0, SEEK_END); long len = ftell(file); uint8_t *bytes = malloc(len); @@ -50,4 +50,4 @@ int main() printf("Destroy exports\n"); wasmer_export_descriptors_destroy(exports); return 0; -} \ No newline at end of file +} diff --git a/lib/runtime-c-api/tests/test-module-imports.c b/lib/runtime-c-api/tests/test-module-imports.c index b63d308f2..532005928 100644 --- a/lib/runtime-c-api/tests/test-module-imports.c +++ b/lib/runtime-c-api/tests/test-module-imports.c @@ -6,7 +6,7 @@ int main() { // Read the wasm file bytes - FILE *file = fopen("wasm_sample_app.wasm", "r"); + FILE *file = fopen("assets/wasm_sample_app.wasm", "r"); fseek(file, 0, SEEK_END); long len = ftell(file); uint8_t *bytes = malloc(len); diff --git a/lib/runtime-c-api/tests/test-module-serialize.c b/lib/runtime-c-api/tests/test-module-serialize.c index 6f6a91881..b98418646 100644 --- a/lib/runtime-c-api/tests/test-module-serialize.c +++ b/lib/runtime-c-api/tests/test-module-serialize.c @@ -6,7 +6,7 @@ int main() { // Read the wasm file bytes - FILE *file = fopen("sum.wasm", "r"); + FILE *file = fopen("assets/sum.wasm", "r"); fseek(file, 0, SEEK_END); long len = ftell(file); uint8_t *bytes = malloc(len); diff --git a/lib/runtime-c-api/tests/test-module.c b/lib/runtime-c-api/tests/test-module.c index 062caf5b8..a3f21f6a1 100644 --- a/lib/runtime-c-api/tests/test-module.c +++ b/lib/runtime-c-api/tests/test-module.c @@ -6,7 +6,7 @@ int main() { // Read the wasm file bytes - FILE *file = fopen("sum.wasm", "r"); + FILE *file = fopen("assets/sum.wasm", "r"); fseek(file, 0, SEEK_END); long len = ftell(file); uint8_t *bytes = malloc(len); @@ -48,4 +48,4 @@ int main() printf("Destroy module\n"); wasmer_module_destroy(module); return 0; -} \ No newline at end of file +} diff --git a/lib/runtime-c-api/tests/test-validate.c b/lib/runtime-c-api/tests/test-validate.c index 689cf50f2..8ce135d82 100644 --- a/lib/runtime-c-api/tests/test-validate.c +++ b/lib/runtime-c-api/tests/test-validate.c @@ -6,7 +6,7 @@ int main() { // Read the wasm file bytes - FILE *file = fopen("sum.wasm", "r"); + FILE *file = fopen("assets/sum.wasm", "r"); fseek(file, 0, SEEK_END); long len = ftell(file); uint8_t *bytes = malloc(len);