15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
-
+
-
-
-
-
-
+
+
-
-
-
|
TESTNAME="fossil_${FOSSIL_CHANGE}"
export FOSSIL_CHANGE TESTNAME
# On Wednesday, do a distclean to force redownloading everything (mainly
# for CVS Head) and force a rebuild to ensure up-to-date build status
if [ "$(date '+%u')" = "3" ]; then
./kitcreator distclean || exit 1
else
touch "${KITCREATORDIR}/build/test/force_nightly"
fi
if [ -d "${WEBROOTDIR}/${TESTNAME}" ]; then
# Don't re-run the tests if nothing has changed
if [ -d "${WEBROOTDIR}/${TESTNAME}" ]; then
# Don't re-run the tests if nothing has changed
if [ -f "${KITCREATORDIR}/build/test/force_nightly" ]; then
rm -f "${KITCREATORDIR}/build/test/force_nightly"
else
exit 0
fi
fi
cd build/test || exit 1
if [ ! -x test -o ! -x publish-tests ]; then
|
54
55
56
57
58
59
60
61
62
63
64
|
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
+
+
+
+
|
# Clean old auto-generated published results
rm -rf "${WEBROOTDIR}"/svn_r*/ "${WEBROOTDIR}"/fossil_*/
# Publish New Results
./publish-tests "${TESTNAME}"
# Create nightly symlink
rm -f "${WEBROOTDIR}/nightly"
ln -s "${TESTNAME}" "${WEBROOTDIR}/nightly"
# Clean
rm -f '__AUTO_TESTS_RUNNING__'
exit 0
|