[ARVADOS-DEV] updated: 05e6f52d0cf418ee7d727b5e034d45a60a246ba3

git at public.curoverse.com git at public.curoverse.com
Mon Aug 18 11:17:21 EDT 2014


Summary of changes:
 jenkins/run-tests.sh | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

       via  05e6f52d0cf418ee7d727b5e034d45a60a246ba3 (commit)
       via  9b75f439dcdfeb850487c59863c680c9edd772a1 (commit)
      from  06f6b31925a51c5100017c4a05bba430d29252a4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 05e6f52d0cf418ee7d727b5e034d45a60a246ba3
Author: Tom Clegg <tom at curoverse.com>
Date:   Mon Aug 18 10:48:19 2014 -0400

    Display elapsed time for each test/install.

diff --git a/jenkins/run-tests.sh b/jenkins/run-tests.sh
index 028f0a3..0d89dcf 100755
--- a/jenkins/run-tests.sh
+++ b/jenkins/run-tests.sh
@@ -66,16 +66,25 @@ done
 checkexit() {
     if [[ "$?" != "0" ]]; then
         title "!!!!!! $1 FAILED !!!!!!"
-        failures+=("$1")
+        failures+=("$1 (`timer`)")
     else
-        successes+=("$1")
+        successes+=("$1 (`timer`)")
     fi
 }
 
+timer_reset() {
+    t0=$SECONDS
+}
+
+timer() {
+    echo -n "$(($SECONDS - $t0))s"
+}
+
 do_test() {
     if [[ -z "${skip[$1]}" ]] && ( [[ -z "$only" ]] || [[ "$only" == "$1" ]] )
     then
         title "Running $1 tests"
+        timer_reset
         if [[ "$2" == "go" ]]
         then
             go test "git.curoverse.com/arvados.git/$1"
@@ -83,7 +92,7 @@ do_test() {
             "test_$1"
         fi
         checkexit "$1 tests"
-        title "End of $1 tests"
+        title "End of $1 tests (`timer`)"
     else
         title "Skipping $1 tests"
     fi
@@ -91,6 +100,7 @@ do_test() {
 
 do_install() {
     title "Running $1 install"
+    timer_reset
     if [[ "$2" == "go" ]]
     then
         go get -t "git.curoverse.com/arvados.git/$1"
@@ -98,7 +108,7 @@ do_install() {
         "install_$1"
     fi
     checkexit "$1 install"
-    title "End of $1 install"
+    title "End of $1 install (`timer`)"
 }
 
 title () {

commit 9b75f439dcdfeb850487c59863c680c9edd772a1
Author: Tom Clegg <tom at curoverse.com>
Date:   Mon Aug 18 10:48:00 2014 -0400

    Add missing "install fuse" and "test workbench".

diff --git a/jenkins/run-tests.sh b/jenkins/run-tests.sh
index f4e729a..028f0a3 100755
--- a/jenkins/run-tests.sh
+++ b/jenkins/run-tests.sh
@@ -235,17 +235,19 @@ install_fuse() {
         && python setup.py test \
         && easy_install *.egg
 }
+do_install fuse
 
 for g in "${gostuff[@]}"
 do
     do_test "$g" go
 done
 
-install_workbench() {
+test_workbench() {
     cd "$WORKSPACE/apps/workbench" \
         && bundle install --deployment \
         && bundle exec rake test
 }
+do_test workbench
 
 test_cli() {
     title "Starting SDK CLI tests"

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list