Skip to content

Commit

Permalink
Settle on a filename convention for tests for the time being. Add RCS…
Browse files Browse the repository at this point in the history
… Ids.
  • Loading branch information
schmonz committed Jul 12, 2008
1 parent 9be6b75 commit 2963637
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkgtools/wrapper/Makefile
@@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.1.2.1 2008/07/12 04:49:17 schmonz Exp $
# $NetBSD: Makefile,v 1.1.2.2 2008/07/12 06:57:49 schmonz Exp $
#

DISTNAME= wrapper-20080711
DISTNAME= wrapper-20080712
CATEGORIES= pkgtools
MASTER_SITES= # empty
DISTFILES= # empty
Expand Down
5 changes: 4 additions & 1 deletion pkgtools/wrapper/files/tests/Makefile
@@ -1,10 +1,13 @@
# $NetBSD: Makefile,v 1.1.2.3 2008/07/12 06:57:49 schmonz Exp $
#

# XXX snarf and atfify the tests from regress/buildlink-transform

.SUFFIXES: .sh .atf
.sh.atf:
atf-compile -o ${.TARGET} ${.IMPSRC}

TESTS= include_pkgdir_slashdot lib-expand quoted_arg remove-dir
TESTS= include_pkgdir_slashdot lib_expand quoted_arg remove_dir
TESTFILES= ${TESTS:S/^/test-/g:S/$/.atf/g}
ALLFILES= Atffile ${TESTFILES}

Expand Down
3 changes: 3 additions & 0 deletions pkgtools/wrapper/files/tests/test-include_pkgdir_slashdot.sh
@@ -1,3 +1,6 @@
# $NetBSD: test-include_pkgdir_slashdot.sh,v 1.1.2.2 2008/07/12 06:57:49 schmonz Exp $
#

atf_test_case include_pkgdir_slashdot
include_pkgdir_slashdot_head() {
atf_set 'descr' 'Checks that trailing /. is elided from includes'
Expand Down
@@ -1,3 +1,6 @@
# $NetBSD: test-lib_expand.sh,v 1.1.2.1 2008/07/12 06:57:49 schmonz Exp $
#

atf_test_case lib_expand
lib_expand_head() {
atf_set 'descr' 'Checks that one -llib can be expanded into several'
Expand Down
3 changes: 3 additions & 0 deletions pkgtools/wrapper/files/tests/test-quoted_arg.sh
@@ -1,3 +1,6 @@
# $NetBSD: test-quoted_arg.sh,v 1.1.2.2 2008/07/12 06:57:49 schmonz Exp $
#

atf_test_case quoted_arg
quoted_arg_head() {
atf_set 'descr' 'Checks that quoted arguments pass unmolested'
Expand Down
@@ -1,3 +1,6 @@
# $NetBSD: test-remove_dir.sh,v 1.1.2.1 2008/07/12 06:57:49 schmonz Exp $
#

atf_test_case removedir
removedir_head() {
atf_set 'descr' 'Checks that undesirable link/include dirs are removed'
Expand Down

0 comments on commit 2963637

Please sign in to comment.