diff --git a/tests/pthread_rwlock/Makefile b/tests/pthread_rwlock/Makefile
index 16f796ed2d2eb1fcfa03cc4bfc6e8fe8cdcaad58..42586a24a8aae6b1f9baa6802cd98abf509a6234 100644
--- a/tests/pthread_rwlock/Makefile
+++ b/tests/pthread_rwlock/Makefile
@@ -14,3 +14,6 @@ BOARD_INSUFFICIENT_MEMORY += airfy-beacon chronos mbed_lpc1768 msb-430 msb-430h
                              spark-core stm32f0discovery yunjia-nrf51822
 
 include $(RIOTBASE)/Makefile.include
+
+test:
+	tests/01-run.py
diff --git a/tests/pthread_rwlock/tests/01-run.py b/tests/pthread_rwlock/tests/01-run.py
new file mode 100755
index 0000000000000000000000000000000000000000..260c4492639233c4d94d34ba148ad9ca81d0f184
--- /dev/null
+++ b/tests/pthread_rwlock/tests/01-run.py
@@ -0,0 +1,22 @@
+#!/usr/bin/env python3
+
+import os
+import sys
+
+sys.path.append(os.path.join(os.environ['RIOTBASE'], 'dist/tools/testrunner'))
+import testrunner
+
+
+def testfunc(child):
+    child.expect('START')
+    for _ in range(8):
+        child.expect('start')
+
+    for _ in range(8):
+        child.expect('done')
+
+    child.expect('SUCCESS')
+
+
+if __name__ == "__main__":
+    sys.exit(testrunner.run(testfunc))