From: Roger Meier Date: Thu, 17 Mar 2011 19:13:36 +0000 (+0000) Subject: THRIFT-1091 integrate JavaScript Test into Testsuite via make check X-Git-Tag: 0.7.0~148 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=f2495760feb8d30087bd27945c46993d092960fa;p=common%2Fthrift.git THRIFT-1091 integrate JavaScript Test into Testsuite via make check git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1082649 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/configure.ac b/configure.ac index 49843ba6..05014718 100644 --- a/configure.ac +++ b/configure.ac @@ -468,6 +468,7 @@ AC_CONFIG_FILES([ lib/erl/src/Makefile lib/hs/Makefile lib/java/Makefile + lib/js/test/Makefile lib/perl/Makefile lib/perl/test/Makefile lib/php/Makefile diff --git a/lib/Makefile.am b/lib/Makefile.am index 8538afa3..3b4c8bab 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -33,6 +33,9 @@ endif if WITH_JAVA SUBDIRS += java +# JavaScript unit test depends on java +# so test only if java, ant & co is available +SUBDIRS += js/test endif if WITH_PYTHON diff --git a/lib/js/test/Makefile.am b/lib/js/test/Makefile.am new file mode 100755 index 00000000..14927c40 --- /dev/null +++ b/lib/js/test/Makefile.am @@ -0,0 +1,29 @@ +# +# 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. +# + +export CLASSPATH + +# Make sure this doesn't fail if ant is not configured. +clean-local: + ANT=$(ANT) ; if test -z "$$ANT" ; then ANT=: ; fi ; \ + $$ANT $(ANT_FLAGS) clean + +check-local: all + $(ANT) $(ANT_FLAGS) test + diff --git a/lib/js/test/build.xml b/lib/js/test/build.xml index be4e7d5a..ddf5df82 100644 --- a/lib/js/test/build.xml +++ b/lib/js/test/build.xml @@ -103,7 +103,7 @@ - + @@ -119,7 +119,10 @@ - + + + +