aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2014-01-18 11:14:31 +0100
committerLukas Larsson <[email protected]>2014-02-24 17:23:12 +0100
commita4a535e84b1637c21827783fa52831334303a427 (patch)
tree0bfad3a28f3a96b18b8ac88984342fae535a8236 /lib
parent7dae40dd0d595776eec7c0407a7849962650e762 (diff)
downloadotp-a4a535e84b1637c21827783fa52831334303a427.tar.gz
otp-a4a535e84b1637c21827783fa52831334303a427.tar.bz2
otp-a4a535e84b1637c21827783fa52831334303a427.zip
Add a Makefile for the HiPE tests
Diffstat (limited to 'lib')
-rw-r--r--lib/hipe/test/Makefile18
1 files changed, 13 insertions, 5 deletions
diff --git a/lib/hipe/test/Makefile b/lib/hipe/test/Makefile
index 19fa227912..cedb150b5d 100644
--- a/lib/hipe/test/Makefile
+++ b/lib/hipe/test/Makefile
@@ -13,7 +13,11 @@ ERL_FILES= $(MODULES:%=%.erl)
TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR))
INSTALL_PROGS= $(TARGET_FILES)
-EMAKEFILE=Emakefile
+# ----------------------------------------------------
+# Files
+# ----------------------------------------------------
+EMAKEFILE = Emakefile
+AUXILIARY_FILES = hipe.spec hipe_testsuite_driver.erl $(EMAKEFILE)
# ----------------------------------------------------
# Release directory specification
@@ -56,10 +60,14 @@ include $(ERL_TOP)/make/otp_release_targets.mk
release_spec: opt
+release_docs_spec:
+
release_tests_spec: make_emakefile
$(INSTALL_DIR) "$(RELSYSDIR)"
- $(INSTALL_DATA) $(EMAKEFILE) $(ERL_FILES) "$(RELSYSDIR)"
- $(INSTALL_DATA) hipe.spec "$(RELSYSDIR)"
chmod -R u+w "$(RELSYSDIR)"
-
-release_docs_spec:
+ $(INSTALL_DATA) $(AUXILIARY_FILES) "$(RELSYSDIR)"
+ $(INSTALL_DATA) $(ERL_FILES) "$(RELSYSDIR)"
+ @tar cf - *_SUITE_data | (cd "$(RELSYSDIR)"; tar xf -)
+ cd "$(RELSYSDIR)";\
+ erlc hipe_testsuite_driver.erl;\
+ erl -noshell -run hipe_testsuite_driver create_all_suites -s erlang halt