[CalendarServer-changes] [12025] CalendarServer/trunk/test
source_changes at macosforge.org
source_changes at macosforge.org
Wed Mar 12 11:21:00 PDT 2014
Revision: 12025
http://trac.calendarserver.org//changeset/12025
Author: wsanchez at apple.com
Date: 2013-12-03 14:14:06 -0800 (Tue, 03 Dec 2013)
Log Message:
-----------
Print environment.
Modified Paths:
--------------
CalendarServer/trunk/test
Modified: CalendarServer/trunk/test
===================================================================
--- CalendarServer/trunk/test 2013-12-03 20:50:29 UTC (rev 12024)
+++ CalendarServer/trunk/test 2013-12-03 22:14:06 UTC (rev 12025)
@@ -21,7 +21,9 @@
wd="$(cd "$(dirname "$0")" && pwd -L)";
-#. "${wd}/support/build.sh";
+##
+# Options
+##
do_setup="false";
do_get="false";
@@ -82,11 +84,28 @@
flaky=true;
fi;
+# Print environment
+env
+
+##
+# Clean up
+##
+
find "${wd}" -name \*.pyc -print0 | xargs -0 rm;
+
+##
+# Unit tests
+##
+
mkdir -p "${wd}/data";
cd "${wd}" && "${wd}/bin/trial" --temp-directory="${wd}/data/trial" --rterrors ${reactor} ${random} ${until_fail} ${no_colour} ${coverage} ${numjobs} ${test_modules};
+
+##
+# Code linting
+##
+
if ${flaky}; then
echo "";
echo "Running pyflakes...";
@@ -110,7 +129,7 @@
#tmp="$(mktemp "/tmp/calendarserver_test_flakish.XXXXX")";
#echo "";
-#echo "Checking for other issues..."
+#echo "Checking for legacy print statements..."
#search_py 'print *[^(]' | sed 's|#.*||' | grep 'print *[^(]' > "${tmp}" || true;
#if [ -s "${tmp}" ]; then
# echo "**** Use of legacy print statement found. ****";
@@ -119,6 +138,11 @@
#fi;
#rm -f "${tmp}";
+
+##
+# Empty files
+##
+
tmp="$(mktemp "/tmp/calendarserver_test_emtpy.XXXXX")";
find "${wd}" '!' '(' -type d '(' -path '*/.*' -or -name data ')' -prune ')' -type f -size 0 > "${tmp}";
if [ -s "${tmp}" ]; then
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20140312/12804ae2/attachment.html>
More information about the calendarserver-changes
mailing list