File tree Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Expand file tree Collapse file tree 3 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -546,6 +546,9 @@ jobs:
546
546
- run :
547
547
name : Unit tests
548
548
command : cargo unit-test --locked
549
+ - run :
550
+ name : Integration tests (singlepass backend)
551
+ command : cargo integration-test --locked --no-default-features
549
552
- run :
550
553
name : Build and run schema generator
551
554
command : cargo schema --locked
Original file line number Diff line number Diff line change @@ -39,4 +39,4 @@ thiserror = "1.0"
39
39
[dev-dependencies ]
40
40
cosmwasm-schema = { path = " ../../packages/schema" }
41
41
cosmwasm-storage = { path = " ../../packages/storage" }
42
- cosmwasm-vm = { path = " ../../packages/vm" , default-features = false }
42
+ cosmwasm-vm = { path = " ../../packages/vm" , default-features = false , features = [ " iterator " ] }
Original file line number Diff line number Diff line change
1
+ use cosmwasm_vm:: testing:: mock_instance;
2
+
3
+ // This line will test the output of cargo wasm
4
+ static WASM : & [ u8 ] = include_bytes ! ( "../target/wasm32-unknown-unknown/release/floaty.wasm" ) ;
5
+ // You can uncomment this line instead to test productionified build from rust-optimizer
6
+ // static WASM: &[u8] = include_bytes!("../contract.wasm");
7
+
8
+ #[ test]
9
+ #[ should_panic( expected = "Float operator detected" ) ]
10
+ fn instantiate_fails ( ) {
11
+ let mut _deps = mock_instance ( WASM , & [ ] ) ;
12
+ }
You can’t perform that action at this time.
0 commit comments