diff options
author | Jess Robinson <castaway@desert-island.me.uk> | 2013-01-31 14:12:31 +0000 |
---|---|---|
committer | Brian Fraser <fraserbn@gmail.com> | 2014-01-22 13:08:21 -0300 |
commit | 86bfbb31623c9f8f806dcd9c8394b1d70f6959f5 (patch) | |
tree | d1244fa01464b27cbb86f5a83be222f6e401b1a0 | |
parent | 421103b701656c13a87cdd74db15dd4e0d2223c2 (diff) | |
download | perl-86bfbb31623c9f8f806dcd9c8394b1d70f6959f5.tar.gz |
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.
-rwxr-xr-x | Makefile.SH | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile.SH b/Makefile.SH index cafc94c2fe..3bd20e2148 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 <<!GROK!THIS! + +test check: test_prep + $run -cwd $targetdir/t -env LD_LIBRARY_PATH=$targetdir ./TEST + +!GROK!THIS! +;; +esac + +$spitshell >>$Makefile <<'!NO!SUBS!' test_tty test-tty: test_prep $(RUN_TESTS) tty |