tests: add readlink.test and readlinkat.test
* tests/readlink.c: New file.
* tests/readlink.awk: Likewise.
* tests/readlinkat.c: Likewise.
* tests/readlinkat.awk: Likewise.
* tests/readlink.test: New test.
* tests/readlinkat.test: Likewise.
* tests/Makefile.am (check_PROGRAMS): Add readlink and readlinkat.
(TESTS): Add readlink.test and readlinkat.test.
(EXTRA_DIST): Add readlink.awk and readlinkat.awk.
* tests/.gitignore: Add readlink and readlinkat.
diff --git a/tests/readlink.test b/tests/readlink.test
new file mode 100755
index 0000000..1578859
--- /dev/null
+++ b/tests/readlink.test
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+# Check readlink syscall decoding.
+
+. "${srcdir=.}/init.sh"
+
+ln -sf readlink.c readlink.link ||
+ framework_skip_ 'failed to create a symlink'
+
+run_prog
+run_strace -e readlink -xx -s3 $args
+match_awk
+
+rm -f readlink.link
+
+exit 0