Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/dev Build helper programs as PROGS and not as TESTS_{C...



details:   https://anonhg.NetBSD.org/src/rev/656db0904e52
branches:  trunk
changeset: 783052:656db0904e52
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sun Dec 02 18:39:53 2012 +0000

description:
Build helper programs as PROGS and not as TESTS_{C,SH}

This enables us to remove custom Atffiles whose only purpose was to avoid
using the helpers as tests.

XXX src/tests/dev/dm/ is not (yet) linked into the build!

diffstat:

 tests/dev/audio/Makefile |  8 +++++---
 tests/dev/dm/Makefile    |  7 ++++---
 tests/dev/md/Makefile    |  8 +++++---
 3 files changed, 14 insertions(+), 9 deletions(-)

diffs (70 lines):

diff -r 45df5d6696ed -r 656db0904e52 tests/dev/audio/Makefile
--- a/tests/dev/audio/Makefile  Sun Dec 02 18:22:45 2012 +0000
+++ b/tests/dev/audio/Makefile  Sun Dec 02 18:39:53 2012 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.3 2010/10/31 13:54:31 he Exp $
+#      $NetBSD: Makefile,v 1.4 2012/12/02 18:39:53 pgoyette Exp $
 #
 
 .include <bsd.own.mk>
@@ -7,9 +7,11 @@
 FILESDIR=      ${TESTSDIR}
 
 TESTS_SH=      t_pad
-TESTS_C=       h_pad
 
-ATFFILE=       yes     # for h_pad ... or rather not for it
+BINDIR=                ${TESTSDIR}
+MKMAN=no
+
+PROGS=         h_pad
 
 LDADD+=        -lrumpdev_pad -lrumpdev_audio -lrumpdev -lrumpvfs
 LDADD+=        -lrump
diff -r 45df5d6696ed -r 656db0904e52 tests/dev/dm/Makefile
--- a/tests/dev/dm/Makefile     Sun Dec 02 18:22:45 2012 +0000
+++ b/tests/dev/dm/Makefile     Sun Dec 02 18:39:53 2012 +0000
@@ -1,5 +1,5 @@
 
-#      $NetBSD: Makefile,v 1.1 2010/10/06 11:24:55 haad Exp $
+#      $NetBSD: Makefile,v 1.2 2012/12/02 18:39:53 pgoyette Exp $
 #
 
 .include <bsd.own.mk>
@@ -8,10 +8,11 @@
 FILESDIR=      ${TESTSDIR}
 
 TESTS_SH=      t_dm
-TESTS_C=       h_dm
 
-ATFFILE=       yes
+BINDIR=                ${TESTSDIR}
+MKMAN=no
 
+PROGS=         h_dm
 
 LDADD+= -lprop -lutil
 LDADD+= -lrumpdev_disk -lrumpdev_dm
diff -r 45df5d6696ed -r 656db0904e52 tests/dev/md/Makefile
--- a/tests/dev/md/Makefile     Sun Dec 02 18:22:45 2012 +0000
+++ b/tests/dev/md/Makefile     Sun Dec 02 18:39:53 2012 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.2 2010/11/30 19:03:44 pooka Exp $
+#      $NetBSD: Makefile,v 1.3 2012/12/02 18:39:53 pgoyette Exp $
 #
 
 .include <bsd.own.mk>
@@ -7,9 +7,11 @@
 FILESDIR=      ${TESTSDIR}
 
 TESTS_SH=      t_md
-TESTS_C=       h_mdserv
 
-ATFFILE=       yes
+BINDIR=                ${TESTSDIR}
+MKMAN=no
+
+PROGS=         h_mdserv
 
 LDADD+=        -lrumpdev_md -lrumpdev_disk -lrumpdev -lrumpvfs
 LDADD+=        -lrump



Home | Main Index | Thread Index | Old Index