git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/2] build: generate test scripts

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 7, 2013, 22:28 UTC
Message-ID
<7v1u8dsghd.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAMP44s1t7aqOorQqhXekZ5+DSZc8vjw+pP_bjLxki9F3bo5q1Q@mail.gmail.com>
Felipe Contreras <felipe.contreras@gmail.com> writes:
Show 7 quoted lines
> On Fri, Jun 7, 2013 at 5:03 PM, Felipe Contreras
> <felipe.contreras@gmail.com> wrote:
>
>> -all:: $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) $(OTHER_PROGRAMS) GIT-BUILD-OPTIONS
>> +all:: $(ALL_PROGRAMS) $(SCRIPTS_GEN) $(SCRIPT_LIB) $(BUILT_INS) $(OTHER_PROGRAMS) GIT-BUILD-OPTIONS
>
> Alternatively, we could add $(NO_INSTALL) here.

As ALL_PROGRAMS overlap with most of SCRIPTS_GEN, the above looks overly heavy-fisted. I tend to agree that a separate

	all:: $(NO_INSTALL)

would be much better, assuming that NO_INSTALL will mean "We always want to build these, but we never do not want to install them" forever (which I am OK to assume).

Also
	make clean
        make --test=5800 test

did not fail for me, and it turns out that "clean" somehow fails to clean git-remote-testpy script.

As git-remote-testpy is only for testing, another possibility is to do

    -all:: $(TEST_PROGRAMS) $(test_bindir_programs)
    +all:: $(TEST_PROGRAMS) $(test_bindir_programs) git-remote-testpy
but I think $(NO_INSTALL) is the cleanest.
Perhaps like this?
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index a748133..03fda50 100644
--- a/Makefile
+++ b/Makefile
@@ -2239,6 +2239,7 @@ endif
 
 test_bindir_programs := $(patsubst %,bin-wrappers/%,$(BINDIR_PROGRAMS_NEED_X) $(BINDIR_PROGRAMS_NO_X) $(TEST_PROGRAMS_NEED_X))
 
+all:: $(NO_INSTALL)
 all:: $(TEST_PROGRAMS) $(test_bindir_programs)
 
 bin-wrappers/%: wrap-for-bin.sh
@@ -2489,7 +2490,7 @@ clean: profile-clean coverage-clean
 	$(RM) *.o *.res block-sha1/*.o ppc/*.o compat/*.o compat/*/*.o xdiff/*.o vcs-svn/*.o \
 		builtin/*.o $(LIB_FILE) $(XDIFF_LIB) $(VCSSVN_LIB)
 	$(RM) $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) git$X
-	$(RM) $(TEST_PROGRAMS)
+	$(RM) $(TEST_PROGRAMS) $(NO_INSTALL)
 	$(RM) -r bin-wrappers $(dep_dirs)
 	$(RM) -r po/build/
 	$(RM) *.spec *.pyc *.pyo */*.pyc */*.pyo common-cmds.h $(ETAGS_TARGET) tags cscope*
Previous: Felipe ContrerasNext: Felipe Contreras
Message 4 of 9 in “Build fixes”
  1. 0/2 Build fixesFelipe Contreras, Jun 7, 2013
  2. 1/2 build: generate test scriptsFelipe Contreras, Jun 7, 2013
  3. Felipe ContrerasJun 7, 2013
  4. Junio C HamanoJun 7, 2013
  5. Felipe ContrerasJun 7, 2013
  6. Junio C HamanoJun 7, 2013
  7. Felipe ContrerasJun 7, 2013
  8. Junio C HamanoJun 7, 2013
  9. 2/2 build: do not install git-remote-testgitFelipe Contreras, Jun 7, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.