[Lldb-commits] [lldb] r211954 - Updated ObjectFileELF tests to include more varaints.

Todd Fiala todd.fiala at gmail.com
Fri Jun 27 13:07:03 PDT 2014


Author: tfiala
Date: Fri Jun 27 15:07:03 2014
New Revision: 211954

URL: http://llvm.org/viewvc/llvm-project?rev=211954&view=rev
Log:
Updated ObjectFileELF tests to include more varaints.

Removed the distribution EXEs from FreeBSD and Ubuntu.
Added a hello-world .cpp file, and compiled it for
several platform/compiler variants:

Ubuntu 14.04 x86_64, clang 3.5 (the ubuntu1 3.5 pre variant)
Ubuntu 14.04 x86_64, gcc 4.8.2
FreeBSD 10.0 x86_64, clang 3.3
FreeBSD 10.0 x86_64, gcc 4.7.3
NetBSD 6.1 x86_64, gcc 4.5.3

I also added the NetBSD expected architecture and triple.
Note I have NetBSD not appending the version info to the
OS name, in contrast to FreeBSD.

Added:
    lldb/trunk/test/functionalities/object-file/bin/
    lldb/trunk/test/functionalities/object-file/bin/hello-freebsd-10.0-x86_64-clang-3.3   (with props)
    lldb/trunk/test/functionalities/object-file/bin/hello-freebsd-10.0-x86_64-gcc-4.7.3   (with props)
    lldb/trunk/test/functionalities/object-file/bin/hello-netbsd-6.1-x86_64-gcc-4.5.3   (with props)
    lldb/trunk/test/functionalities/object-file/bin/hello-ubuntu-14.04-x86_64-clang-3.5pre   (with props)
    lldb/trunk/test/functionalities/object-file/bin/hello-ubuntu-14.04-x86_64-gcc-4.8.2   (with props)
    lldb/trunk/test/functionalities/object-file/bin/hello.cpp
Removed:
    lldb/trunk/test/functionalities/object-file/ls-freebsd-10.0-x86_64
    lldb/trunk/test/functionalities/object-file/sleep-ubuntu-14.04-x86_64
Modified:
    lldb/trunk/test/functionalities/object-file/TestImageListMultiArchitecture.py

Modified: lldb/trunk/test/functionalities/object-file/TestImageListMultiArchitecture.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/object-file/TestImageListMultiArchitecture.py?rev=211954&r1=211953&r2=211954&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/object-file/TestImageListMultiArchitecture.py (original)
+++ lldb/trunk/test/functionalities/object-file/TestImageListMultiArchitecture.py Fri Jun 27 15:07:03 2014
@@ -4,7 +4,6 @@ This exercises classes like ObjectFileEL
 foreign-architecture object files.
 """
 
-# import os
 import os.path
 import unittest2
 import lldb
@@ -23,12 +22,15 @@ class TestImageListMultiArchitecture(Tes
     def test_image_list_shows_multiple_architectures(self):
         """Test that image list properly shows the correct architecture for a set of different architecture object files."""
         images = {
-            "ls-freebsd-10.0-x86_64": re.compile(r"x86_64-(unknown)?-freebsd10.0 x86_64"),
-            "sleep-ubuntu-14.04-x86_64": re.compile(r"x86_64-(unknown)?-linux x86_64"),
+            "hello-freebsd-10.0-x86_64-clang-3.3": re.compile(r"x86_64-(unknown)?-freebsd10.0 x86_64"),
+            "hello-freebsd-10.0-x86_64-gcc-4.7.3": re.compile(r"x86_64-(unknown)?-freebsd10.0 x86_64"),
+            "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"),
         }
 
         for image_name in images:
-            file_name = os.path.abspath(os.path.join(os.path.dirname(__file__), image_name))
+            file_name = os.path.abspath(os.path.join(os.path.dirname(__file__), "bin", image_name))
             expected_triple_and_arch_regex = images[image_name]
 
             self.runCmd("file {}".format(file_name))

Added: lldb/trunk/test/functionalities/object-file/bin/hello-freebsd-10.0-x86_64-clang-3.3
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/object-file/bin/hello-freebsd-10.0-x86_64-clang-3.3?rev=211954&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lldb/trunk/test/functionalities/object-file/bin/hello-freebsd-10.0-x86_64-clang-3.3
------------------------------------------------------------------------------
    svn:executable = *

Propchange: lldb/trunk/test/functionalities/object-file/bin/hello-freebsd-10.0-x86_64-clang-3.3
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lldb/trunk/test/functionalities/object-file/bin/hello-freebsd-10.0-x86_64-gcc-4.7.3
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/object-file/bin/hello-freebsd-10.0-x86_64-gcc-4.7.3?rev=211954&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lldb/trunk/test/functionalities/object-file/bin/hello-freebsd-10.0-x86_64-gcc-4.7.3
------------------------------------------------------------------------------
    svn:executable = *

Propchange: lldb/trunk/test/functionalities/object-file/bin/hello-freebsd-10.0-x86_64-gcc-4.7.3
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lldb/trunk/test/functionalities/object-file/bin/hello-netbsd-6.1-x86_64-gcc-4.5.3
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/object-file/bin/hello-netbsd-6.1-x86_64-gcc-4.5.3?rev=211954&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lldb/trunk/test/functionalities/object-file/bin/hello-netbsd-6.1-x86_64-gcc-4.5.3
------------------------------------------------------------------------------
    svn:executable = *

Propchange: lldb/trunk/test/functionalities/object-file/bin/hello-netbsd-6.1-x86_64-gcc-4.5.3
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lldb/trunk/test/functionalities/object-file/bin/hello-ubuntu-14.04-x86_64-clang-3.5pre
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/object-file/bin/hello-ubuntu-14.04-x86_64-clang-3.5pre?rev=211954&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lldb/trunk/test/functionalities/object-file/bin/hello-ubuntu-14.04-x86_64-clang-3.5pre
------------------------------------------------------------------------------
    svn:executable = *

Propchange: lldb/trunk/test/functionalities/object-file/bin/hello-ubuntu-14.04-x86_64-clang-3.5pre
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lldb/trunk/test/functionalities/object-file/bin/hello-ubuntu-14.04-x86_64-gcc-4.8.2
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/object-file/bin/hello-ubuntu-14.04-x86_64-gcc-4.8.2?rev=211954&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lldb/trunk/test/functionalities/object-file/bin/hello-ubuntu-14.04-x86_64-gcc-4.8.2
------------------------------------------------------------------------------
    svn:executable = *

Propchange: lldb/trunk/test/functionalities/object-file/bin/hello-ubuntu-14.04-x86_64-gcc-4.8.2
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lldb/trunk/test/functionalities/object-file/bin/hello.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/object-file/bin/hello.cpp?rev=211954&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/object-file/bin/hello.cpp (added)
+++ lldb/trunk/test/functionalities/object-file/bin/hello.cpp Fri Jun 27 15:07:03 2014
@@ -0,0 +1,8 @@
+#include <stdio.h>
+
+int main(int argc, char **argv)
+{
+	printf("Hello, world\n");
+	return 0;
+}
+

Removed: lldb/trunk/test/functionalities/object-file/ls-freebsd-10.0-x86_64
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/object-file/ls-freebsd-10.0-x86_64?rev=211953&view=auto
==============================================================================
Binary file - no diff available.

Removed: lldb/trunk/test/functionalities/object-file/sleep-ubuntu-14.04-x86_64
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/object-file/sleep-ubuntu-14.04-x86_64?rev=211953&view=auto
==============================================================================
Binary file - no diff available.





More information about the lldb-commits mailing list