android_external_toybox/tests/uuidgen.test
Elliott Hughes ec66213424 Add uuidgen.
Reuse create_uuid, but make it match the current RFC.
2018-05-03 18:59:01 -05:00

8 lines
236 B
Bash
Executable File

#!/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" "" ""