Unverified Commit 87867ef8 authored by Robin Freyler's avatar Robin Freyler Committed by GitHub
Browse files

Move ink_lang_macro UI tests into macro-specific folders (#934)

* move ink_lang_macro UI tests into macro-specific folders

* fix GitLab CI formatting pass

* migrate back to a single trybuild test case

This is because our CI currently fails if we have multiple test cases.
parent 7577c678
Pipeline #158446 passed with stages
in 23 minutes and 11 seconds
......@@ -287,7 +287,7 @@ fmt:
script:
- cargo fmt --verbose --all -- --check
# For the UI tests we need to disable the license check
- cargo fmt --verbose --all -- --check --config=license_template_path="" crates/lang/macro/tests/ui/{pass,fail}/*.rs
- cargo fmt --verbose --all -- --check --config=license_template_path="" crates/lang/macro/tests/ui/contract/{pass,fail}/*.rs
#### stage: examples
......
......@@ -16,53 +16,53 @@
fn compile_tests() {
let t = trybuild::TestCases::new();
t.pass("tests/ui/pass/01-noop-contract.rs");
t.pass("tests/ui/pass/02-flipper-contract.rs");
t.pass("tests/ui/pass/03-incrementer-contract.rs");
t.pass("tests/ui/pass/04-erc20-contract.rs");
t.pass("tests/ui/pass/05-erc721-contract.rs");
t.pass("tests/ui/pass/06-non-ink-items.rs");
t.pass("tests/ui/pass/07-flipper-as-dependency.rs");
t.pass("tests/ui/pass/08-flipper-as-dependency-trait.rs");
t.pass("tests/ui/pass/09-static-env.rs");
t.pass("tests/ui/pass/10-derive-for-storage.rs");
t.pass("tests/ui/pass/11-alias-storage-struct-impl.rs");
t.pass("tests/ui/contract/pass/01-noop-contract.rs");
t.pass("tests/ui/contract/pass/02-flipper-contract.rs");
t.pass("tests/ui/contract/pass/03-incrementer-contract.rs");
t.pass("tests/ui/contract/pass/04-erc20-contract.rs");
t.pass("tests/ui/contract/pass/05-erc721-contract.rs");
t.pass("tests/ui/contract/pass/06-non-ink-items.rs");
t.pass("tests/ui/contract/pass/07-flipper-as-dependency.rs");
t.pass("tests/ui/contract/pass/08-flipper-as-dependency-trait.rs");
t.pass("tests/ui/contract/pass/09-static-env.rs");
t.pass("tests/ui/contract/pass/10-derive-for-storage.rs");
t.pass("tests/ui/contract/pass/11-alias-storage-struct-impl.rs");
t.compile_fail("tests/ui/fail/C-00-constructor-self-ref.rs");
t.compile_fail("tests/ui/fail/C-01-constructor-self-mut.rs");
t.compile_fail("tests/ui/fail/C-02-constructor-self-val.rs");
t.compile_fail("tests/ui/fail/C-03-constructor-missing-return.rs");
t.compile_fail("tests/ui/fail/C-04-missing-constructor.rs");
t.compile_fail("tests/ui/fail/C-10-async-constructor.rs");
t.compile_fail("tests/ui/fail/C-11-unsafe-constructor.rs");
t.compile_fail("tests/ui/fail/C-12-const-constructor.rs");
t.compile_fail("tests/ui/fail/C-13-abi-constructor.rs");
t.compile_fail("tests/ui/fail/C-14-payable-constructor.rs");
t.compile_fail("tests/ui/fail/C-15-payable-trait-constructor.rs");
t.compile_fail("tests/ui/fail/C-16-function-arg-struct-destructuring.rs");
t.compile_fail("tests/ui/contract/fail/C-00-constructor-self-ref.rs");
t.compile_fail("tests/ui/contract/fail/C-01-constructor-self-mut.rs");
t.compile_fail("tests/ui/contract/fail/C-02-constructor-self-val.rs");
t.compile_fail("tests/ui/contract/fail/C-03-constructor-missing-return.rs");
t.compile_fail("tests/ui/contract/fail/C-04-missing-constructor.rs");
t.compile_fail("tests/ui/contract/fail/C-10-async-constructor.rs");
t.compile_fail("tests/ui/contract/fail/C-11-unsafe-constructor.rs");
t.compile_fail("tests/ui/contract/fail/C-12-const-constructor.rs");
t.compile_fail("tests/ui/contract/fail/C-13-abi-constructor.rs");
t.compile_fail("tests/ui/contract/fail/C-14-payable-constructor.rs");
t.compile_fail("tests/ui/contract/fail/C-15-payable-trait-constructor.rs");
t.compile_fail("tests/ui/contract/fail/C-16-function-arg-struct-destructuring.rs");
t.compile_fail("tests/ui/fail/H-01-invalid-dyn-alloc.rs");
t.compile_fail("tests/ui/fail/H-02-invalid-as-dependency.rs");
t.compile_fail("tests/ui/fail/H-03-use-forbidden-idents.rs");
t.compile_fail("tests/ui/contract/fail/H-01-invalid-dyn-alloc.rs");
t.compile_fail("tests/ui/contract/fail/H-02-invalid-as-dependency.rs");
t.compile_fail("tests/ui/contract/fail/H-03-use-forbidden-idents.rs");
t.compile_fail("tests/ui/fail/M-01-missing-message.rs");
t.compile_fail("tests/ui/fail/M-02-message-missing-self-arg.rs");
t.compile_fail("tests/ui/fail/M-03-message-returns-self.rs");
t.compile_fail("tests/ui/fail/M-04-message-returns-non-codec.rs");
t.compile_fail("tests/ui/fail/M-05-message-invalid-selector.rs");
t.compile_fail("tests/ui/fail/M-06-message-invalid-selector-type.rs");
t.compile_fail("tests/ui/fail/M-10-method-unknown-ink-marker.rs");
t.compile_fail("tests/ui/contract/fail/M-01-missing-message.rs");
t.compile_fail("tests/ui/contract/fail/M-02-message-missing-self-arg.rs");
t.compile_fail("tests/ui/contract/fail/M-03-message-returns-self.rs");
t.compile_fail("tests/ui/contract/fail/M-04-message-returns-non-codec.rs");
t.compile_fail("tests/ui/contract/fail/M-05-message-invalid-selector.rs");
t.compile_fail("tests/ui/contract/fail/M-06-message-invalid-selector-type.rs");
t.compile_fail("tests/ui/contract/fail/M-10-method-unknown-ink-marker.rs");
t.compile_fail("tests/ui/fail/S-01-missing-storage-struct.rs");
t.compile_fail("tests/ui/fail/S-02-multiple-storage-structs.rs");
t.compile_fail("tests/ui/fail/S-03-struct-unknown-ink-marker.rs");
t.compile_fail("tests/ui/fail/S-04-non-storage-ink-impls.rs");
t.compile_fail("tests/ui/fail/S-05-storage-as-event.rs");
t.compile_fail("tests/ui/fail/S-06-event-as-storage.rs");
t.compile_fail("tests/ui/contract/fail/S-01-missing-storage-struct.rs");
t.compile_fail("tests/ui/contract/fail/S-02-multiple-storage-structs.rs");
t.compile_fail("tests/ui/contract/fail/S-03-struct-unknown-ink-marker.rs");
t.compile_fail("tests/ui/contract/fail/S-04-non-storage-ink-impls.rs");
t.compile_fail("tests/ui/contract/fail/S-05-storage-as-event.rs");
t.compile_fail("tests/ui/contract/fail/S-06-event-as-storage.rs");
t.compile_fail("tests/ui/fail/N-01-namespace-invalid-identifier.rs");
t.compile_fail("tests/ui/fail/N-02-namespace-invalid-type.rs");
t.compile_fail("tests/ui/fail/N-03-namespace-missing-argument.rs");
t.compile_fail("tests/ui/contract/fail/N-01-namespace-invalid-identifier.rs");
t.compile_fail("tests/ui/contract/fail/N-02-namespace-invalid-type.rs");
t.compile_fail("tests/ui/contract/fail/N-03-namespace-missing-argument.rs");
t.pass("tests/ui/chain_extension/E-01-simple.rs");
}
Markdown is supported
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