2 # Copyright (C) 2005-2007, Parrot Foundation.
7 use lib qw( . lib ../lib ../../lib );
9 use Parrot::Test tests => 3;
15 t/pmc/config.t - Builtin Config
19 % prove t/pmc/config.t
23 Tests the parrot config interface.
27 pir_output_is( <<'CODE', <<'OUT', "get config hash" );
29 .include "iglobals.pasm"
30 .local pmc config_hash, interp
32 config_hash = interp[.IGLOBALS_CONFIG_HASH]
33 typeof $S0, config_hash
41 pir_output_is( <<'CODE', ($^O eq 'MSWin32' ? lc(cwd) : cwd), "prefix" );
43 load_bytecode "config.pbc"
44 .include "iglobals.pasm"
45 .local pmc config_hash, interp, cfg
47 config_hash = interp[.IGLOBALS_CONFIG_HASH]
48 $S0 = config_hash["prefix"]
51 if $S1 != 'MSWin32' goto sayit
58 pir_output_is( <<'CODE', <<'OUT', "load src/pbc from library path" );
60 load_bytecode "config.pir"
62 load_bytecode "config.pbc"
72 # cperl-indent-level: 4
75 # vim: expandtab shiftwidth=4: