aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-05-02 22:32:07 -0700
committerRob Landley <rob@landley.net>2018-05-03 18:59:01 -0500
commitec66213424e671c70d1d8dd3675b85ae24d10e5f (patch)
tree1e8d8da82930b2dc54d5796f6cca8776049649c3 /tests
parent3169d948c049664bcf7216d4c4ae751881099d3e (diff)
downloadtoybox-ec66213424e671c70d1d8dd3675b85ae24d10e5f.tar.gz
Add uuidgen.
Reuse create_uuid, but make it match the current RFC.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/uuidgen.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/uuidgen.test b/tests/uuidgen.test
new file mode 100755
index 00000000..2042a4b9
--- /dev/null
+++ b/tests/uuidgen.test
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+[ -f testing.sh ] && . testing.sh
+
+#testing "name" "command" "result" "infile" "stdin"
+
+testing "smoke" "uuidgen | grep -Eq '[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}' && echo okay" "okay\n" "" ""