Author: bernhard
Date: Sun Mar 25 07:03:23 2007
New Revision: 17721
Modified:
trunk/languages/plumhead/docs/testing.pod
trunk/languages/plumhead/plumhead.pl
Log:
[Plumhead]
Let plumhead.pl use the environment variable PLUMHEAD_VARIANT,
so that running the PHP test suite becomes easier for different variants.
Change the shebang in plumhead, such that 'perl' is really used,
at least on Linux.
Modified: trunk/languages/plumhead/docs/testing.pod
==============================================================================
--- trunk/languages/plumhead/docs/testing.pod (original)
+++ trunk/languages/plumhead/docs/testing.pod Sun Mar 25 07:03:23 2007
@@ -22,8 +22,9 @@
ln -s ../../Parrot/trunk/parrot
ln -s ../../Parrot/trunk/languages
export PATH=.:$PATH
- export TEST_PHP_EXECUTABLE=languages/plumhead/plumhead.sh
- export TEST_PHP_CGI_EXECUTABLE=languages/plumhead/plumhead.sh
+ export TEST_PHP_EXECUTABLE=languages/plumhead/plumhead.pl
+ export TEST_PHP_CGI_EXECUTABLE=languages/plumhead/plumhead.pl
+ export PLUMHEAD_VARIANT=phc
php run-tests.php -v --keep-all -r languages/plumhead/t/selection.txt | tee
run-tests.log
Good luck.
Modified: trunk/languages/plumhead/plumhead.pl
==============================================================================
--- trunk/languages/plumhead/plumhead.pl (original)
+++ trunk/languages/plumhead/plumhead.pl Sun Mar 25 07:03:23 2007
@@ -1,4 +1,4 @@
-#! perl
+#!/usr/bin/env perl
# $Id$
@@ -7,7 +7,9 @@
use strict;
use warnings;
-exec './parrot', 'languages/plumhead/plumhead.pbc', @ARGV;
+# possible values are qw( phc antlr3 partridge perl5re );
+my $variant = $ENV{PLUMHEAD_VARIANT} || 'partridge';
+exec './parrot', 'languages/plumhead/plumhead.pbc', "--variant=$variant",
@ARGV;
# Local Variables:
# mode: cperl