1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
-
+
-
-
-
+
+
+
|
#! /bin/bash
# Update PATH to include path to Tclkit, otherwise cross-compiles will fail
PATH="${PATH}:/home/rkeene/bin"
PATH="${PATH}:/home/rkeene/bin:/usr/local/bin"
export PATH
# Define build and web paths
KITCREATORDIR="/home/rkeene/devel/kitcreator"
WEBROOTDIR="/web/rkeene/devel/kitcreator/kitbuild"
export KITCREATORDIR WEBROOTDIR
cd "${KITCREATORDIR}" || exit 1
SVN_LCR="$(svn info -R . | grep '^Last Changed Rev:' | sed 's@^.*: *@@' | sort -n | tail -1)"
TESTNAME="svn_r${SVN_LCR}"
export SVN_LCR TESTNAME
FOSSIL_CHANGE="$(fossil timeline -n 1 | grep '^[0-9:]* \[' | sed 's@^[0-9:]* \[\([0-9a-f]*\)\].*$@\1@')"
TESTNAME="fossil_${FOSSIL_CHANGE}"
export FOSSIL_CHANGE TESTNAME
if [ -d "${WEBROOTDIR}/${TESTNAME}" ]; then
# Don't re-run the tests if nothing has changed
exit 0
fi
cd build/test || exit 1
|
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
-
-
+
+
|
# Clean builds
rm -rf kits
# Run tests
nice -n 20 ./test >/dev/null 2>/dev/null
# Clean old SVN published results
rm -rf "${WEBROOTDIR}"/svn_r*/
# Clean old auto-generated published results
rm -rf "${WEBROOTDIR}"/svn_r*/ "${WEBROOTDIR}"/fossil_*/
# Publish New Results
./publish-tests "${TESTNAME}"
# Clean
rm -f '__AUTO_TESTS_RUNNING__'
exit 0
|