Test wasmtime-c-api crate (#904)

* Test c-api
This commit is contained in:
Yury Delendik
2020-02-05 14:14:08 -06:00
committed by GitHub
parent efb7f0a6c7
commit c9dce98ba2
2 changed files with 210 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ jobs:
if: matrix.rust == 'nightly'
# Build and test all features except for lightbeam
- run: cargo test --features test_programs --all --exclude lightbeam -- --nocapture
- run: cargo test --features test_programs --all --exclude lightbeam --exclude wasmtime-c-api -- --nocapture
env:
RUST_BACKTRACE: 1
RUSTFLAGS: "-D warnings"
@@ -194,6 +194,16 @@ jobs:
env:
RUST_BACKTRACE: 1
# Build and test c-api examples. Skipping testing on Windows due to
# GNU make dependency when executing the wasm-c-api examples.
- run: cargo build --package wasmtime-c-api
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
- run: cargo test --package wasmtime-c-api -- --nocapture --test-threads 1
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
continue-on-error: true
env:
RUST_BACKTRACE: 1
# Builds a Python wheel (package) for Windows/Mac/Linux. Note that we're
# careful to create binary-compatible releases here to old releases of
# Windows/Mac/Linux. This will also build wheels for Python 3.6, 3.7 and 3.8.
@@ -317,7 +327,7 @@ jobs:
- run: $CENTOS cargo build --release --manifest-path crates/c-api/Cargo.toml
shell: bash
# Test what we just built
- run: $CENTOS cargo test --features test_programs --release --all --exclude lightbeam --exclude wasmtime --exclude wasmtime-fuzzing
- run: $CENTOS cargo test --features test_programs --release --all --exclude lightbeam --exclude wasmtime --exclude wasmtime-c-api --exclude wasmtime-fuzzing
shell: bash
env:
RUST_BACKTRACE: 1