Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce the test-X for the storages. #2699

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dynamodb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ jobs:
AWS_SECRET_ACCESS_KEY: test
LOCALSTACK_ENDPOINT: http://localhost:8000
run: |
cargo test --locked --features dynamodb -- dynamo
cargo test --locked --features test-dynamodb -- dynamo
8 changes: 4 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ jobs:
- name: Run the storage-service instance and the storage-service tests
run: |
cargo run --release -p linera-storage-service -- memory --endpoint $LINERA_STORAGE_SERVICE &
cargo test --features storage-service,unstable-oracles -- storage_service --nocapture
cargo test --features test-storage-service,unstable-oracles -- storage_service --nocapture
- name: Run Ethereum tests
run: |
cargo test -p linera-ethereum --features ethereum
cargo test test_wasm_end_to_end_ethereum_tracker --features ethereum,storage-service,unstable-oracles
cargo test test_wasm_end_to_end_ethereum_tracker --features ethereum,test-storage-service,unstable-oracles
- name: Run the benchmark test
run: |
cargo build --locked -p linera-service --bin linera-benchmark --features benchmark,storage-service
cargo test --locked -p linera-service --features benchmark,storage-service benchmark
cargo test --locked -p linera-service --features benchmark,test-storage-service benchmark
- name: Run the validators
run: |
cargo build --features storage-service
Expand All @@ -96,7 +96,7 @@ jobs:
cargo run --bin wit-generator -- -c
- name: Run the remote-net tests
run: |
cargo test -p linera-service remote_net_grpc --features remote-net
cargo test -p linera-service remote_net_grpc --features test-remote-net
- name: Run all tests using the default features
run: |
cargo test --features unstable-oracles --locked
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scylladb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ jobs:
docker run --name my_scylla_container -d -p 9042:9042 scylladb/scylla
- name: Run ScyllaDB tests
run: |
RUST_LOG=linera=info cargo test --locked --features scylladb -- scylla --nocapture
RUST_LOG=linera=info cargo test --locked --features test-scylladb -- scylla --nocapture
4 changes: 4 additions & 0 deletions linera-client/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ wasmer = [
]
wasmtime = ["linera-execution/wasmtime", "linera-storage/wasmtime"]
rocksdb = ["linera-views/rocksdb"]
test-rocksdb = ["rocksdb"]
dynamodb = ["linera-views/dynamodb"]
test-dynamodb = ["dynamodb"]
scylladb = ["linera-views/scylladb"]
test-scylladb = ["scylladb"]
storage-service = ["linera-storage-service"]
test-storage-service = ["storage-service"]
kubernetes = []
fs = ["fs-err", "fs4", "linera-execution/fs"]
metrics = [
Expand Down
8 changes: 8 additions & 0 deletions linera-client/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,13 @@ fn main() {
with_indexed_db: { all(web, feature = "indexed-db") },
with_testing: { any(test, feature = "test") },
with_metrics: { all(not(target_arch = "wasm32"), feature = "metrics") },
with_dynamodb: { all(not(target_arch = "wasm32"), feature = "dynamodb") },
with_test_dynamodb: { all(not(target_arch = "wasm32"), feature = "test-dynamodb") },
with_rocksdb: { all(not(target_arch = "wasm32"), feature = "rocksdb") },
with_test_rocksdb: { all(not(target_arch = "wasm32"), feature = "test-rocksdb") },
with_scylladb: { all(not(target_arch = "wasm32"), feature = "scylladb") },
with_test_scylladb: { all(not(target_arch = "wasm32"), feature = "test-scylladb") },
with_storage_service: { all(not(target_arch = "wasm32"), feature = "storage-service") },
with_test_storage_service: { all(not(target_arch = "wasm32"), feature = "test-storage-service") },
};
}
Loading
Loading