summaryrefslogtreecommitdiff
path: root/package/mksh/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-11-13 00:00:27 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-11-13 00:00:49 +0100
commit500356799b7181529042c75a510a69effa967aa6 (patch)
treedf9602fef6db37433d09066b261bfd6ae3a3da36 /package/mksh/Makefile
parent802123a425fd9a5e6fd0d62063a9719811782767 (diff)
mksh: add test script
Diffstat (limited to 'package/mksh/Makefile')
-rw-r--r--package/mksh/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/mksh/Makefile b/package/mksh/Makefile
index 7595dff9d..becfd5003 100644
--- a/package/mksh/Makefile
+++ b/package/mksh/Makefile
@@ -14,6 +14,9 @@ PKG_SITES:= $(MASTER_SITE_MIRBSD:distfiles/=dist/mir/mksh/)
PKG_DFLT_MKSH:= y if !ADK_TOOLCHAIN_ONLY && !ADK_TARGET_WITHOUT_MMU
+PKG_SUBPKGS:= MKSH MKSH_TEST
+PKGSD_MKSH_TEST:= install testsuite
+
DISTFILES:= $(PKG_NAME)-R$(PKG_VERSION).tgz
WRKDIST= $(WRKDIR)/$(PKG_NAME)
@@ -22,6 +25,7 @@ include $(ADK_TOPDIR)/mk/package.mk
$(eval $(call HOST_template,MKSH,mksh,$(PKG_VERSION)-$(PKG_RELEASE)))
$(eval $(call PKG_template,MKSH,mksh,$(PKG_VERSION)-$(PKG_RELEASE),,$(PKG_DESCR),$(PKG_SECTION)))
+$(eval $(call PKG_template,MKSH_TEST,mksh-test,$(PKG_VERSION)-$(PKG_RELEASE),,$(PKGSD_MKSH_TEST),$(PKG_SECTION)))
TARGET_CPPFLAGS+= -DMKSHRC_PATH=\"/etc/mkshrc\"
@@ -50,5 +54,10 @@ mksh-install:
$(INSTALL_DIR) $(IDIR_MKSH)/bin
$(INSTALL_BIN) $(WRKBUILD)/mksh $(IDIR_MKSH)/bin
+mksh-test-install:
+ $(INSTALL_DIR) $(IDIR_MKSH_TEST)/opt/mksh
+ $(CP) $(WRKBUILD)/* $(IDIR_MKSH_TEST)/opt/mksh
+ $(INSTALL_BIN) ./files/test.sh $(IDIR_MKSH_TEST)/opt/mksh
+
include $(ADK_TOPDIR)/mk/host-bottom.mk
include $(ADK_TOPDIR)/mk/pkg-bottom.mk