summaryrefslogtreecommitdiff
path: root/regress
diff options
context:
space:
mode:
authorfukachan <fukachan>2006-03-20 06:01:11 +0000
committerfukachan <fukachan>2006-03-20 06:01:11 +0000
commit8b803843e069115776f6fa53b6a0fefc0cf88a30 (patch)
treea480c6981d2cdfc5421d85213a42731a9ab627db /regress
parent3d92398e3b2b2a04a209ae7fce542f4a0551cf45 (diff)
downloadfml8-8b803843e069115776f6fa53b6a0fefc0cf88a30.tar.gz
fml8-8b803843e069115776f6fa53b6a0fefc0cf88a30.tar.bz2
fml8-8b803843e069115776f6fa53b6a0fefc0cf88a30.zip
print ok or not for each rule
Diffstat (limited to 'regress')
-rwxr-xr-xregress/fml4to8/print_ok.pl30
1 files changed, 30 insertions, 0 deletions
diff --git a/regress/fml4to8/print_ok.pl b/regress/fml4to8/print_ok.pl
new file mode 100755
index 00000000..fbac5094
--- /dev/null
+++ b/regress/fml4to8/print_ok.pl
@@ -0,0 +1,30 @@
+#!/usr/bin/env perl
+#
+# $FML$
+#
+
+use strict;
+use Carp;
+
+my $is_ok = 0;
+my $format = "%-3s %s\n";
+
+LINE:
+ while (<>) {
+ if (/^\.ok/) {
+ $is_ok = 1;
+ next LINE;
+ }
+
+ if (/^\.if\s+(\S+)/) {
+ if ($is_ok) {
+ printf $format, "OK", $1;
+ }
+ else {
+ printf $format, "", $1;
+ }
+ $is_ok = 0;
+ }
+ }
+
+exit 0;