Skip to content
This repository has been archived by the owner on Jun 9, 2018. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
clean up
  • Loading branch information
fperrad committed Nov 10, 2009
1 parent ed47d61 commit aa9c056
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions setup.pir
Expand Up @@ -28,6 +28,9 @@ No Configure step, no Makefile generated.
.const 'Sub' clean = 'clean'
register_step_before('clean', clean)

.const 'Sub' pmctest = 'pmctest'
register_step('pmctest', pmctest)

# build
$P0 = new 'Hash'
$P1 = new 'Hash'
Expand Down Expand Up @@ -70,11 +73,6 @@ SOURCES
$P6['parrot-wmlsd'] = 'wmlsd.pbc'
$P0['exe_pbc'] = $P6

# test
$S0 = get_parrot()
$P0['prove_exec'] = $S0
$P0['prove_files'] = 't/pmc/*.t'

# install
$P7 = split "\n", <<'LIBS'
wmlscript/wmlscript.pbc
Expand Down Expand Up @@ -109,6 +107,7 @@ SOURCES
cmd .= ' wmlscript/translation.rules'
system(cmd)
L1:

$P0 = split ' ', 'wmlscript/wmlslibs.cfg build/stdlibs.pl'
$I0 = newer('wmlscript/stdlibs.pir', $P0)
if $I0 goto L2
Expand All @@ -125,6 +124,16 @@ SOURCES
unlink('wmlscript/stdlibs.pir')
.end

.sub 'pmctest' :anon
.param pmc kv :slurpy :named
run_step('build', kv :flat :named)
.local string cmd
cmd = "prove --exec="
$S0 = get_parrot()
cmd .= $S0
cmd .= " t/pmc/*.t"
system(cmd)
.end

# Local Variables:
# mode: pir
Expand Down

0 comments on commit aa9c056

Please sign in to comment.