diff --git a/catalyst-gateway/Earthfile b/catalyst-gateway/Earthfile index c2d967d0271..8143f722ec5 100644 --- a/catalyst-gateway/Earthfile +++ b/catalyst-gateway/Earthfile @@ -8,7 +8,7 @@ builder: DO github.com/input-output-hk/catalyst-ci/earthly/rust:v2.0.3+SETUP --toolchain=rust-toolchain.toml - COPY --dir .cargo .config Cargo.* clippy.toml deny.toml rustfmt.toml bin crates . + COPY --dir .cargo .config Cargo.* clippy.toml deny.toml rustfmt.toml bin crates tests . # Test rust build container - Use best architecture host tools. check-hosted: @@ -18,7 +18,7 @@ check-hosted: # Test which runs check with all supported host tooling. Needs qemu or rosetta to run. # Only used to validate tooling is working across host toolsets. -check-all-hosts: +check-all-hosts: BUILD --platform=linux/amd64 --platform=linux/arm64 +check-hosted build-hosted: @@ -26,7 +26,7 @@ build-hosted: # Build the service FROM +builder - + RUN /scripts/std_build.sh DO github.com/input-output-hk/catalyst-ci/earthly/rust:v2.0.3+SMOKE_TEST --bin=cat-gateway @@ -36,7 +36,7 @@ build-hosted: # Test which runs check with all supported host tooling. Needs qemu or rosetta to run. # Only used to validate tooling is working across host toolsets. -build-all-hosts: +build-all-hosts: BUILD --platform=linux/amd64 --platform=linux/arm64 +build-hosted ## ----------------------------------------------------------------------------- diff --git a/catalyst-gateway/tests/Cargo.toml b/catalyst-gateway/tests/Cargo.toml index 63bb8888e53..161d25fce00 100644 --- a/catalyst-gateway/tests/Cargo.toml +++ b/catalyst-gateway/tests/Cargo.toml @@ -6,6 +6,10 @@ publish = false [dev-dependencies] +[[test]] +name = "integration" +path = "integration/main.rs" + [[test]] name = "end2end" path = "end2end/main.rs" diff --git a/catalyst-gateway/tests/Earthfile b/catalyst-gateway/tests/Earthfile new file mode 100644 index 00000000000..da959e73c3c --- /dev/null +++ b/catalyst-gateway/tests/Earthfile @@ -0,0 +1,14 @@ +VERSION 0.7 + +test-integration: + FROM ../+builder + RUN cargo nextest run --test integration + + +test-end2end: + FROM ../+builder + RUN cargo nextest run --test end2end + +test-nonfunctional: + FROM ../+builder + RUN cargo nextest run --test nonfunctional diff --git a/catalyst-gateway/tests/integration/main.rs b/catalyst-gateway/tests/integration/main.rs new file mode 100644 index 00000000000..ba74bc47f56 --- /dev/null +++ b/catalyst-gateway/tests/integration/main.rs @@ -0,0 +1,4 @@ +#[test] +pub fn integration(){ + assert!(true); +} \ No newline at end of file