Skip to content
Snippets Groups Projects
Commit a322cf57 authored by Wei Tang's avatar Wei Tang
Browse files

ssztests, transitiontests: remove spectests feature

Directly put everything under test cfg
parent 4a323bb2
Branches
No related merge requests found
Pipeline #44562 passed with stage
in 7 minutes and 6 seconds
......@@ -26,7 +26,7 @@ test-rust-stable:
script:
- ./scripts/init.sh
- ./scripts/build.sh
- time cargo test --all --release --features spectests --locked
- time cargo test --all --release --locked
- sccache -s
only:
- triggers
......
......@@ -14,6 +14,3 @@ beacon = { path = "../../beacon" }
crypto = { package = "shasper-crypto", path = "../../crypto" }
hex = "0.3"
sha2 = "0.8"
[features]
spectests = []
......@@ -137,7 +137,7 @@ fn main() {
}
}
#[cfg(all(test, feature = "spectests"))]
#[cfg(test)]
mod spectests {
use super::*;
use std::path::PathBuf;
......
......@@ -12,6 +12,3 @@ clap = "2.32"
ssz = { path = "../../utils/ssz" }
beacon = { path = "../../beacon" }
crypto = { package = "shasper-crypto", path = "../../crypto" }
[features]
spectests = []
......@@ -77,15 +77,3 @@ pub fn run_collection<T: Test>(coll: Collection<T>) {
test.run();
}
}
#[cfg(test)]
mod tests {
use super::*;
use beacon::MinimalConfig;
#[test]
fn deposit_small() {
let coll = serde_yaml::from_str(&include_str!("../../spectests/tests/operations/deposit/deposit_minimal.yaml")).unwrap();
run_collection::<DepositTest<MinimalConfig>>(coll);
}
}
......@@ -63,7 +63,7 @@ fn run<T: Test + DeserializeOwned>(file: File) {
run_collection(coll);
}
#[cfg(all(test, feature = "spectests"))]
#[cfg(test)]
mod spectests {
use super::*;
use std::path::PathBuf;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment