+uuid_test()
+{
+uuid_file="$1"
+printf "== %s UUID pattern match test ==\n" "$uuid_file"
+if cat "$uuid_file" | grep -Eq "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"; then
+ echo "== test SUCCESS =="
+else
+ echo "== test FAILURE =="
+fi
+}
+
+diff_test()
+{
+ generated_file="$1"
+ expected_file="$2"
+ printf "== %s diff test ==\n" "$generated_file"
+ diff "$expected_file" "$generated_file"
+ if [ "$?" = "0" ]; then
+ echo "== test SUCCESS =="
+ else
+ echo "== test FAILURE =="
+ fi
+}
+