From: Jess Robinson Date: Thu, 31 Jan 2013 14:12:31 +0000 (+0000) Subject: Makefile.SH: When cross-compiling, copy the files needed by make test. X-Git-Tag: upstream/5.20.0~643^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=421103b701656c13a87cdd74db15dd4e0d2223c2;p=platform%2Fupstream%2Fperl.git Makefile.SH: When cross-compiling, copy the files needed by make test. This is groundwork to enable us to do this: $ make $ make test on the host, and have the test suite be run on the target. Currently this list of files is hand-maintained. --- diff --git a/Makefile.SH b/Makefile.SH index cd13ef6..cafc94c 100755 --- a/Makefile.SH +++ b/Makefile.SH @@ -1420,12 +1420,68 @@ _test: # Architecture-neutral stuff: test_prep_pre: preplibrary utilities $(nonxs_ext) +!NO!SUBS! +case "$targethost" in +'') $spitshell >>$Makefile <<'!NO!SUBS!' test_prep test-prep: test_prep_pre $(MINIPERL_EXE) $(unidatafiles) $(PERL_EXE) \ $(dynamic_ext) $(TEST_PERL_DLL) runtests x2p/s2p x2p/find2perl \ $(generated_pods) cd t && (rm -f $(PERL_EXE); $(LNS) ../$(PERL_EXE) $(PERL_EXE)) +!NO!SUBS! +;; +*) $spitshell >>$Makefile <>$Makefile <<'!NO!SUBS!' test_prep_reonly: $(MINIPERL_EXE) $(PERL_EXE) $(dynamic_ext_re) $(TEST_PERL_DLL) $(MINIPERL) make_ext.pl $(dynamic_ext_re) MAKE=$(MAKE) LIBPERL_A=$(LIBPERL) LINKTYPE=dynamic cd t && (rm -f $(PERL_EXE); $(LNS) ../$(PERL_EXE) $(PERL_EXE))