2 # Copyright (C) 2005-2007, The Perl 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', cwd, "prefix" );
43 .include "iglobals.pasm"
44 .local pmc config_hash, interp
46 config_hash = interp[.IGLOBALS_CONFIG_HASH]
47 $S0 = config_hash["prefix"]
52 pir_output_is( <<'CODE', <<'OUT', "load src/pbc from library path" );
54 load_bytecode "config.pir"
56 load_bytecode "config.pbc"
66 # cperl-indent-level: 4
69 # vim: expandtab shiftwidth=4: