2 # Copyright (C) 2010, Parrot Foundation.
11 Test the distutils library
15 % prove t/library/distutils.t
20 load_bytecode 'distutils.pir'
22 .const 'Sub' prebuild = 'prebuild'
23 register_step_before('build', prebuild)
24 .const 'Sub' postbuild = 'postbuild'
25 register_step_after('build', postbuild)
27 $P0 = split ' ', 'build'
29 .const 'Sub' build_hll = 'build_hll'
30 $P1['hll_hook'] = build_hll
33 setup($P0 :flat, $P1 :flat :named)
38 .param pmc kv :slurpy :named
42 .sub 'build_hll' :anon
43 .param pmc kv :slurpy :named
44 say "ok 2 - build_hll"
47 .sub 'postbuild' :anon
48 .param pmc kv :slurpy :named
49 say "ok 3 - postbuild"
56 # vim: expandtab shiftwidth=4 ft=pir: