diff options
author | Björn Gustavsson <[email protected]> | 2010-03-11 11:21:55 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2010-03-11 11:33:54 +0100 |
commit | 878f36c7a66e8f7459de660bf2713fb1f75c2dfb (patch) | |
tree | e67f0eb1b0155373d2be426de24b93ab466187a5 /lib/asn1/test | |
parent | c642415cdcc42234c5c54cb3730cd4646b079301 (diff) | |
download | otp-878f36c7a66e8f7459de660bf2713fb1f75c2dfb.tar.gz otp-878f36c7a66e8f7459de660bf2713fb1f75c2dfb.tar.bz2 otp-878f36c7a66e8f7459de660bf2713fb1f75c2dfb.zip |
asn1 tests: Let ts:run() build the tests
Only release the source code and an Emakefile, so that ts:run()
can build the tests just before running them.
The main advantage of building the tests suite like that is
that the turn-around time for developing new test cases are
much faster: just edit the appropriate file and do ts:run().
Diffstat (limited to 'lib/asn1/test')
-rw-r--r-- | lib/asn1/test/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/asn1/test/Makefile b/lib/asn1/test/Makefile index 9cf0692aa9..5014eb902b 100644 --- a/lib/asn1/test/Makefile +++ b/lib/asn1/test/Makefile @@ -133,9 +133,7 @@ ERL_FILES= $(MODULES:%=%.erl) HRL_FILES= External.hrl -TARGET_FILES= $(MODULES:%=$(EBIN)/%.$(EMULATOR)) - -INSTALL_PROGS= $(TARGET_FILES) +EMAKEFILE=Emakefile # ---------------------------------------------------- # Release directory specification @@ -152,10 +150,13 @@ EBIN = . # Targets # ---------------------------------------------------- -tests debug opt: $(TARGET_FILES) $(SUITE) $(SUITE_BIN) $(SUITE_BIN_V2) +$(EMAKEFILE): $(ERL_FILES) $(HRL_FILES) + $(ERL_TOP)/make/make_emakefile $(ERL_COMPILE_FLAGS) -o$(EBIN) $(MODULES) $(ERL_FILES) >$(EMAKEFILE) + +tests debug opt: $(SUITE) $(SUITE_BIN) $(SUITE_BIN_V2) $(EMAKEFILE) clean: - rm -f $(TARGET_FILES) $(SUITE) $(SUITE_BIN) $(SUITE_BIN_V2) + rm -f $(SUITE) $(SUITE_BIN) $(SUITE_BIN_V2) rm -f core docs: @@ -188,8 +189,7 @@ release_spec: opt release_tests_spec: opt $(INSTALL_DIR) $(RELSYSDIR) - $(INSTALL_DATA) $(ERL_FILES) $(HRL_FILES) $(RELSYSDIR) - $(INSTALL_DATA) asn1.spec $(INSTALL_PROGS) $(RELSYSDIR) + $(INSTALL_DATA) asn1.spec $(EMAKEFILE) $(ERL_FILES) $(HRL_FILES) $(RELSYSDIR) chmod -f -R u+w $(RELSYSDIR) @tar cf - *_SUITE_data | (cd $(RELSYSDIR); tar xf -) $(INSTALL_DIR) $(RELSYSDIR)/asn1_bin_SUITE_data |