Fix building linux examples and test for future failure (#284)
* fix building linux examples and test for future failure * fix cd back and typo
This commit is contained in:
parent
b12224d8a6
commit
5109e2835f
@ -1,3 +1,5 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import random, string, random
|
||||
chars = string.ascii_uppercase + string.digits
|
||||
|
||||
|
||||
@ -1,14 +1,23 @@
|
||||
#!/bin/bash
|
||||
RV=0
|
||||
cd examples/linux
|
||||
if make; then
|
||||
echo "Successfully built Linux examples"
|
||||
else
|
||||
echo "Failed to build Linux examples"
|
||||
RV=1
|
||||
fi
|
||||
cd ../..
|
||||
|
||||
coverage erase
|
||||
coverage run -m unittest discover tests/ 2>&1 >/dev/null | tee travis_tests.log
|
||||
DID_OK=$(tail -n1 travis_tests.log)
|
||||
RV=1
|
||||
if [[ "${DID_OK}" == OK* ]]
|
||||
then
|
||||
echo "All functionality tests passed :)"
|
||||
RV=0
|
||||
else
|
||||
echo "Some functionality tests failed :("
|
||||
RV=1
|
||||
fi
|
||||
|
||||
measure_cov() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user