Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
f9f257ef6eb1c22380d8d3630b63203ae100fd2f
[simgrid.git] / examples / java / java_test.mk
1 #########################
2 # How to compile the code
3 # All this to only get a dumb javac *java... Automake still have issues with java
4
5 JAVAROOT=.
6 CLASSPATH=$(top_srcdir)/src/java
7
8 AM_JAVACFLAGS=-I$(top_srcdir)/src/java
9
10
11 ##########################
12 # What to do on make check
13 # We need to rely on an external script (../runtest) because automake adds a ./ in front of the test name
14 # We need to override LD_LIBRARY_PATH so that the VM finds the libsimgrid4java.so
15 # We need to override the CLASSPATH to add simgrid.jar and current dir to the picture
16 # We also need to express dependencies manually (in each test dir)
17 # Damn...
18 TESTS_ENVIRONMENT=LD_LIBRARY_PATH="$(top_srcdir)/src/.libs:$$LD_LIBRARY_PATH" \
19                   CLASSPATH=".:$(top_srcdir)/src/simgrid.jar:$$CLASSPATH" \
20                   $(srcdir)/../runtest 
21
22 # declare that we must recompile everything before lauching tests
23 $(TESTS): classnoinst.stamp