summaryrefslogtreecommitdiff
authorPekka Paalanen <ppaalanen@gmail.com>2012-08-22 06:25:21 (GMT)
committer Pekka Paalanen <ppaalanen@gmail.com>2012-08-22 07:12:37 (GMT)
commita47a8849aba89482b27636bb8f8c5e35e410be91 (patch) (side-by-side diff)
treeafd4cb05e5fb3801f5c237487a9e44f8fca0eaf2
parentf37fee0c7b55f87c1afc12210f3516de0f1b71b0 (diff)
downloadandrogenizer-a47a8849aba89482b27636bb8f8c5e35e410be91.tar.gz
androgenizer-a47a8849aba89482b27636bb8f8c5e35e410be91.tar.bz2
Add a test with the reference output
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--Makefile5
-rw-r--r--test-reference.txt41
-rwxr-xr-xtest.bash3
3 files changed, 48 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a0ea012..651b46c 100644
--- a/Makefile
+++ b/Makefile
@@ -18,3 +18,8 @@ Android.mk: androgenizer
-:CFLAGS $(CFLAGS) \
> $@
+test: androgenizer
+ ./test.bash 2> /dev/null | diff -u test-reference.txt -
+ @echo " *** Test: success ***"
+
+.PHONY: all clean test
diff --git a/test-reference.txt b/test-reference.txt
new file mode 100644
index 0000000..1970a67
--- a/dev/null
+++ b/test-reference.txt
@@ -0,0 +1,41 @@
+# This file is generated by androgenizer for:
+# [ ] NDK
+# [x] system
+
+LOCAL_PATH:=$(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE:=libxkbcommon
+
+LOCAL_MODULE_TAGS:=eng debug
+
+LOCAL_SRC_FILES := \
+ xkbcomp/action.c \
+ xkbcomp/alias.c \
+ xkbcomp/compat.c
+
+LOCAL_SHARED_LIBRARIES:=\
+ libmust_keep_lib \
+ libmust_keep_lib_2
+
+LOCAL_CFLAGS := \
+ -DHAVE_CONFIG_H \
+ -DDFLT_XKB_CONFIG_ROOT=\"\" \
+ -include libxkbcommon/absolute_top/parent/config.h \
+ -include $(LOCAL_PATH)/src/config.h \
+ -DMALLOC_0_RETURNS_NULL
+
+LOCAL_C_INCLUDES := \
+ $(LOCAL_PATH) \
+ libxkbcommon/absolute_top \
+ $(LOCAL_PATH)/this_no/space \
+ $(LOCAL_PATH)/this_with/space \
+ libxkbcommon/absolute_top/parent/no_space \
+ libxkbcommon/absolute_top/parent/with-space \
+ .hidden_dir \
+ .hidden_dir/space \
+ rootpath \
+ doubleslash
+
+LOCAL_PRELINK_MODULE := false
+include $(BUILD_STATIC_LIBRARY)
diff --git a/test.bash b/test.bash
index 8756bb1..2e9b039 100755
--- a/test.bash
+++ b/test.bash
@@ -19,5 +19,6 @@ export ANDROID_BUILD_TOP=/android/build/top
-I//android/build/top/doubleslash \
-include ../parent/config.h \
-include ./src/config.h -DMALLOC_0_RETURNS_NULL \
- -:LDFLAGS -no-undefined
+ -:LDFLAGS -no-undefined -lmust_keep_lib -pthread -version-info 1:2:3 \
+ -lmust_keep_lib_2