How to use run_make method in avocado

Best Python code snippet using avocado_python

setup.py

Source:setup.py Github

copy

Full Screen

...56# if os.environ['BOARD'] == "Ultra96":57 # PLATFORM="ultra96"58# else:59 # PLATFORM="pynqZ1-Z2"60# def run_make(src_path, network, output_type):61 # status = subprocess.check_call(["bash", src_path + "/make-sw.sh", network, output_type])62 # if status is not 0:63 # print("Error while running make for",network,output_type,"Exiting..")64 # exit(1)65 # shutil.copyfile(src_path + "/output/sw/" + output_type + "-" + network + "-" + PLATFORM + ".so", src_path + "../../libraries/" + PLATFORM + "/" + output_type + "-" + network + "-" + PLATFORM + ".so")66# if 'VIVADOHLS_INCLUDE_PATH' in os.environ:67 # print("Shared objects will be recompiled now...This may take a while")68 # os.environ["XILINX_BNN_ROOT"]="bnn/src/"69 # if not os.path.isdir("bnn/libraries"):70 # os.mkdir("bnn/libraries")71 # # make sw shared lib72 # print("Make software lib...")73 # run_make("bnn/src/network/", "cnvW1A1", "python_sw")74 # run_make("bnn/src/network/", "cnvW1A2", "python_sw")75 # run_make("bnn/src/network/", "cnvW2A2", "python_sw")76 # run_make("bnn/src/network/", "lfcW1A1", "python_sw")77 # run_make("bnn/src/network/", "lfcW1A2", "python_sw")78 # # make hw hared lib79 # print("Make software lib...")80 # run_make("bnn/src/network/", "cnvW1A1", "python_hw")81 # run_make("bnn/src/network/", "cnvW1A2", "python_hw")82 # run_make("bnn/src/network/", "cnvW2A2", "python_hw")83 # run_make("bnn/src/network/", "lfcW1A1", "python_hw")84 # run_make("bnn/src/network/", "lfcW1A2", "python_hw")85# else:86 # print("VIVADOHLS_INCLUDE_PATH variable not set, the source will not be recompiled.",file=sys.stdout)87# copy notebooks88if os.path.isdir(os.environ["PYNQ_JUPYTER_NOTEBOOKS"]+"/bnn/"):89 shutil.rmtree(os.environ["PYNQ_JUPYTER_NOTEBOOKS"]+"/bnn/")...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run avocado automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful