From 0735b6e8ceb5525c43156b3c9ec172979eb5e65c Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Sun, 4 May 2025 09:45:46 -0300 Subject: tests/{cli-opts,integration}.sh: Add test implementations --- tests/integration.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'tests/integration.sh') diff --git a/tests/integration.sh b/tests/integration.sh index e69de29..04d37ac 100755 --- a/tests/integration.sh +++ b/tests/integration.sh @@ -0,0 +1,26 @@ +#!/bin/sh +set -eu + +. tests/lib.sh + + +test_a_generated_uuid_is_always_valid() { + testing 'a generated UUID is always valid' + + N="$LINENO" + OUT="$(mkstemp)" + ERR="$(mkstemp)" + trap 'rm -f "$OUT" "$ERR"' EXIT + STATUS=0 + ./uuid.bin "$(./uuid.bin)" 1>"$OUT" 2>"$ERR" || STATUS=$? + assert_status 0 + assert_empty_stdout + assert_empty_stderr + rm "$OUT" "$ERR" + + test_ok +} + + + +test_a_generated_uuid_is_always_valid -- cgit v1.2.3