trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zw...@apache.org
Subject trafficserver git commit: Add a simple wrapper to loop over all tsqa scripts
Date Fri, 09 Jan 2015 00:05:36 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master 49f83a423 -> be1ba3bee


Add a simple wrapper to loop over all tsqa scripts


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/be1ba3be
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/be1ba3be
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/be1ba3be

Branch: refs/heads/master
Commit: be1ba3bee9b319988e73e608f13ef7c4b37f6794
Parents: 49f83a4
Author: Leif Hedstrom <zwoop@apache.org>
Authored: Thu Jan 8 17:05:31 2015 -0700
Committer: Leif Hedstrom <zwoop@apache.org>
Committed: Thu Jan 8 17:05:31 2015 -0700

----------------------------------------------------------------------
 ci/tsqa/run_all.sh | 47 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/be1ba3be/ci/tsqa/run_all.sh
----------------------------------------------------------------------
diff --git a/ci/tsqa/run_all.sh b/ci/tsqa/run_all.sh
new file mode 100644
index 0000000..c6a0dda
--- /dev/null
+++ b/ci/tsqa/run_all.sh
@@ -0,0 +1,47 @@
+#!/bin/sh
+#
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+OK=()
+FAIL=()
+STATUS=0
+
+# Run all tests, record the results
+for test in test-*; do
+    echo "--> Starting test: $test"
+    ./${test}
+    res=$?
+    if [ $res != 0 ]; then
+	echo "Failure: ${test}"
+	FAIL+=(${test})
+	STATUS=1
+    else
+	echo "Success: ${test}"
+	OK+=(${test})
+    fi
+done
+
+echo "RESULTS"
+echo "======="
+for t in ${OK[@]}; do
+    echo "$t	...OK"
+done
+for t in ${FAIL[@]}; do
+    echo "$t	...FAIL"
+done
+
+exit ${STATUS}


Mime
View raw message