From 33509f44846f19fb8950550cd28a7dc743f7b730 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Fri, 9 Feb 2024 16:48:59 +0100 Subject: [PATCH] check that ignored tests fail with hickory --- .github/workflows/ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 68cfb642..963da5c2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,11 +20,20 @@ jobs: toolchain: stable components: clippy, rustfmt + - name: Run dns-test tests + run: cargo test -p dns-test -- --include-ignored + - name: Run tests against unbound - run: cargo test --workspace -- --include-ignored + run: cargo test -p conformance-tests -- --include-ignored - name: Run tests against hickory - run: DNS_TEST_SUBJECT=hickory cargo test --workspace + run: DNS_TEST_SUBJECT=hickory cargo test -p conformance-tests + + - name: Check that ignored tests fail with hickory + run: | + tmpfile="$(mktemp)" + DNS_TEST_SUBJECT=hickory cargo test -p conformance-tests -- --ignored | tee "$tmpfile" + grep 'test result: FAILED. 0 passed' "$tmpfile" || ( echo "expected ALL tests to fail but at least one passed; the passing tests must be un-#[ignore]-d" && exit 1 ) - name: Check that code is formatted run: cargo fmt --all -- --check