Fix wiggle's tests
This commit is contained in:
61
crates/wiggle/.github/workflows/main.yml
vendored
61
crates/wiggle/.github/workflows/main.yml
vendored
@@ -1,61 +0,0 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
rustfmt:
|
||||
name: Rustfmt
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: true
|
||||
- name: Install Rust
|
||||
run: |
|
||||
rustup update stable
|
||||
rustup default stable
|
||||
rustup component add rustfmt
|
||||
- name: Cargo fmt
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ${{ matrix.os }}-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu, macOS, windows]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: true
|
||||
- name: Install Rust
|
||||
shell: bash
|
||||
run: |
|
||||
rustup update stable
|
||||
rustup default stable
|
||||
- name: Build
|
||||
run: cargo build --all --release -vv
|
||||
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ${{ matrix.os }}-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu, macOS, windows]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
with:
|
||||
submodules: true
|
||||
- name: Install Rust
|
||||
shell: bash
|
||||
run: |
|
||||
rustup update stable
|
||||
rustup default stable
|
||||
- name: Test
|
||||
run: cargo test --all
|
||||
4
crates/wiggle/.gitignore
vendored
4
crates/wiggle/.gitignore
vendored
@@ -1,4 +0,0 @@
|
||||
/target
|
||||
**/*.rs.bk
|
||||
Cargo.lock
|
||||
proptest-regressions
|
||||
@@ -16,11 +16,3 @@ syn = { version = "1.0", features = ["full"] }
|
||||
wiggle-runtime = { path = "crates/runtime" }
|
||||
wiggle-test = { path = "crates/test" }
|
||||
proptest = "0.9"
|
||||
|
||||
[workspace]
|
||||
members = [
|
||||
"crates/generate",
|
||||
"crates/runtime",
|
||||
"crates/test",
|
||||
]
|
||||
exclude = ["crates/WASI"]
|
||||
|
||||
1
crates/wiggle/crates/generate/.gitignore
vendored
1
crates/wiggle/crates/generate/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
target
|
||||
@@ -85,7 +85,17 @@ impl Parse for WitxConf {
|
||||
let path_lits: Punctuated<LitStr, Token![,]> = content.parse_terminated(Parse::parse)?;
|
||||
let paths: Vec<PathBuf> = path_lits
|
||||
.iter()
|
||||
.map(|lit| PathBuf::from(lit.value()))
|
||||
.map(|lit| {
|
||||
let p = PathBuf::from(lit.value());
|
||||
if p.is_absolute() {
|
||||
p
|
||||
} else {
|
||||
let mut root = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
|
||||
root.pop();
|
||||
root.pop();
|
||||
root.join(p)
|
||||
}
|
||||
})
|
||||
.collect();
|
||||
Ok(WitxConf { paths })
|
||||
}
|
||||
|
||||
2
crates/wiggle/crates/runtime/.gitignore
vendored
2
crates/wiggle/crates/runtime/.gitignore
vendored
@@ -1,2 +0,0 @@
|
||||
target
|
||||
Cargo.lock
|
||||
2
crates/wiggle/crates/test/.gitignore
vendored
2
crates/wiggle/crates/test/.gitignore
vendored
@@ -1,2 +0,0 @@
|
||||
target
|
||||
Cargo.lock
|
||||
Reference in New Issue
Block a user