blob: 6bf7580ee2f5b4fcf3a1d9403cce3108adde71e3 (
plain)
ofs | hex dump | ascii |
---|
0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 02 a5 00 00 02 87 08 02 00 00 00 37 de a6 | .PNG........IHDR.............7.. |
0020 | 58 00 00 00 03 73 42 49 54 08 08 08 db e1 4f e0 00 00 00 19 74 45 58 74 53 6f 66 74 77 61 72 65 | X....sBIT.....O.....tEXtSoftware |
0040 | 00 67 6e 6f 6d 65 2d 73 63 72 65 65 6e 73 68 6f 74 ef 03 bf 3e 00 00 20 00 49 44 41 54 78 9c ec | .gnome-screenshot...>....IDATx.. |
0060 | dd 79 5c 4c eb 1b 00 f0 e7 cc 52 4d da 94 16 94 f6 85 44 94 2c a5 a2 6c d9 b3 ef 72 51 12 22 ae | .y\L......RM......D.,..l...rQ.". |
0080 | 5c db fd 71 5d bb 2b db 75 5d fb 1a b9 42 92 8b ec 94 42 45 d9 cb 52 49 fb 3e 4b b3 9c df 1f 53 | \..q].+.u]...B....BE..RI.>K....S |
00a0 | 69 96 6a 68 4a e6 3e df 4f 9f 0f 73 ce 7b ce fb bc ef bc 33 cf 9c 9d 20 49 12 10 42 08 21 a4 d0 | i.jhJ.>.O..s.{.....3....I..B.!.. |
00c0 | 28 df 3b 00 84 10 42 08 35 3a cc f7 08 21 84 90 e2 c3 7c 8f 10 42 08 29 3e cc f7 08 21 84 90 e2 | (.;...B.5:...!....|..B.)>...!... |
#!/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 test suite(s)
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 "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_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
exit $EXIT_CODE
}
run_flake8
run_tests
run_functional_test
|