summaryrefslogtreecommitdiffstats
path: root/tests/Android.mk
diff options
context:
space:
mode:
authorHans Boehm <hboehm@google.com>2015-03-11 18:43:24 -0700
committerHans Boehm <hboehm@google.com>2015-04-07 18:05:42 -0700
commit75ca21c698808b61238a3aff3e0a3dfd5ba95d0e (patch)
tree2d53dac90347479e33fe61338a81083c96585644 /tests/Android.mk
parent682ff5e8ad465d74b289590e5c88e0cf129ca90b (diff)
downloadandroid_packages_apps_ExactCalculator-75ca21c698808b61238a3aff3e0a3dfd5ba95d0e.tar.gz
android_packages_apps_ExactCalculator-75ca21c698808b61238a3aff3e0a3dfd5ba95d0e.tar.bz2
android_packages_apps_ExactCalculator-75ca21c698808b61238a3aff3e0a3dfd5ba95d0e.zip
Add tests, fix BoundedRational bugs
Add back some basic test infrastructure from the KitKat calculator, updated to make it work with the current code base and asynchronous expression evaluation. Add BoundedRational tests, designed to check that we get all the corner cases, particularly for degree-based trig functions, right. Fix a couple of BoundedRational typos that caused these tests to fail. Change-Id: I81d8f3d9bde6aa6c20f9958eabd62979babeff5b
Diffstat (limited to 'tests/Android.mk')
-rw-r--r--tests/Android.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/Android.mk b/tests/Android.mk
new file mode 100644
index 0000000..f4a73e7
--- /dev/null
+++ b/tests/Android.mk
@@ -0,0 +1,20 @@
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_SDK_VERSION := current
+
+# We only want this apk build for tests.
+LOCAL_MODULE_TAGS := tests
+
+# LOCAL_JAVA_LIBRARIES := android.test.runner
+
+# Include all test java files.
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+
+LOCAL_PACKAGE_NAME := ExactCalculatorTests
+
+LOCAL_INSTRUMENTATION_FOR := ExactCalculator
+
+LOCAL_AAPT_FLAGS := --rename-manifest-package com.android.exactcalculator.tests
+
+include $(BUILD_PACKAGE)