Skip to content

Commit

Permalink
Run conformance tests against Java for the Travis build.
Browse files Browse the repository at this point in the history
Change-Id: I8ef8664f7facf86028be3f4f0d5d2efc8a685d6d
  • Loading branch information
haberman committed May 7, 2015
1 parent 1f34eb6 commit 9681ef4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ script:
- cd python && python setup.py build && python setup.py test && cd ..
- export LD_LIBRARY_PATH=../src/.libs
- cd python && python setup.py build --cpp_implementation && python setup.py test --cpp_implementation && cd ..
- cd conformance && make test_java && cd ..
- make distcheck -j2
notifications:
email: false
4 changes: 2 additions & 2 deletions conformance/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ MAINTAINERCLEANFILES = \
Makefile.in

javac_middleman: ConformanceJava.java protoc_middleman
javac ConformanceJava.java com/google/protobuf/conformance/Conformance.java
javac -classpath ../java/target/classes ConformanceJava.java com/google/protobuf/conformance/Conformance.java
@touch javac_middleman

conformance-java: javac_middleman
@echo "Writing shortcut script conformance-java..."
@echo '#! /bin/sh' > conformance-java
@echo 'java -classpath .:$$CLASSPATH ConformanceJava "$$@"' >> conformance-java
@echo 'java -classpath .:../java/target/classes ConformanceJava "$$@"' >> conformance-java
@chmod +x conformance-java

# Targets for actually running tests.
Expand Down

0 comments on commit 9681ef4

Please sign in to comment.