Add kalimba architecture checking to TestImageListMultiArchitecture
authorTodd Fiala <todd.fiala@gmail.com>
Wed, 23 Jul 2014 15:16:35 +0000 (15:16 +0000)
committerTodd Fiala <todd.fiala@gmail.com>
Wed, 23 Jul 2014 15:16:35 +0000 (15:16 +0000)
Verify that ObjectFileELF's kalimba detection works regardless
of the host platform.

Change by Matthew Gardiner.

llvm-svn: 213763

lldb/test/functionalities/object-file/TestImageListMultiArchitecture.py
lldb/test/functionalities/object-file/bin/hello-unknown-kalimba_arch4-kcc-36 [new file with mode: 0644]
lldb/test/functionalities/object-file/bin/hello.c [new file with mode: 0644]

index fb7a1c2..b9bd95c 100644 (file)
@@ -27,6 +27,7 @@ class TestImageListMultiArchitecture(TestBase):
             "hello-netbsd-6.1-x86_64-gcc-4.5.3": re.compile(r"x86_64-(unknown)?-netbsd x86_64"),
             "hello-ubuntu-14.04-x86_64-gcc-4.8.2": re.compile(r"x86_64-(unknown)?-linux x86_64"),
             "hello-ubuntu-14.04-x86_64-clang-3.5pre": re.compile(r"x86_64-(unknown)?-linux x86_64"),
+            "hello-unknown-kalimba_arch4-kcc-36": re.compile(r"kalimba-csr-unknown kalimba"),
         }
 
         for image_name in images:
diff --git a/lldb/test/functionalities/object-file/bin/hello-unknown-kalimba_arch4-kcc-36 b/lldb/test/functionalities/object-file/bin/hello-unknown-kalimba_arch4-kcc-36
new file mode 100644 (file)
index 0000000..8e4dd8c
Binary files /dev/null and b/lldb/test/functionalities/object-file/bin/hello-unknown-kalimba_arch4-kcc-36 differ
diff --git a/lldb/test/functionalities/object-file/bin/hello.c b/lldb/test/functionalities/object-file/bin/hello.c
new file mode 100644 (file)
index 0000000..8c80400
--- /dev/null
@@ -0,0 +1,8 @@
+#include <stdio.h>
+
+int main(int argc, char **argv)
+{
+       printf("Hello, world\n");
+       return 0;
+}
+