3 ##############################################################################
4 # Copyright (c) 2016 Huawei Tech and others.
6 # All rights reserved. This program and the accompanying materials
7 # are made available under the terms of the Apache License, Version 2.0
8 # which accompanies this distribution, and is available at
9 # http://www.apache.org/licenses/LICENSE-2.0
10 ##############################################################################
12 # Run flake8, unit, coverage test
14 getopts ":f" FILE_OPTION
17 echo "Running flake8 ... "
18 logfile=test_results.log
19 if [ $FILE_OPTION == "f" ]; then
20 flake8 ../bottlenecks > $logfile
27 if [ $FILE_OPTION == "f" ]; then
28 echo "Results in $logfile"
37 echo "Running unittest ... "
42 echo "Running coverage ..."
43 #source tests/ci/cover.sh