blob: 987362ac636fa3df5bcb11fe31d3313eeaca0bb4 (
plain)
ofs | hex dump | ascii |
---|
0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 05 3c 00 00 03 70 08 06 00 00 00 02 d9 a5 | .PNG........IHDR...<...p........ |
0020 | ba 00 00 04 24 69 43 43 50 49 43 43 20 50 72 6f 66 69 6c 65 00 00 38 11 85 55 df 6f db 54 14 3e | ....$iCCPICC.Profile..8..U.o.T.> |
0040 | 89 6f 52 a4 16 3f 20 58 47 87 8a c5 af 55 53 5b b9 1b 1a ad c6 06 49 93 a5 ed 4a 16 a5 e9 d8 2a | .oR..?.XG....US[......I...J....* |
0060 | 24 e4 3a 37 89 a9 1b 07 db e9 b6 aa 4f 7b 81 37 06 fc 01 40 d9 03 0f 48 3c 21 0d 06 62 7b d9 f6 | $.:7........O{.7...@...H<!..b{.. |
0080 | c0 b4 49 53 87 2a aa 49 48 7b e8 c4 0f 21 26 ed 05 55 e1 bb 76 62 27 53 c4 5c f5 fa cb 39 df 39 | ..IS.*.IH{...!&..U..vb'S.\...9.9 |
00a0 | e7 3b e7 5e db 44 3d 5f 69 b5 9a 19 55 88 96 ab ae 9d cf 24 95 93 a7 16 94 9e 4d 8a d2 b3 d4 4b | .;.^.D=_i...U......$......M....K |
00c0 | 03 d4 ab e9 4e 2d 91 cb cd 12 2e c1 15 f7 ce eb e1 1d 8a 08 cb ed 91 ee fe 4e f6 23 bf 7a 8b dc | ....N-.......#!/bin/bash
##############################################################################
# Copyright (c) 2015 Ericsson AB and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
# Run yardstick's flake8, unit, coverage, functional test
getopts ":f" FILE_OPTION
run_flake8() {
echo "Running flake8 ... "
logfile=test_results.log
if [ $FILE_OPTION == "f" ]; then
flake8 yardstick > $logfile
else
flake8 yardstick
fi
if [ $? -ne 0 ]; then
echo "FAILED"
if [ $FILE_OPTION == "f" ]; then
echo "Results in $logfile"
fi
exit 1
else
echo "OK"
fi
}
run_tests() {
echo "Get external libs needed for unit test"
echo "Running unittest ... "
if [ $FILE_OPTION == "f" ]; then
python -m unittest discover -v -s tests/unit > $logfile 2>&1
else
python -m unittest discover -v -s tests/unit
fi
if [ $? -ne 0 ]; then
if [ $FILE_OPTION == "f" ]; then
echo "FAILED, results in $logfile"
fi
exit 1
else
if [ $FILE_OPTION == "f" ]; then
echo "OK, results in $logfile"
fi
fi
}
run_coverage() {
source tests/ci/cover.sh
run_coverage_test
}
run_functional_test() {
mkdir -p .testrepository
python -m subunit.run discover tests/functional > .testrepository/subunit.log
subunit2pyunit < .testrepository/subunit.log
EXIT_CODE=$?
subunit-stats < .testrepository/subunit.log
if [ $EXIT_CODE -ne 0 ]; then
exit 1
else
echo "OK"
fi
}
export PYTHONPATH='yardstick/vTC/apexlake'
run_flake8
run_tests
run_coverage
run_functional_test
|