From ab633ea82fae0ff2b9f30c0cc478e7077d331f5f Mon Sep 17 00:00:00 2001 From: Octavio Galland Date: Thu, 23 Jan 2025 14:27:20 -0300 Subject: [PATCH] spread smoke-test for nc.openbsd --- tests/profiles/nc.openbsd/task.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/profiles/nc.openbsd/task.yaml diff --git a/tests/profiles/nc.openbsd/task.yaml b/tests/profiles/nc.openbsd/task.yaml new file mode 100644 index 000000000..80e10e5b9 --- /dev/null +++ b/tests/profiles/nc.openbsd/task.yaml @@ -0,0 +1,12 @@ +summary: smoke test for the nc.openbsd profile +execute: | + # IPv4, IPv6 + nc -4 -l 4321 & (echo "hi" | nc -4 -q 0 127.0.0.1 4321) + nc -6 -l 4321 & (echo "hi" | nc -6 -q 0 ::1 4321) + + # UNIX sockets + nc -l -U /tmp/socket & (echo "hi" | nc -q 0 -U /tmp/socket) + nc -l -U '@tmpsocket' & (echo "hi" | nc -q 0 -U '@tmpsocket') + + # The profile is attached based on the program path. + "$SPREAD_PATH"/tests/bin/actual-profile-of nc.openbsd | MATCH 'nc.openbsd \(enforce\)'