summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2020-12-18 18:05:29 +0000
committerbluhm <bluhm@openbsd.org>2020-12-18 18:05:29 +0000
commit4ae1a2efda3961360cc3af9a793343cc0ec3296d (patch)
tree972c0f0ced5a9484a96fdc025431e8aedec28c37
parentIn io_str_read() return 0-length strings as NULL pointers instead of (diff)
downloadwireguard-openbsd-4ae1a2efda3961360cc3af9a793343cc0ec3296d.tar.xz
wireguard-openbsd-4ae1a2efda3961360cc3af9a793343cc0ec3296d.zip
Use regress framework.
-rw-r--r--regress/bin/ln/Makefile26
-rw-r--r--regress/bin/ln/test_ln.sh3
2 files changed, 16 insertions, 13 deletions
diff --git a/regress/bin/ln/Makefile b/regress/bin/ln/Makefile
index 263b561ce37..1b0c17a64fb 100644
--- a/regress/bin/ln/Makefile
+++ b/regress/bin/ln/Makefile
@@ -1,18 +1,22 @@
-# $OpenBSD: Makefile,v 1.1 2013/03/12 06:00:05 guenther Exp $
+# $OpenBSD: Makefile,v 1.2 2020/12/18 18:05:29 bluhm Exp $
-regress: recursive links/source
- @sh ${.CURDIR}/test_ln.sh && touch $@
+links:
+ mkdir -p links
-clean:
- rm -rf links regress
+links/source: links
+ echo "Hello, world!" >links/source
-links:
- @mkdir -p ${.OBJDIR}/links
+REGRESS_TARGETS+= run-test_ln
+run-test_ln: links/source
+ sh ${.CURDIR}/test_ln.sh
-recursive: links
-# @ln -s ${.OBJDIR}/links links/links
+REGRESS_TARGETS+= run-recursive
+run-recursive: links
+ rm -f links/links
+ ln -s ${.OBJDIR}/links links/links
+ cd links && cd links && cd links && cd links && cd links && /bin/pwd -P
-links/source: links
- @echo "Hello, world!" > ${.OBJDIR}/links/source
+clean:
+ rm -rf links
.include <bsd.regress.mk>
diff --git a/regress/bin/ln/test_ln.sh b/regress/bin/ln/test_ln.sh
index 68c1037a005..1dccdaf68a9 100644
--- a/regress/bin/ln/test_ln.sh
+++ b/regress/bin/ln/test_ln.sh
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $OpenBSD: test_ln.sh,v 1.1 2013/03/12 06:00:05 guenther Exp $
+# $OpenBSD: test_ln.sh,v 1.2 2020/12/18 18:05:29 bluhm Exp $
set -f
@@ -66,4 +66,3 @@ case $err in
*"are identical"*"nothing done"*) ;;
*) exit 1;;
esac
-