Browse Source

test/Makefile.conf for common build information for all tests

Included after main Makefile.conf.
JNI-88
heck 6 years ago
parent
commit
08f4061962
  1. 23
      test/Basic/Makefile
  2. 6
      test/JNI_85/Makefile
  3. 18
      test/Makefile.conf

23
test/Basic/Makefile

@ -1,36 +1,15 @@
include ../../Makefile.conf include ../../Makefile.conf
include ../Makefile.conf
$(info If on Mac, make sure to disable SIP, or copy the libpEpEngine.dylib into here)
ifdef ENGINE_LIB_PATH
ifeq ($(BUILD_FOR),Linux)
ifndef LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$(ENGINE_LIB_PATH)
endif
else ifeq ($(BUILD_FOR),Darwin)
ifndef DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$(ENGINE_LIB_PATH)
endif
endif
endif
CLASSPATH=.:../../src
VM=java -Xcheck:jni -Djava.library.path=../../src
#VM=lldb java -- -Xcheck:jni -Djava.library.path=../src
.PHONY: test clean .PHONY: test clean
test: Testing.class SyncCallbacks.class test: Testing.class SyncCallbacks.class
HOME=$(PWD) CLASSPATH=$(CLASSPATH) time $(VM) Testing HOME=$(PWD) CLASSPATH=$(CLASSPATH) time $(VM) Testing
test-JNI-85:
$(MAKE) -C JNI_85
%.class: %.java %.class: %.java
CLASSPATH=$(CLASSPATH) javac $< CLASSPATH=$(CLASSPATH) javac $<
clean: clean:
$(MAKE) -C JNI_85 clean
rm -f *.class rm -f *.class
rm -f *.log rm -f *.log
rm -f .pEp_* rm -f .pEp_*

6
test/JNI_85/Makefile

@ -1,13 +1,9 @@
include ../../Makefile.conf include ../../Makefile.conf
include ../Makefile.conf
#TODO: Remove when successufuly reproduce the error, and then use it to avoid regression #TODO: Remove when successufuly reproduce the error, and then use it to avoid regression
$(info This is to be run using pEpJNIAdapter 626) $(info This is to be run using pEpJNIAdapter 626)
CLASSPATH=.:../../src
VM=java -Xcheck:jni -Djava.library.path=../../src
#VM=lldb java -- -Xcheck:jni -Djava.library.path=../src
.PHONY: test clean .PHONY: test clean
test: SyncCallbacks.class Step1.class Step2.class test: SyncCallbacks.class Step1.class Step2.class

18
test/Makefile.conf

@ -0,0 +1,18 @@
$(info If on Mac, make sure to disable SIP, or copy the libpEpEngine.dylib into here)
ifdef ENGINE_LIB_PATH
ifeq ($(BUILD_FOR),Linux)
ifndef LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$(ENGINE_LIB_PATH)
endif
else ifeq ($(BUILD_FOR),Darwin)
ifndef DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$(ENGINE_LIB_PATH)
endif
endif
endif
CLASSPATH=.:../../src
VM=java -Xcheck:jni -Djava.library.path=../../src
#VM=lldb java -- -Xcheck:jni -Djava.library.path=../src
Loading…
Cancel
Save