You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CMSIS-DSP/Testing/preprocess.py

19 lines
568 B
Python

import argparse
import TestScripts.NewParser as parse
import pickle
parser = argparse.ArgumentParser(description='Parse test description')
parser.add_argument('-f', nargs='?',type = str, default=None, help="Test description file path")
parser.add_argument('-o', nargs='?',type = str, default="Output.pickle", help="output file for parsed description")
args = parser.parse_args()
if args.f is not None:
p = parse.Parser()
# Parse the test description file
root = p.parse(args.f)
with open(args.o,"wb") as output:
pickle.dump(root, output)