diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-10-06 08:06:02 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-10-06 08:06:02 +0000 |
commit | c1846604edf7794dfb451600cdbce1466c929c80 (patch) | |
tree | 06f15065c243598092b60325bfcf437d4d5c1e7e /make/ltp-testsuite.mk | |
parent | 1d669278d8aa2a78e372a914277e27754e4cca79 (diff) | |
download | buildroot-novena-c1846604edf7794dfb451600cdbce1466c929c80.tar.gz buildroot-novena-c1846604edf7794dfb451600cdbce1466c929c80.zip |
Add the linux test project test suite. The 'make install' step is currently
broken, since I've not worked out how I want to handle that step (it wants to
run as root).
Diffstat (limited to 'make/ltp-testsuite.mk')
-rw-r--r-- | make/ltp-testsuite.mk | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/make/ltp-testsuite.mk b/make/ltp-testsuite.mk new file mode 100644 index 000000000..0b96b6888 --- /dev/null +++ b/make/ltp-testsuite.mk @@ -0,0 +1,39 @@ +############################################################# +# +# ltp-testsuite +# +############################################################# +LTP_TESTSUITE_SOURCE:=ltp-full-20031002.tgz +LTP_TESTSUITE_SITE:=http://aleron.dl.sourceforge.net/sourceforge/ltp +LTP_TESTSUITE_CAT:=zcat +LTP_TESTSUITE_DIR:=$(BUILD_DIR)/ltp-full-20031002 +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) + + |