ant -Dtestcase=foobar test-core-java ? On Mon, Jan 23, 2017 at 11:04 AM, Edward Ribeiro <edward.ribe...@gmail.com> wrote:
> Hello community, > > I am used to run a single unit test with the following command: > > ant -Dtestcase=CreateTest test > > where "-Dtestcase" especifies the test class name as described here: > https://cwiki.apache.org/confluence/display/ZOOKEEPER/HowToContribute > > But for many months, I have seen that, after running the single unit test, > Ant tries to execute the following C++ tests instead of just stopping as > you can seee below. > > Any idea on how to force Ant to stop once it has run the single test? > > Thanks, > Edward > > PS: If this machine had the C libs properly configured it would run all the > C/C++ tests. > > ------------------------------------------------------------ > -------------------------------------------------------- > > junit.run-concurrent: > [echo] Running 1 concurrent JUnit processes. > [junit] Running org.apache.zookeeper.test.CreateTest > [junit] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: > 1,105 sec > > junit.run: > > test-core-java: > > call-test-cppunit: > > init: > > check-cppunit-makefile: > > create-cppunit-makefile: > > init: > > ivy-download: > > ivy-taskdef: > > ivy-init: > > ivy-retrieve: > [ivy:retrieve] :: loading settings :: file = > /home/eribeiro/IdeaProjects/zookeeper/ivysettings.xml > [ivy:retrieve] :: resolving dependencies :: > org.apache.zookeeper#zookeeper;3.6.0-SNAPSHOT > [ivy:retrieve] confs: [default] > [ivy:retrieve] found jline#jline;2.11 in maven2 > [ivy:retrieve] found org.eclipse.jetty#jetty-server;9.2.18.v20160721 in > maven2 > [ivy:retrieve] found javax.servlet#javax.servlet-api;3.1.0 in maven2 > [ivy:retrieve] found org.eclipse.jetty#jetty-http;9.2.18.v20160721 in > maven2 > [ivy:retrieve] found org.eclipse.jetty#jetty-util;9.2.18.v20160721 in > maven2 > [ivy:retrieve] found org.eclipse.jetty#jetty-io;9.2.18.v20160721 in maven2 > [ivy:retrieve] found org.eclipse.jetty#jetty-servlet;9.2.18.v20160721 in > maven2 > [ivy:retrieve] found org.eclipse.jetty#jetty-security;9.2.18.v20160721 in > maven2 > [ivy:retrieve] found org.codehaus.jackson#jackson-mapper-asl;1.9.11 in > maven2 > [ivy:retrieve] found org.codehaus.jackson#jackson-core-asl;1.9.11 in > maven2 > [ivy:retrieve] found org.slf4j#slf4j-api;1.7.5 in maven2 > [ivy:retrieve] found org.slf4j#slf4j-log4j12;1.7.5 in maven2 > [ivy:retrieve] found commons-cli#commons-cli;1.2 in maven2 > [ivy:retrieve] found log4j#log4j;1.2.17 in maven2 > [ivy:retrieve] found io.netty#netty;3.10.5.Final in maven2 > [ivy:retrieve] found net.java.dev.javacc#javacc;5.0 in maven2 > [ivy:retrieve] :: resolution report :: resolve 116ms :: artifacts dl 5ms > --------------------------------------------------------------------- > | | modules || artifacts | > | conf | number| search|dwnlded|evicted|| number|dwnlded| > --------------------------------------------------------------------- > | default | 16 | 0 | 0 | 0 || 16 | 0 | > --------------------------------------------------------------------- > [ivy:retrieve] :: retrieving :: org.apache.zookeeper#zookeeper > [ivy:retrieve] confs: [default] > [ivy:retrieve] 1 artifacts copied, 15 already retrieved (291kB/4ms) > > generate_jute_parser: > [ivy:artifactproperty] DEPRECATED: 'ivy.conf.file' is deprecated, use > 'ivy.settings.file' instead > [ivy:artifactproperty] :: loading settings :: file = > /home/eribeiro/IdeaProjects/zookeeper/ivysettings.xml > [move] Moving 1 file to /home/eribeiro/IdeaProjects/ > zookeeper/build/lib > [javacc] Java Compiler Compiler Version 5.0 (Parser Generator) > [javacc] (type "javacc" with no arguments for help) > [javacc] Reading from file > /home/eribeiro/IdeaProjects/zookeeper/src/java/main/org/ > apache/jute/compiler/generated/rcc.jj > . . . > [javacc] File "TokenMgrError.java" is being rebuilt. > [javacc] File "ParseException.java" is being rebuilt. > [javacc] File "Token.java" is being rebuilt. > [javacc] File "SimpleCharStream.java" is being rebuilt. > [javacc] Parser generated successfully. > > jute: > [javac] Compiling 7 source files to > /home/eribeiro/IdeaProjects/zookeeper/build/classes > [javac] warning: [options] bootstrap class path not set in conjunction > with -source 1.7 > [javac] 1 warning > > compile_jute_uptodate: > > compile_jute: > > clover.setup: > > clover.info: > > clover: > > ver-gen: > > svn-revision: > > version-info: > [java] Unknown REVISION number, using -1 > > process-template: > > build-generated: > [javac] Compiling 1 source file to > /home/eribeiro/IdeaProjects/zookeeper/build/classes > [javac] warning: [options] bootstrap class path not set in conjunction > with -source 1.7 > [javac] 1 warning > > compile: > > jar: > [jar] Building jar: > /home/eribeiro/IdeaProjects/zookeeper/build/zookeeper-3.6.0-SNAPSHOT.jar > > check-cppunit-makefile: > > create-cppunit-makefile: > > test-cppunit: > [exec] CDPATH="${ZSH_VERSION+.}:" && cd > /home/eribeiro/IdeaProjects/zookeeper/src/c && /bin/bash > /home/eribeiro/IdeaProjects/zookeeper/src/c/missing aclocal-1.14 > [exec] Makefile:709: recipe for target > '/home/eribeiro/IdeaProjects/zookeeper/src/c/aclocal.m4' failed > [exec] /home/eribeiro/IdeaProjects/zookeeper/src/c/missing: line 81: > aclocal-1.14: command not found > [exec] WARNING: 'aclocal-1.14' is missing on your system. > [exec] You should only need it if you modified 'acinclude.m4' > or > [exec] 'configure.ac' or m4 files included by 'configure.ac > '. > [exec] The 'aclocal' program is part of the GNU Automake > package: > [exec] <http://www.gnu.org/software/automake> > [exec] It also requires GNU Autoconf, GNU m4 and Perl in > order to run: > [exec] <http://www.gnu.org/software/autoconf> > [exec] <http://www.gnu.org/software/m4/> > [exec] <http://www.perl.org/> > [exec] make: *** > [/home/eribeiro/IdeaProjects/zookeeper/src/c/aclocal.m4] Error 127 > > BUILD FAILED > -- Cheers Michael.