linphone-android/tests/Makefile
2016-11-09 14:40:32 +01:00

27 lines
797 B
Makefile

SDK_PATH=$(shell dirname `which android`)
SDK_PLATFORM_TOOLS_PATH=$(shell dirname `which adb`)
ANT_SILENT=$(shell ant -h | grep -q -- -S && echo 1 || echo 0)
ifeq ($(ANT_SILENT), 1)
ANT=ant -e -S
else
ANT=ant -e
endif
clean:
$(SDK_PLATFORM_TOOLS_PATH)/adb uninstall org.linphone.test
$(SDK_PLATFORM_TOOLS_PATH)/adb uninstall org.linphone
$(SDK_PATH)/android update test-project --path . -m ../
all: clean
ant clean debug
$(SDK_PLATFORM_TOOLS_PATH)/adb install -g bin/LinphoneTest-debug.apk
$(SDK_PLATFORM_TOOLS_PATH)/adb install -g ../bin/Linphone-debug.apk
run-basic-tests: all
ant -e test -Dtest.size=small
if [ ! -s linphone-junit-report-small.xml ]; then exit 1; fi
run-all-tests: all
ant -e test -Dtest.size=large
if [ ! -s linphone-junit-report-large.xml ]; then exit 1; fi