forked from kivy/pyjnius
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue kivy#162 by making 'make tests' pass.
- Loading branch information
1 parent
cca4da3
commit 4f8c918
Showing
2 changed files
with
26 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,26 @@ | ||
.PHONY: build_ext tests | ||
|
||
JAVAC_OPTS=-target 1.6 -source 1.6 | ||
JAVAC=javac $(JAVAC_OPTS) | ||
|
||
build_ext: | ||
javac jnius/src/org/jnius/NativeInvocationHandler.java | ||
$(JAVAC) jnius/src/org/jnius/NativeInvocationHandler.java | ||
python setup.py build_ext --inplace -f -g | ||
|
||
clean: | ||
find . -name "*.class" -exec rm {} \; | ||
rm -rf build | ||
|
||
html: | ||
$(MAKE) -C docs html | ||
|
||
tests: build_ext | ||
cd tests && javac org/jnius/HelloWorld.java | ||
cd tests && javac org/jnius/BasicsTest.java | ||
cd tests && javac org/jnius/MultipleMethods.java | ||
cd tests && javac org/jnius/SimpleEnum.java | ||
cd tests && javac org/jnius/InterfaceWithPublicEnum.java | ||
cd tests && javac org/jnius/ClassArgument.java | ||
cd tests && javac org/jnius/MultipleDimensions.java | ||
cd tests && $(JAVAC) org/jnius/HelloWorld.java | ||
cd tests && $(JAVAC) org/jnius/BasicsTest.java | ||
cd tests && $(JAVAC) org/jnius/MultipleMethods.java | ||
cd tests && $(JAVAC) org/jnius/SimpleEnum.java | ||
cd tests && $(JAVAC) org/jnius/InterfaceWithPublicEnum.java | ||
cd tests && $(JAVAC) org/jnius/ClassArgument.java | ||
cd tests && $(JAVAC) org/jnius/MultipleDimensions.java | ||
cp jnius/src/org/jnius/NativeInvocationHandler.class tests/org/jnius | ||
cd tests && env PYTHONPATH=..:$(PYTHONPATH) nosetests-2.7 -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters