1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 18:12:46 +01:00

dist: remove obsolete testsuite

This commit is contained in:
test 2016-03-05 15:45:15 +01:00 committed by Kaspar Schleiser
parent 32d48bb16b
commit ac44264dfa
6 changed files with 0 additions and 123 deletions

View File

@ -1,9 +0,0 @@
#!/usr/bin/env bash
test -f ~/.buildbot && . ~/.buildbot
export REVISION=${1}
export ROOT=${ROOT:-.}
${ROOT}/tools/testsuite/svn_test_revision.sh ${REVISION}
${ROOT}/tools/testsuite/generate_html.sh

View File

@ -1,25 +0,0 @@
#!/usr/bin/env bash
ROOT=${ROOT:-.}
TOOLROOT=${TOOLROOT:-${ROOT}}
HTMLDIR=${TOOLROOT}/tools/testsuite/html
test -f ~/.buildbot && . ~/.buildbot
OUTFILE=${HTMLFILE:-${HOME}/riot.html}
LOGDIR=${BUILDLOGS:-${HOME}/buildlogs}
{
cat ${HTMLDIR}/header
for i in `ls -t $LOGDIR/*.log`; do
${TOOLROOT}/tools/testsuite/parse_buildlog.sh $i
if [ "x${HTTPROOT}x"!="xx" ]; then
echo "<br>"
echo "Full build log: <a href=\"${HTTPROOT}/`basename ${i}`\"> click here </a>."
fi
done
cat ${HTMLDIR}/footer
} > ${OUTFILE}

View File

@ -1 +0,0 @@
</body>

View File

@ -1,5 +0,0 @@
<html>
<header>
<title> Feuerwhere Build Bot results </title>
</header>
<body>

View File

@ -1,41 +0,0 @@
#!/usr/bin/env bash
LOG=${1}
if [ "xx${PARSELOG_ALWAYS}xx"=!"xxyxx" ]; then
if [ -f ${LOG}.parsed ]; then
cat ${LOG}.parsed
exit 0
fi
fi
{
#BUILD_FAIL=`grep '\[BUILD FAILED\]' ${LOG} | wc -l`
NUM_FAIL=`grep '\[.* FAILED\]' ${LOG} | wc -l`
NUM_OK=`grep '\[TEST SUCCESSFUL\]' ${LOG} | wc -l`
REVISION=`awk '/^Revision:/ { print $2; exit}' $LOG`
REPO=`awk '/^Repo:/ { print $2; exit}' $LOG`
if [ -f ${LOG}.lock ]; then
BUILD_STATUS="build in progress..."
elif (($NUM_FAIL==0)); then
BUILD_STATUS="OK"
else
BUILD_STATUS="broken!"
fi
echo "<h2>Revision: ${REVISION} Status: ${BUILD_STATUS}</h2>"
svn log --incremental -v -l 1 ${REPO}@${REVISION} | sed -e 's/$/<br>/'
echo "------------------------------------------------------------------------<br>"
if (($NUM_FAIL==0)); then
true
else
echo "<br> Failed builds/tests: <br>"
grep '\[.* FAILED\]' ${LOG} | uniq | sed -e 's/$/<br>/'
fi
} | tee ${1}.parsed

View File

@ -1,42 +0,0 @@
#!/usr/bin/env bash
TOOLROOT=${TOOLROOT:-.}
flash() {
echo "Building ${1}..."
jam -aq flash || ( echo "[BUILD FAILED] ${1}" && false )
}
run_tests() {
TESTDIR=projects/${1}/tests
flash ${APPLICATION} || return
for tst in `ls ${TESTDIR}/`; do
echo "Project \"${1}\": Running test ${tst}..."
$TESTDIR/$tst || (
echo
echo "[TEST FAILED] ${TESTDIR}/${tst}"
) || echo "[TEST SUCCESSFUL] ${TESTDIR}/${tst}"
done
}
echo
echo "Running tests..."
echo
for i in projects/*; do
export APPLICATION=`basename $i`
if [ -d projects/${APPLICATION}/tests ]; then
{
echo "Testing project ${APPLICATION}..."
PORT="`sh ${TOOLROOT}/tools/lock_board.sh`"
FLASHUTIL_SHELL="sh -c"
echo "Using Target connecting to ${PORT}."
export PORT FLASHUTIL_SHELL
run_tests ${APPLICATION}
sh ${TOOLROOT}/tools/unlock_board.sh ${PORT}
} 2>&1
fi
done