aboutsummaryrefslogtreecommitdiffstats
path: root/run_integration_test.rb
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-04-09 18:33:52 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-04-09 18:33:52 +0900
commitb40f4a046b7d8a2de53031a590760f1954761ade (patch)
treeb76cca4046be5b90a003f8e28fdc12e9de2c47d9 /run_integration_test.rb
parentde01a5734f281d8f098cde8caf3e04a1962f6c47 (diff)
downloadandroid_build_kati-b40f4a046b7d8a2de53031a590760f1954761ade.tar.gz
android_build_kati-b40f4a046b7d8a2de53031a590760f1954761ade.tar.bz2
android_build_kati-b40f4a046b7d8a2de53031a590760f1954761ade.zip
Add dump-products as an integration test
Diffstat (limited to 'run_integration_test.rb')
-rwxr-xr-xrun_integration_test.rb19
1 files changed, 18 insertions, 1 deletions
diff --git a/run_integration_test.rb b/run_integration_test.rb
index c862d4d..7b1a76f 100755
--- a/run_integration_test.rb
+++ b/run_integration_test.rb
@@ -25,7 +25,9 @@ class TestCase
end
def normalize_log(log, out)
- log = log.gsub(/[ \t]+/, ' ').split("\n").sort.join("\n")
+ log = log.gsub(/[ \t]+/, ' ').split("\n").sort.join("\n").sub(/ Stop\.$/, '')
+ # This is a completely sane warning from kati for Android.
+ log.sub!(%r(build/core/product_config.mk:152: warning: Unmatched parens: .*\n), '')
File.open(out, 'w') do |of|
of.print log
end
@@ -78,6 +80,20 @@ class GitTestCase < TestCase
end
end
+class AndroidTestCase < TestCase
+ def initialize
+ name = 'android'
+ checkout = Proc.new{|tc|
+ FileUtils.mkdir_p(@name)
+ Dir.chdir(@name) {
+ check_command("tar -xzf ../android.tgz")
+ }
+ }
+
+ super(name, checkout, DO_NOTHING, DO_NOTHING, 'dump-products')
+ end
+end
+
DO_NOTHING = Proc.new{|tc|}
MAKE_CLEAN = Proc.new{|tc|
check_command("make clean > /dev/null")
@@ -99,6 +115,7 @@ TESTS = [
CONFIGURE,
MAKE_CLEAN,
''),
+ AndroidTestCase.new(),
]
fails = []