tests: add rename.test

* tests/rename.c: New file.
* tests/rename.test: New test.
* tests/.gitignore: Add rename.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(TESTS): Add rename.test.
diff --git a/tests/.gitignore b/tests/.gitignore
index e79d317..a5d586d 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -81,6 +81,7 @@
 readlinkat
 readv
 recvmsg
+rename
 restart_syscall
 rt_sigpending
 rt_sigprocmask