Skip to content
  1. May 06, 2011
  2. May 05, 2011
  3. May 04, 2011
  4. May 03, 2011
  5. Apr 27, 2011
  6. Apr 22, 2011
  7. Apr 19, 2011
  8. Apr 18, 2011
  9. Apr 15, 2011
  10. Mar 23, 2011
    • Johnny Chen's avatar
      Turns out that the test failure wrt: · ac77f3b2
      Johnny Chen authored
          rdar://problem/9173060 lldb hangs while running unique-types
      
      disappears if running with clang version >= 3.  Modify the TestUniqueTypes.py
      to detect if we are running with clang version < 3 and, if true, skip the test.
      
      Update the lldbtest.system() function to return a tuple of (stdoutdata, stderrdata)
      since we need the stderr data from "clang -v" command.  Modify existing clients of
      lldbtest.system() to now use, for example:
      
               # First, capture the golden output emitted by the oracle, i.e., the
               # series of printf statements.
      -        go = system("./a.out", sender=self)
      +        go = system("./a.out", sender=self)[0]
               # This golden list contains a list of (variable, value) pairs extracted
               # from the golden output.
               gl = []
      
      And add two utility functions to lldbutil.py.
      
      llvm-svn: 128162
      ac77f3b2
  11. Mar 12, 2011
    • Johnny Chen's avatar
      Add a test directory stop-hook to test the newly added "target stop-hook" command. · b877f1ef
      Johnny Chen authored
      This uses pexpect module to spawn a 'lldb' program and uses pseudo-TTY to talk to
      the child application.
      
      The test cases test setting breakpoints, adding a stop-hook with line range, and
      verifies that when the inferior stops, the stop-hook will fire off when it is
      within range and will not fire off when it is out of range.
      
      llvm-svn: 127519
      b877f1ef
  12. Mar 11, 2011
  13. Jan 27, 2011
  14. Jan 23, 2011
  15. Jan 19, 2011
  16. Dec 23, 2010
  17. Dec 15, 2010
  18. Dec 13, 2010
  19. Dec 10, 2010
  20. Dec 09, 2010
  21. Dec 08, 2010
  22. Dec 06, 2010
  23. Dec 04, 2010
  24. Dec 02, 2010
  25. Dec 01, 2010
    • Johnny Chen's avatar
      Add a '-b blacklistFile' option to the test driver to take a file specifying the · 75739045
      Johnny Chen authored
      test classes or test cases to be excludued from the test suite.
      
      Check in an example blacklist file: blacklist.py:
      
      """
      'blacklist' is a Python dictionary, it stores the mapping of a string describing
      either a testclass or a testcase, i.e, testclass.testmethod, to the reason (a
      string) it is blacklisted.
      
      Following is an example which states that test class IntegerTypesExprTestCase
      should be skipped because 'This test class crashed' and the test case
      FoundationTestCase.test_data_type_and_expr_with_dsym should be skipped because
      it is 'Temporarily disabled'.
      
      blacklist = {'IntegerTypesExprTestCase': 'This test class crashed',
                   'FoundationTestCase.test_data_type_and_expr_with_dsym': 'Temporarily disabled'
                   }
      """
      
      blacklist = {}
      
      An example of invoking the test driver and specifying a blacklist file:
      
      ./dotest.py -b blacklist.py -v types
      
      This runs the tests under 'types' directory but excludes the tests specified in
      balcklist.py.
      
      llvm-svn: 120620
      75739045
  26. Nov 29, 2010
  27. Nov 17, 2010
    • Johnny Chen's avatar
      Make the string matching for 'frame variable' more stringent with respect to · 80e6db9c
      Johnny Chen authored
      output from clang and llvm-gcc compiled program; both generate the correct debug
      info with respect to the typedef scoped inside a namespace.
      
      Add a TestBase.getCompiler(self) method which returns the compiler in effect the
      test suite is now running with.  Subclasses (like TestNamespace) can use it to
      distinguish among different compilers.
      
      llvm-svn: 119445
      80e6db9c
  28. Nov 12, 2010
  29. Nov 11, 2010
  30. Nov 10, 2010
  31. Nov 09, 2010
    • Johnny Chen's avatar
      When dumping the session log for a failed/errored test, also emit the command to · 07569be7
      Johnny Chen authored
      invoke the test driver to rerun the very same test.  Example output:
      
      /Volumes/data/lldb/svn/trunk/test $ tail 2010-11-09-14_51_34/ExpectedFailure-TestSettings.SettingsCommandTestCase.test_set_output_path.log 
      
      Traceback (most recent call last):
        File "/Volumes/data/lldb/svn/trunk/test/settings/TestSettings.py", line 136, in test_set_output_path
          "'stdout.txt' exists due to target.process.output-path.")
      AssertionError: False is not True : 'stdout.txt' exists due to target.process.output-path.
      
      
      To rerun this test, issue the following command from the 'test' directory:
      
      ./dotest.py -v -t -f SettingsCommandTestCase.test_set_output_path
      
      llvm-svn: 118646
      07569be7
Loading