Check-in [c2be59edab]
Overview
SHA1:c2be59edab4fd19f0aee7a813fcfbc83f107173a
Date: 2011-05-21 13:49:48
User: rkeene
Comment:Added basic sanity check to nightly testing script
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2011-05-21
13:57
[b00d829cca] Updated to use FOSSIL_CHANGE as UUID for download, to prevent potential race condition (user: rkeene, tags: trunk)
13:49
[c2be59edab] Added basic sanity check to nightly testing script (user: rkeene, tags: trunk)
13:46
[318d5dfec1] Updated nightly test suite to work in clean space (user: rkeene, tags: trunk)
Changes

Modified build/test/do-nightly-tests-and-publish from [cae4b1c112] to [751816bb2c].

11
12
13
14
15
16
17


















18
19
20
21
22
23
24
TMPWORKDIR="${TMPDIR:-/var/tmp}/kitcreator-test-$$${RANDOM}${RANDOM}${RANDOM}"
export KITCREATORFOSSIL WEBROOTDIR MARKERFILE TMPWORKDIR

# Determine change of fossil revision
FOSSIL_CHANGE="$(fossil timeline --repository "${KITCREATORFOSSIL}" -n 1 -t ci | grep '^[0-9:]* \[' | sed 's@^[0-9:]* \[\([0-9a-f]*\)\].*$@\1@')"
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
	if [ -d "${WEBROOTDIR}/${TESTNAME}" ]; then
		# Don't re-run the tests if nothing has changed
		exit 0







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
TMPWORKDIR="${TMPDIR:-/var/tmp}/kitcreator-test-$$${RANDOM}${RANDOM}${RANDOM}"
export KITCREATORFOSSIL WEBROOTDIR MARKERFILE TMPWORKDIR

# Determine change of fossil revision
FOSSIL_CHANGE="$(fossil timeline --repository "${KITCREATORFOSSIL}" -n 1 -t ci | grep '^[0-9:]* \[' | sed 's@^[0-9:]* \[\([0-9a-f]*\)\].*$@\1@')"
TESTNAME="fossil_${FOSSIL_CHANGE}"
export FOSSIL_CHANGE TESTNAME

# Verify sanity
issane=1
if [ ! -f "${KITCREATORFOSSIL}" ]; then
	echo "Missing Kitcreator Fossil Repo: ${KITCREATORFOSSIL}" >&2

	issane=0
fi

if [ ! -d "${WEBROOTDIR}" ]; then
	echo "Missing Web Root Directory: ${WEBROOTDIR}" >&2

	issane=0
fi

if [ "${issane}" = '0' ]; then
	exit 1
fi

# 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
	if [ -d "${WEBROOTDIR}/${TESTNAME}" ]; then
		# Don't re-run the tests if nothing has changed
		exit 0