summaryrefslogtreecommitdiff
path: root/obsolete-buildroot/make/ltp-testsuite.mk
diff options
context:
space:
mode:
authorMike Baker <mbm@openwrt.org>2004-05-25 04:32:27 +0000
committerMike Baker <mbm@openwrt.org>2004-05-25 04:32:27 +0000
commite5f9af658d60e0a3a1eb6cc56cbabce4ea7e8c98 (patch)
treea2e08d2be3224409a033d25af8861d9853e72de7 /obsolete-buildroot/make/ltp-testsuite.mk
parentedab25e640eee1fd2ecc9d4dee916b5164cc35f8 (diff)
downloadmtk-20170518-e5f9af658d60e0a3a1eb6cc56cbabce4ea7e8c98.zip
mtk-20170518-e5f9af658d60e0a3a1eb6cc56cbabce4ea7e8c98.tar.gz
mtk-20170518-e5f9af658d60e0a3a1eb6cc56cbabce4ea7e8c98.tar.bz2
Initial revision
SVN-Revision: 30
Diffstat (limited to 'obsolete-buildroot/make/ltp-testsuite.mk')
-rw-r--r--obsolete-buildroot/make/ltp-testsuite.mk39
1 files changed, 39 insertions, 0 deletions
diff --git a/obsolete-buildroot/make/ltp-testsuite.mk b/obsolete-buildroot/make/ltp-testsuite.mk
new file mode 100644
index 0000000..cb4a016
--- /dev/null
+++ b/obsolete-buildroot/make/ltp-testsuite.mk
@@ -0,0 +1,39 @@
+#############################################################
+#
+# ltp-testsuite
+#
+#############################################################
+LTP_TESTSUITE_SOURCE:=ltp-full-20040206.tgz
+LTP_TESTSUITE_SITE:=http://aleron.dl.sourceforge.net/sourceforge/ltp
+LTP_TESTSUITE_CAT:=zcat
+LTP_TESTSUITE_DIR:=$(BUILD_DIR)/ltp-full-20040206
+LTP_TESTSUITE_PATCH:=$(SOURCE_DIR)/ltp-testsuite.patch
+
+
+$(DL_DIR)/$(LTP_TESTSUITE_SOURCE):
+ $(WGET) -P $(DL_DIR) $(LTP_TESTSUITE_SITE)/$(LTP_TESTSUITE_SOURCE)
+
+ltp-testsuite-source: $(DL_DIR)/$(LTP_TESTSUITE_SOURCE)
+
+$(LTP_TESTSUITE_DIR)/.unpacked: $(DL_DIR)/$(LTP_TESTSUITE_SOURCE)
+ $(LTP_TESTSUITE_CAT) $(DL_DIR)/$(LTP_TESTSUITE_SOURCE) | tar -C $(BUILD_DIR) -xvf -
+ cat $(LTP_TESTSUITE_PATCH) | patch -p1 -d $(LTP_TESTSUITE_DIR)
+ touch $(LTP_TESTSUITE_DIR)/.unpacked
+
+$(LTP_TESTSUITE_DIR)/ltp-testsuite: $(LTP_TESTSUITE_DIR)/.unpacked
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) CROSS_COMPILER=$(TARGET_CROSS) \
+ -C $(LTP_TESTSUITE_DIR)
+
+$(TARGET_DIR)/usr/bin/ltp-testsuite: $(LTP_TESTSUITE_DIR)/ltp-testsuite
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) CROSS_COMPILER=$(TARGET_CROSS) \
+ -C $(LTP_TESTSUITE_DIR) install
+
+ltp-testsuite: uclibc $(TARGET_DIR)/usr/bin/ltp-testsuite
+
+ltp-testsuite-clean:
+ $(MAKE) -C $(LTP_TESTSUITE_DIR) clean
+
+ltp-testsuite-dirclean:
+ rm -rf $(LTP_TESTSUITE_DIR)
+
+