Skip to content

Commit edc439c

Browse files
committed
test script
1 parent 5539561 commit edc439c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

t/run.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/sh
2+
3+
#prove --state=save -j 20 t[0-9]*.sh :: --root="tmp.$(perl -e 'print join q[], grep { /[^[:alnum:]]/ and !m<[./]> } map chr, 0x01..0x7f')"
4+
grep -B3 last_fail_time .prove |grep sh | perl -pe 's/^ (.*?):/$1/' >failed-tests
5+
6+
>results
7+
for ft in $(cat failed-tests)
8+
do
9+
parallel -k -j8 "
10+
(
11+
./$ft --root=\"tmp.\$(perl -e 'print chr shift' {})\" 2>&1 >/dev/null &&
12+
echo $ft {} OK ||
13+
echo $ft {} FAIL
14+
) | tee -a results
15+
" ::: $(perl -e 'print "$_\n" for map ord, grep { /[^[:alnum:]]/ and !m<[./]> } map chr, 0x01..0x7f')
16+
done
17+
18+
grep FAIL results | awk '{print $1 " " $2}'|perl -nE 'chomp;my ($f, $c) = split / /, $_; push @{$f{$f}} => $c; END { for my $k (sort keys %f) { say "$k = " . join ", ", map { $_ < 32 ? $_ : "$_(" . chr($_) . ")" } @{$f{$k}} } }'

0 commit comments

Comments
 (0)