summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/CheckBaselineTests.py29
-rwxr-xr-xtest/CheckOptions.py29
-rwxr-xr-xtest/CheckTexinfo.py3
3 files changed, 31 insertions, 30 deletions
diff --git a/test/CheckBaselineTests.py b/test/CheckBaselineTests.py
index 404c12db..3c3e590b 100755
--- a/test/CheckBaselineTests.py
+++ b/test/CheckBaselineTests.py
@@ -18,6 +18,35 @@ class CheckBaselineTests (CheckOptions):
CheckOptions.__init__(self, args)
self.missing_baseline_tests = set()
+ self.untested_options = [
+ 'anon',
+ 'args-only',
+ 'cache',
+ 'debug',
+ 'download',
+ 'file',
+ 'force-color',
+ 'force-pager',
+ 'full-help',
+ 'help',
+ 'help-calc',
+ 'help-comm',
+ 'help-disp',
+ 'import',
+ 'init-file',
+ 'no-color',
+ 'options',
+ 'price-db',
+ 'price-exp',
+ 'revalued-total',
+ 'script',
+ 'seed',
+ 'trace',
+ 'verbose',
+ 'verify',
+ 'version'
+ ]
+
def main(self):
for option in self.ledger_options():
if option in self.untested_options: continue
diff --git a/test/CheckOptions.py b/test/CheckOptions.py
index d9565600..57d711db 100755
--- a/test/CheckOptions.py
+++ b/test/CheckOptions.py
@@ -24,35 +24,6 @@ class CheckOptions (object):
self.missing_options = set()
self.unknown_options = set()
- self.untested_options = [
- 'anon',
- 'args-only',
- 'cache',
- 'debug',
- 'download',
- 'file',
- 'force-color',
- 'force-pager',
- 'full-help',
- 'help',
- 'help-calc',
- 'help-comm',
- 'help-disp',
- 'import',
- 'init-file',
- 'no-color',
- 'options',
- 'price-db',
- 'price-exp',
- 'revalued-total',
- 'script',
- 'seed',
- 'trace',
- 'verbose',
- 'verify',
- 'version'
- ]
-
self.known_alternates = [
'cost',
'first',
diff --git a/test/CheckTexinfo.py b/test/CheckTexinfo.py
index eedd975d..34d0e153 100755
--- a/test/CheckTexinfo.py
+++ b/test/CheckTexinfo.py
@@ -30,6 +30,7 @@ class CheckTexinfo (CheckOptions):
item_regex = re.compile('^@item --([-A-Za-z]+)')
itemx_regex = re.compile('^@itemx')
fix_regex = re.compile('FIX')
+ comment_regex = re.compile('^\s*@c')
for line in open(filename):
line = line.strip()
if state == state_normal:
@@ -50,7 +51,7 @@ class CheckTexinfo (CheckOptions):
opt_doc = str()
elif itemx_regex.match(line):
continue
- else:
+ elif not comment_regex.match(line):
opt_doc += line
return options