Lines Matching +full:- +full:- +full:force
3 # SPDX-FileCopyrightText: Copyright 2010-2024 Arm Limited and/or its affiliates <open-source-office…
5 # SPDX-License-Identifier: Apache-2.0
11 # www.apache.org/licenses/LICENSE-2.0
44 parser = argparse.ArgumentParser(description="Run CMSIS-NN unit tests.",
46 parser.add_argument('--testdir', type=str, default='TESTRUN', help="prefix of output dir name")
47 parser.add_argument('-s',
48 '--specific-test',
52 … " -s TestCases/test_arm_avgpool_s8 (also this form will work: -s test_arm_avgpool_s8)."
54 " ls -d TestCases/test_* -1")
55 … parser.add_argument('-c', '--compiler', type=str, default='GCC_ARM', choices=['GCC_ARM', 'ARMC6'])
56 parser.add_argument('--download-and-generate-test-runners',
84 "name": words[2].strip()[:-1].replace('[', '_'),
97 # https://os.mbed.com/questions/59636/STM-Nucleo-No-space-left-on-device-when-/
120 if core[:8] == 'Cortex-M':
144 target_json = 'mbed-os/targets/targets.json'
147 if not path.exists("mbed-os.lib"):
149 run_command(f'cp -a {mbed_path}. .')
151 …run_command(f'rm -rf mbed-os/TESTS' + ' mbed-os/UNITTESTS' + ' mbed-os/docker_images' + ' mbed-os/…
152 ' mbed-os/extern' + ' mbed-os/features')
155 print("----------------------------------------------------------------")
163 additional_options = ' --source ' + BASE_PATH + main_test + \
164 ' --source ' + UNITY_SRC + \
165 ' --profile ' + mbed_path + 'release.json' + \
166 ' -f'
168 …result = run_command("mbed {} -v -m ".format(mbed_command) + target_model + ' -t ' + compiler + te…
169 ' --source .'
170 ' --source ' + BASE_PATH + 'TestCases/Utils/'
171 ' --source ' + cmsis_nn_path + 'Include/'
172 ' --source ' + cmsis_nn_path + 'Source/ConvolutionFunctions/'
173 ' --source ' + cmsis_nn_path + 'Source/PoolingFunctions/'
174 ' --source ' + cmsis_nn_path + 'Source/NNSupportFunctions/'
175 ' --source ' + cmsis_nn_path + 'Source/FullyConnectedFunctions/'
176 ' --source ' + cmsis_nn_path + 'Source/SoftmaxFunctions/'
177 ' --source ' + cmsis_nn_path + 'Source/SVDFunctions/'
178 ' --source ' + cmsis_nn_path + 'Source/BasicMathFunctions/'
179 ' --source ' + cmsis_nn_path + 'Source/ActivationFunctions/'
180 … ' --source ' + cmsis_nn_path + 'Source/LSTMFunctions/' + additional_options,
196 inputQueue.put(line.decode('latin-1').strip())
260 …print("-------------------------------------------------------------------------------------------…
345 def download_unity(force=False): argument
350 run_command("rm -f {}".format(download_dir))
354 …if not force and path.isdir(unity_dir) and path.isfile(unity_src + "unity.c") and path.isfile(unit…
367 …'curl -LJ https://api.github.com/repos/ThrowTheSwitch/Unity/tarball/v2.5.0 --output unity_tarball.…
382 filename_base = downloaded_file.split('-')[0]
387 run_command("tar xzf " + downloaded_file + " -C " + unity_dir + " --strip-components=1")