diff options
author | EuAndreh <eu@euandre.org> | 2025-05-04 09:45:46 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2025-05-04 09:45:46 -0300 |
commit | 0735b6e8ceb5525c43156b3c9ec172979eb5e65c (patch) | |
tree | f60df966782a8639fb5a6876e0e7cd29aa80fae5 /tests/integration.sh | |
parent | Add i18n for manpages (diff) | |
download | uuid-0735b6e8ceb5525c43156b3c9ec172979eb5e65c.tar.gz uuid-0735b6e8ceb5525c43156b3c9ec172979eb5e65c.tar.xz |
tests/{cli-opts,integration}.sh: Add test implementations
Diffstat (limited to 'tests/integration.sh')
-rwxr-xr-x | tests/integration.sh | 26 |
1 files changed, 26 insertions, 0 deletions
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 |