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

Commit

Permalink
use directly TAP/Harness library
Browse files Browse the repository at this point in the history
  • Loading branch information
fperrad committed May 15, 2010
1 parent e7e855f commit 4d736e5
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions setup.pir
Expand Up @@ -162,12 +162,21 @@ SOURCES
.sub 'pmctest' :anon
.param pmc kv :slurpy :named
run_step('build', kv :flat :named)
.local string cmd
cmd = "tapir --exec="

load_bytecode 'TAP/Harness.pbc'
.local pmc opts, files, harness, aggregate
opts = new 'Hash'
$S0 = get_parrot()
cmd .= $S0
cmd .= " t/pmc/*.t"
system(cmd, 1 :named('verbose'))
opts['exec'] = $S0
files = glob('t/pmc/*.t')
files = sort_strings(files)
harness = new ['TAP';'Harness']
harness.'process_args'(opts)
aggregate = harness.'runtests'(files)
$I0 = aggregate.'has_errors'()
unless $I0 goto L1
die "test fails"
L1:
.end

# Local Variables:
Expand Down

0 comments on commit 4d736e5

Please sign in to comment.