diff options
author | EuAndreh <eu@euandre.org> | 2021-06-26 18:15:33 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-26 18:17:20 -0300 |
commit | e6510c83a2146436778fbd905bf6597eb187ca4f (patch) | |
tree | b0f0abd1aab262756dfd915e980da8844b7df16d /aux/tests-lib.sh | |
parent | Makefile: Remove fallible/valgrind tests for now (diff) | |
download | remembering-e6510c83a2146436778fbd905bf6597eb187ca4f.tar.gz remembering-e6510c83a2146436778fbd905bf6597eb187ca4f.tar.xz |
Makefile, README.md: Adapt to changes in aux/
Diffstat (limited to '')
-rwxr-xr-x | aux/tests-lib.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/aux/tests-lib.sh b/aux/tests-lib.sh index 0be4e6f..007282a 100755 --- a/aux/tests-lib.sh +++ b/aux/tests-lib.sh @@ -102,3 +102,11 @@ test_ok() { # shellcheck disable=2059 printf " ${green}OK${end}.\n" >&2 } + +uuid() { + # Taken from: + # https://serverfault.com/a/799198 + od -xN20 /dev/urandom | \ + head -1 | \ + awk '{OFS="-"; print $2$3,$4,$5,$6,$7$8$9}' +} |