5 """Automatic testing for qicore behavior's converter"""
22 parser.addoption(
"--old-xar", action=
"store", default=
"",
23 help=
"specify path of an old xar to test:\n"
24 +
"- old format behavior.xar\n")
25 parser.addoption(
"--new-xar", action=
"store", default=
"",
26 help=
"specify path of a new xar to test:\n"
27 +
"- new format behavior.xar\n")
28 parser.addoption(
"--xml", action=
"store", default=
"",
29 help=
"specify path of a behavior interface to test:\n"
30 +
"- new format <box interface>.xml\n")
31 parser.addoption(
"--bhs", action=
"store", default=
"",
32 help=
"specify path of a behavior sequence to test:\n"
33 +
"- new format <behavior sequence>.bhs\n")
34 parser.addoption(
"--anim", action=
"store", default=
"",
35 help=
"specify path of a animation to test:\n"
36 +
"- new format <animation>.anim\n")
37 parser.addoption(
"--fld", action=
"store", default=
"",
38 help=
"specify path of a flow diagram to test:\n"
39 +
"- new format <flow diagram>.fld\n")
44 currentDir = os.path.dirname(os.path.abspath(__file__))
45 currentDir = os.path.realpath(os.path.join(currentDir,
50 args.append(os.path.join(currentDir,
55 args.append(os.path.join(currentDir,
60 args.append(os.path.join(currentDir,
65 args.append(os.path.join(currentDir,
70 args.append(os.path.join(currentDir,
75 args.append(os.path.join(currentDir,
79 "B_0_0_B1_0_FaceLeds0.fld"))
91 for i
in range(len(OPTIONS_LIST)):
92 str_arg = request.config.getoption(OPTIONS_LIST[i])
94 args.append(fallback_args[i])
96 args.append(os.path.abspath(str_arg))