From cbc3c99703928129152e91940a68518cde14d299 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 16 Dec 2014 10:49:56 +0100 Subject: [PATCH] Improved Android UI tests with zip logs and better verbosity --- liblinphone_tester/Makefile | 3 +- tests/Makefile | 19 ++++----- tests/custom_rules.xml | 78 ++++++++++++++++++++++++++----------- 3 files changed, 65 insertions(+), 35 deletions(-) diff --git a/liblinphone_tester/Makefile b/liblinphone_tester/Makefile index a5d66a92e..a20cfa92d 100644 --- a/liblinphone_tester/Makefile +++ b/liblinphone_tester/Makefile @@ -1,6 +1,5 @@ all: - ant debug - ant installd + ant debug install run-all-tests: all ant test diff --git a/tests/Makefile b/tests/Makefile index 12b2c406c..70a0aeb4c 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,20 +1,17 @@ SDK_PATH=$(shell dirname `which android`) SDK_PLATFORM_TOOLS_PATH=$(shell dirname `which adb`) -run-basic-tests: +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 ../ - ant debug - ant installd - adb shell am instrument -w -e size small org.linphone.test/com.zutubi.android.junitreport.JUnitReportTestRunner - adb shell run-as org.linphone cat /data/data/org.linphone/files/junit-report.xml > linphone-junit-report.xml -run-all-tests: - $(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 ../ - ant debug - ant installd +all: clean + ant debug install + +run-basic-tests: all + ant test + +run-all-tests: all adb shell am instrument -w -e size large org.linphone.test/com.zutubi.android.junitreport.JUnitReportTestRunner adb shell run-as org.linphone cat /data/data/org.linphone/files/junit-report.xml > linphone-junit-report.xml diff --git a/tests/custom_rules.xml b/tests/custom_rules.xml index bce7e0d24..39d0d5358 100644 --- a/tests/custom_rules.xml +++ b/tests/custom_rules.xml @@ -1,26 +1,60 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + Adb log files are put in ${archive.name}.zip + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +