You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2013/08/20 00:28:27 UTC
[lucy-commits] git commit: refs/heads/omni-test - Add a script which runs all tests.
Updated Branches:
refs/heads/omni-test [created] a504b4dbb
Add a script which runs all tests.
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/a504b4db
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/a504b4db
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/a504b4db
Branch: refs/heads/omni-test
Commit: a504b4dbbdce9cd1b2ca467402357224f1390cc0
Parents: f889486
Author: Marvin Humphrey <ma...@rectangular.com>
Authored: Mon Aug 19 13:27:50 2013 -0700
Committer: Marvin Humphrey <ma...@rectangular.com>
Committed: Mon Aug 19 15:26:05 2013 -0700
----------------------------------------------------------------------
devel/bin/test_all.sh | 68 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/a504b4db/devel/bin/test_all.sh
----------------------------------------------------------------------
diff --git a/devel/bin/test_all.sh b/devel/bin/test_all.sh
new file mode 100755
index 0000000..e2a777e
--- /dev/null
+++ b/devel/bin/test_all.sh
@@ -0,0 +1,68 @@
+#!/bin/sh +B
+
+# 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.
+
+if test ! -f devel/bin/test_all.sh
+then
+ echo Error: can only run from root dir of repository
+ exit 1
+fi
+
+# C
+cd clownfish/compiler/c
+./configure
+make -j
+make -j test
+C_CFC_RESULT=$?
+cd ../../runtime/c
+./configure
+make -j
+make -j test
+C_CFISH_RUNTIME_RESULT=$?
+cd ../../../c
+./configure
+make -j
+make -j test
+C_LUCY_RESULT=$?
+make distclean
+
+# Perl
+cd ../clownfish/compiler/perl
+perl Build.PL
+./Build test
+PERL_CFC_RESULT=$?
+cd ../../runtime/perl
+perl Build.PL
+./Build test
+PERL_CFISH_RUNTIME_RESULT=$?
+cd ../../../perl
+perl Build.PL
+./Build test
+PERL_LUCY_RESULT=$?
+./Build realclean
+
+# Exit with a failing value if any test failed.
+if [ $C_CFC_RESULT -ne 0 ] \
+ || [ $C_CFISH_RUNTIME_RESULT -ne 0 ] \
+ || [ $C_LUCY_RESULT -ne 0 ] \
+ || [ $PERL_CFC_RESULT -ne 0 ] \
+ || [ $PERL_CFISH_RUNTIME_RESULT -ne 0 ] \
+ || [ $PERL_LUCY_RESULT -ne 0 ]
+then
+ exit 1
+fi
+exit 0
+