3 ##############################################################################
4 # Copyright (c) 2015 Ericsson AB 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 yardstick's test suite(s)
15 echo -n "Running flake8 ... "
17 flake8 yardstick > $logfile
19 echo "FAILED, result in $logfile"
21 echo "OK, result in $logfile"
26 echo -n "Running unittest ... "
28 python -m unittest discover -s yardstick/tests &> $logfile
30 echo "FAILED, result in $logfile"
32 echo "OK, result in $logfile"