Skip to content
  1. Aug 27, 2013
    • Daniel Malea's avatar
      merge lldb-platform-work branch (and assorted fixes) into trunk · e0f8f574
      Daniel Malea authored
          Summary:
          This merge brings in the improved 'platform' command that knows how to
          interface with remote machines; that is, query OS/kernel information, push
          and pull files, run shell commands, etc... and implementation for the new
          communication packets that back that interface, at least on Darwin based
          operating systems via the POSIXPlatform class. Linux support is coming soon.
      
          Verified the test suite runs cleanly on Linux (x86_64), build OK on Mac OS
          X Mountain Lion.
      
          Additional improvements (not in the source SVN branch 'lldb-platform-work'):
          - cmake build scripts for lldb-platform
          - cleanup test suite
          - documentation stub for qPlatform_RunCommand
          - use log class instead of printf() directly
          - reverted work-in-progress-looking changes from test/types/TestAbstract.py that work towards running the test suite remotely.
          - add new logging category 'platform'
      
          Reviewers: Matt Kopec, Greg Clayton
      
          Review: http://llvm-reviews.chandlerc.com/D1493
      
      llvm-svn: 189295
      e0f8f574
  2. Aug 06, 2013
  3. Aug 01, 2013
    • Stefanus Du Toit's avatar
      Allow test categories to be skipped. · 6809d79c
      Stefanus Du Toit authored
      This adds a new parameter, --skip-category, that can be used to list
      categories that should be skipped. For example, to run all tests except for
      Objective-C ones, one can now write:
      
        ./dotest.py --skip-category objc [...]
      
      llvm-svn: 187590
      6809d79c
  4. Jul 30, 2013
  5. Jul 03, 2013
  6. Jun 29, 2013
  7. Jun 25, 2013
  8. Jun 22, 2013
  9. Jun 19, 2013
    • Enrico Granata's avatar
      Huge speedup for testsuite categories · 6d2cfb80
      Enrico Granata authored
      This ensures that we won't try to do cleanups of test cases that we are skipping
      e.g. this brings down the time required to run the cmdline category on my machine from ~70s to ~30s
      
      llvm-svn: 184363
      6d2cfb80
  10. Jun 18, 2013
  11. May 30, 2013
  12. May 07, 2013
  13. Apr 12, 2013
    • Enrico Granata's avatar
      New test suite option (-T) · af5bbe8f
      Enrico Granata authored
      When -T is specified, the test suite will call svn info and dump the output on screen (this used to be the default behavior)
      When -T is not specified, this step won't be performed (the new default)
      
      llvm-svn: 179342
      af5bbe8f
    • Enrico Granata's avatar
      When specifying a relative path for the --framework option to dotest.py,... · ea6a58e2
      Enrico Granata authored
      When specifying a relative path for the --framework option to dotest.py, Python would end up being confused and unable to locate the embedded_interpreter module, causing every testcase that uses the Script Interpreter (e.g. functionalities/data-formatter/data-formatter-stl/libstdcpp) to fail without even trying
      This checkin fixes that problem by absolutizing the path before pushing it to the sys.path
      
      llvm-svn: 179341
      ea6a58e2
  14. Mar 13, 2013
  15. Mar 07, 2013
  16. Feb 27, 2013
    • Enrico Granata's avatar
      <rdar://problem/13289828> · d7ac9816
      Enrico Granata authored
      Categories were conceptually meant to be placeable on test methods as well as test classes and test directories
      However, that was broken. This checkin fixes that.
      The incantation required to put categories on individual test case methods is not exactly elegant, unfortunately:
      
      def test_case(self):
          """Test me."""
          self.do_it()
      
      def _test_case_get_categories(self):
          return ["demo"]
      
      test_case.getCategories = _test_case_get_categories
      del _test_case_get_categories
      
      llvm-svn: 176158
      d7ac9816
  17. Feb 26, 2013
    • Jim Ingham's avatar
      Fix the .categories, it had "dataformatter" not "dataformatters". · d882998e
      Jim Ingham authored
      Remove the getCategory from TestDataFormatterObjC.py, since it was superceded by the .categories file, 
      and didn't work anyway (getCategories currently has to be a method on the test class, not on the test.)
      Add a "basic_process" category, and start to find some tests for simple process running sniff tests.
      
      llvm-svn: 176061
      d882998e
  18. Feb 23, 2013
    • Enrico Granata's avatar
      <rdar://problem/12362092> · e6cedc12
      Enrico Granata authored
      The decorators @expectedFailure (plain and special-case like i386, clang, ...) are modified to optionally take a bugnumber argument
      If such an argument is specified, the failure report (or unexpected success report) will include the information passed in as part of the message
      This is mostly useful for associating failures to issue IDs in issue management systems (e.g. the LLVM bugzilla)
      
      llvm-svn: 175942
      e6cedc12
  19. Feb 20, 2013
  20. Feb 19, 2013
  21. Feb 16, 2013
  22. Feb 15, 2013
    • Daniel Malea's avatar
      Improve test harness for the buildbots · cbaef266
      Daniel Malea authored
      - Add a "parsable" mode to dotest.py that outputs test results in exactly the same format as clang's lit tests
      - Improve dosep script to output list of failing tests (output should look like clang test failure summaries)
      - Cleanup lldb/test/Makefile to remove needless parameters and environment variables
      - Switch makefile tests to use parsable-mode output; should make the buildbot results parsable
      - Switch makefile tests to use dosep to log catch crashing tests (instead of halting the test suite)
      
      llvm-svn: 175309
      cbaef266
    • Enrico Granata's avatar
      Daniel Malea caught an issue where calling dotest.py with an invalid directory... · 8628bc59
      Enrico Granata authored
      Daniel Malea caught an issue where calling dotest.py with an invalid directory would cause the progressbar init code to raise an exception
      This commit fixes it
      
      llvm-svn: 175229
      8628bc59
  23. Feb 09, 2013
    • Enrico Granata's avatar
      The new progress bar mode was losing us information compared to the old dots... · eba9e4a3
      Enrico Granata authored
      The new progress bar mode was losing us information compared to the old dots mode in that we would have no way of knowing about test failures (short of peeking into the test result directory.. and you're not supposed to peek!)
      
      Added a new line of information that reports the count of tests that pass, fail or have other things happen to them.
      
      Again no flag to have the dots back. If you care, let us know!
      
      llvm-svn: 174784
      eba9e4a3
    • Enrico Granata's avatar
      <rdar://problem/13176279> · a94ee7da
      Enrico Granata authored
      The LLDB test suite now shows a progress bar instead of dots when not in verbose mode
      If you crave the dots, make your Terminal window smaller than 10 columns :-)
      (or ask for a flag to have the dots come back on demand)
      
      llvm-svn: 174777
      a94ee7da
  24. Feb 08, 2013
  25. Feb 06, 2013
  26. Jan 05, 2013
    • Daniel Malea's avatar
      Fix lldb -P on Linux · 53430eb8
      Daniel Malea authored
      - now prints the correct PYTHONPATH
      - update dotest.py to use lldb -P result correctly
      - resolves TestPublicAPIHeaders test failure (on Linux)
      
      llvm-svn: 171558
      53430eb8
  27. Dec 21, 2012
  28. Dec 14, 2012
    • Enrico Granata's avatar
      Fixing the -f option so that one specify multiple filters, e.g. · 73f601fb
      Enrico Granata authored
      ./dotest.py  -C clang --arch x86_64 --arch i386  -v -t -f ObjCDataFormatterTestCase.test_appkit_with_dsym_and_run_command -f ObjCDataFormatterTestCase.test_appkit_with_dwarf_and_run_command -f TestObjCBuiltinTypes.test_with_dsym_and_python_api -f TestObjCBuiltinTypes.test_with_dwarf_and_python_api -f ObjCDataFormatterTestCase.test_appkit_with_dsym_and_run_command -f ObjCDataFormatterTestCase.test_appkit_with_dwarf_and_run_command -f TestObjCBuiltinTypes.test_with_dsym_and_python_api -f -TestObjCBuiltinTypes.test_with_dwarf_and_python_api
      
      The previous implementation would only remember the last filter passed, and consequently break redo.py
      
      llvm-svn: 170163
      73f601fb
  29. Nov 20, 2012
  30. Nov 01, 2012
  31. Oct 25, 2012
  32. Oct 24, 2012
  33. Oct 23, 2012
  34. Sep 26, 2012
  35. Sep 21, 2012
    • Enrico Granata's avatar
      Initial commit of a new testsuite feature: test categories. · 165f8af8
      Enrico Granata authored
      This feature allows us to group test cases into logical groups (categories), and to only run a subset of test cases based on these categories.
      
      Each test-case can have a new method getCategories(self): which returns a list of strings that are the categories to which the test case belongs.
      If a test-case does not provide its own categories, we will look for categories in the class that contains the test case.
      If that fails too, the default implementation looks for a .category file, which contains a comma separated list of strings.
      The test suite will recurse look for .categories up until the top level directory (which we guarantee will have an empty .category file).
      
      The driver dotest.py has a new --category <foo> option, which can be repeated, and specifies which categories of tests you want to run.
      (example: ./dotest.py --category objc --category expression)
      
      All tests that do not belong to any specified category will be skipped. Other filtering options still exist and should not interfere with category filtering.
      A few tests have been categorized. Feel free to categorize others, and to suggest new categories that we could want to use.
      
      All categories need to be validly defined in dotest.py, or the test suite will refuse to run when you use them as arguments to --category.
      
      In the end, failures will be reported on a per-category basis, as well as in the usual format.
      
      This is the very first stage of this feature. Feel free to chime in with ideas for improvements!
      
      llvm-svn: 164403
      165f8af8
  36. Sep 04, 2012
    • Greg Clayton's avatar
      Patch from Filipe Cabecinhas that uses argparse in dotest.py instead of a hand... · 5ec9645f
      Greg Clayton authored
      Patch from Filipe Cabecinhas that uses argparse in dotest.py instead of a hand coded option. I made a few modifications:
      
      Changed the '-A' option to also have a long option of '--arch'. This is now specified multiple times to get multiple architectures.
      
      Old: -A i386^x86_64
      New: -A i386 -A x86_64
           --arch i386 --arch x86_64
           
      Changed the '-C' option to also have a long option of '--compiler'. This is now specified multiple times to get multiple compiler.
      
      Old: -C clang^gcc
      New: -C clang -C gcc
           --compiler clang --compiler gcc
      llvm-svn: 163141
      5ec9645f
Loading