Object: Test for reading kext bundles
authorJustin Bogner <mail@justinbogner.com>
Fri, 27 Feb 2015 18:58:23 +0000 (18:58 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 27 Feb 2015 18:58:23 +0000 (18:58 +0000)
In the review for r230567, it was pointed out we should really test
the lib/Object part of that change. This does so using llvm-readobj.

llvm-svn: 230779

llvm/test/Object/Inputs/macho-empty-kext-bundle-x86-64 [new file with mode: 0755]
llvm/test/Object/kext.test [new file with mode: 0644]

diff --git a/llvm/test/Object/Inputs/macho-empty-kext-bundle-x86-64 b/llvm/test/Object/Inputs/macho-empty-kext-bundle-x86-64
new file mode 100755 (executable)
index 0000000..bf75d30
Binary files /dev/null and b/llvm/test/Object/Inputs/macho-empty-kext-bundle-x86-64 differ
diff --git a/llvm/test/Object/kext.test b/llvm/test/Object/kext.test
new file mode 100644 (file)
index 0000000..8e7c3d1
--- /dev/null
@@ -0,0 +1,7 @@
+// Check that we understand kext bundles.
+// Test input generated by "clang -x c++ -fapple-kext -Wl,-kext /dev/null"
+
+RUN: llvm-readobj %p/Inputs/macho-empty-kext-bundle-x86-64 | FileCheck %s
+CHECK: Format: Mach-O 64-bit x86-64
+CHECK: Arch: x86_64
+CHECK: AddressSize: 64bit