mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 10:22:19 +00:00
Improved capi tests
This commit is contained in:
parent
416d8d13d1
commit
c7c7a5cee1
4
Makefile
4
Makefile
@ -96,9 +96,11 @@ llvm: spectests-llvm emtests-llvm wasitests-llvm
|
|||||||
capi:
|
capi:
|
||||||
cargo build --release
|
cargo build --release
|
||||||
cargo build -p wasmer-runtime-c-api --release
|
cargo build -p wasmer-runtime-c-api --release
|
||||||
|
|
||||||
|
test-capi: capi
|
||||||
cargo test -p wasmer-runtime-c-api --release
|
cargo test -p wasmer-runtime-c-api --release
|
||||||
|
|
||||||
test-rest: capi
|
test-rest:
|
||||||
cargo test --release --all --exclude wasmer-runtime-c-api --exclude wasmer-emscripten --exclude wasmer-spectests --exclude wasmer-wasi --exclude wasmer-middleware-common --exclude wasmer-middleware-common-tests --exclude wasmer-singlepass-backend --exclude wasmer-clif-backend --exclude wasmer-llvm-backend --exclude wasmer-wasi-tests --exclude wasmer-emscripten-tests
|
cargo test --release --all --exclude wasmer-runtime-c-api --exclude wasmer-emscripten --exclude wasmer-spectests --exclude wasmer-wasi --exclude wasmer-middleware-common --exclude wasmer-middleware-common-tests --exclude wasmer-singlepass-backend --exclude wasmer-clif-backend --exclude wasmer-llvm-backend --exclude wasmer-wasi-tests --exclude wasmer-emscripten-tests
|
||||||
|
|
||||||
circleci-clean:
|
circleci-clean:
|
||||||
|
@ -162,18 +162,21 @@ jobs:
|
|||||||
displayName: Create Artifacts Dir
|
displayName: Create Artifacts Dir
|
||||||
- bash: |
|
- bash: |
|
||||||
make capi
|
make capi
|
||||||
|
make test-capi
|
||||||
cp target/release/libwasmer_runtime_c_api.so ./artifacts
|
cp target/release/libwasmer_runtime_c_api.so ./artifacts
|
||||||
displayName: Build c-api (Linux)
|
displayName: Build c-api (Linux)
|
||||||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
|
condition: and(succeeded(), eq(variables['Agent.OS'], 'Linux'))
|
||||||
- bash: |
|
- bash: |
|
||||||
make capi
|
make capi
|
||||||
|
make test-capi
|
||||||
install_name_tool -id "@rpath/libwasmer_runtime_c_api.dylib" target/release/libwasmer_runtime_c_api.dylib
|
install_name_tool -id "@rpath/libwasmer_runtime_c_api.dylib" target/release/libwasmer_runtime_c_api.dylib
|
||||||
cp target/release/libwasmer_runtime_c_api.dylib ./artifacts
|
cp target/release/libwasmer_runtime_c_api.dylib ./artifacts
|
||||||
displayName: Build c-api (Darwin)
|
displayName: Build c-api (Darwin)
|
||||||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin'))
|
condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin'))
|
||||||
- bash: |
|
- bash: |
|
||||||
cargo build --release
|
make capi
|
||||||
cargo build -p wasmer-runtime-c-api --release
|
# Tests are failing on Windows, comment for now
|
||||||
|
# make test-capi
|
||||||
cp target/release/wasmer_runtime_c_api.dll ./artifacts
|
cp target/release/wasmer_runtime_c_api.dll ./artifacts
|
||||||
displayName: Build c-api (Windows)
|
displayName: Build c-api (Windows)
|
||||||
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
|
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user