From: Jess Robinson Date: Thu, 31 Jan 2013 14:12:31 +0000 (+0000) Subject: Makefile.SH: 'make test' for cross-compilation builds. X-Git-Tag: upstream/5.20.0~643^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=86bfbb31623c9f8f806dcd9c8394b1d70f6959f5;p=platform%2Fupstream%2Fperl.git Makefile.SH: 'make test' for cross-compilation builds. Along with the previous commit, this enables us to run 'make test' on the host and have the tests run on the target. We do this by calling ./Cross/run ./TEST with -cwd $targetdir/t, and setting its LD_LIBRARY_PATH to $targetdir, so that libperl.so is found. --- diff --git a/Makefile.SH b/Makefile.SH index cafc94c..3bd20e2 100755 --- a/Makefile.SH +++ b/Makefile.SH @@ -1485,10 +1485,26 @@ $spitshell >>$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)) +!NO!SUBS! + +case "$targethost" in +'') $spitshell >>$Makefile <<'!NO!SUBS!' test check: test_prep $(RUN_TESTS) choose +!NO!SUBS! +;; +*) $spitshell >>$Makefile <>$Makefile <<'!NO!SUBS!' test_tty test-tty: test_prep $(RUN_TESTS) tty