169 parser = argparse.ArgumentParser(description=
'run doxygen tests')
170 parser.add_argument(
'--updateref',help=
'update the reference data for a test',action=
"store_true")
171 parser.add_argument(
'--doxygen',nargs=
'?',default=
'doxygen',help=
'path/name of the doxygen executable')
172 parser.add_argument(
'--xmllint',nargs=
'?',default=
'xmllint',help=
'path/name of the xmllint executable')
173 parser.add_argument(
'--id',nargs=
'+',dest=
'ids',action=
'append',type=int,help=
'id of the test to perform')
174 parser.add_argument(
'--all',help=
'perform all tests',action=
"store_true")
175 parser.add_argument(
'--inputdir',nargs=
'?',default=
'.',help=
'input directory containing the tests')
176 parser.add_argument(
'--outputdir',nargs=
'?',default=
'.',help=
'output directory to write the doxygen output to')
177 args = parser.parse_args()
180 if (
not args.updateref
is None)
and (args.ids
is None)
and (args.all
is None):
181 parser.error(
'--updateref requires either --id or --all')
183 starting_directory = os.getcwd()
184 os.chdir(args.inputdir)
188 for id
in list(itertools.chain.from_iterable(args.ids)):
189 tests.append(glob.glob(
'%s_*'%id))
190 tests.append(glob.glob(
'0%s_*'%id))
191 tests.append(glob.glob(
'00%s_*'%id))
192 tests = list(itertools.chain.from_iterable(tests))
194 tests = glob.glob(
'[0-9][0-9][0-9]_*')
195 os.chdir(starting_directory)
199 sys.exit(testManager.perform_tests())