-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheclectus.pl
49 lines (40 loc) · 1.15 KB
/
eclectus.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#! perl
# Copyright (C) 2007-2009, The Perl Foundation.
# A wrapper for running scheme scripts with Eclectus
use strict;
use warnings;
use FindBin;
use lib "$FindBin::Bin/../../../lib";
use Test::More;
my ( $scheme_fn ) = @ARGV;
if ($^O eq 'MSWin32') {
# 'petite' is Petite Chez Scheme
# 7.4 is the current version
my $petite_version = `petite --version 2>&1` || q{};
my $has_petite = $petite_version =~ /^7.4/;
if ( ! $has_petite ) {
plan skip_all => 'petite 7.4 is needed for running this test';
}
else {
exec 'petite', '--script', $scheme_fn;
}
}
else {
# 'gosh' is Gauche
# 0.8 is the current version
my $gauche_version = `gosh -V 2>&1` || q{};
my $has_gauche = $gauche_version =~ m/ 0\.8 # inexact version
/xms;
if ( ! $has_gauche ) {
plan skip_all => 'gauche 0.8 is needed for running this test';
}
else {
exec 'gosh', '-fcase-fold', '-I', '.', '-I', 'riaxpander', '-l', 'gauche/prelude.scm', $scheme_fn;
}
}
# Local Variables:
# mode: cperl
# cperl-indent-level: 4
# fill-column: 100
# End:
# vim: expandtab shiftwidth=4: