Skip to content

Commit ccec3a7

Browse files
committed
Add timestamp to DBG output; Run tests in debug mode
1 parent 4aec5bf commit ccec3a7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,4 @@ jobs:
139139
- name: install module
140140
run: sudo make install
141141
- name: run regression tests
142-
run: cd tests; time for f in `find regression/ -maxdepth 2 -mindepth 2 -name "*.t" | tr "\012" " "`; do time ./run-regression-tests.pl -S . ${f}; done
142+
run: cd tests; time for f in `find regression/ -maxdepth 2 -mindepth 2 -name "*.t" | tr "\012" " "`; do time ./run-regression-tests.pl -S . -d ${f}; done

tests/run-regression-tests.pl.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,8 @@ sub dbg {
536536
my $out = join "", map {
537537
(ref $_ ne "" ? Dumper($_) : $_)
538538
} @_;
539-
$out =~ s/^/DBG: /mg;
539+
my $t = gettimeofday;
540+
$out =~ s/^/DBG\[$t\]: /mg;
540541
print STDOUT "$out\n";
541542
}
542543

0 commit comments

Comments
 (0)