Skip to content
  1. Jan 19, 2011
  2. Dec 23, 2010
  3. Dec 15, 2010
  4. Dec 13, 2010
  5. Dec 10, 2010
  6. Dec 09, 2010
  7. Dec 08, 2010
  8. Dec 06, 2010
  9. Dec 04, 2010
  10. Dec 02, 2010
  11. 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
  12. Nov 29, 2010
  13. 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
  14. Nov 12, 2010
  15. Nov 11, 2010
  16. Nov 10, 2010
  17. 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
    • Johnny Chen's avatar
      Distinguish between the assert messages for runCmd and expect. The former now · c0c67f27
      Johnny Chen authored
      takes the form:
      
          "Command '%s' returns successfully" % str
      
      and the latter takes the form:
      
          "'%s' returns expected result" % str
          or
          "'%s' matches expected result" % str
      
      llvm-svn: 118599
      c0c67f27
  18. Nov 06, 2010
  19. Nov 05, 2010
  20. Nov 03, 2010
  21. Nov 01, 2010
  22. Oct 28, 2010
  23. Oct 23, 2010
  24. Oct 22, 2010
  25. Oct 21, 2010
    • Johnny Chen's avatar
      Add an option '-s session-dir-name' to overwrite the default timestamp-named · 096011ee
      Johnny Chen authored
      directory used to dump the session info for test failures/errors.
      
      Example:
      
      /Volumes/data/lldb/svn/trunk/test $ ./dotest.py -s jason -v array_types
      
      Session info for test errors or failures will go into directory jason
      ----------------------------------------------------------------------
      Collected 4 tests
      
      test_with_dsym_and_python_api (TestArrayTypes.ArrayTypesTestCase)
      Use Python APIs to inspect variables with array types. ... ok
      test_with_dsym_and_run_command (TestArrayTypes.ArrayTypesTestCase)
      Test 'frame variable var_name' on some variables with array types. ... ok
      test_with_dwarf_and_python_api (TestArrayTypes.ArrayTypesTestCase)
      Use Python APIs to inspect variables with array types. ... ok
      test_with_dwarf_and_run_command (TestArrayTypes.ArrayTypesTestCase)
      Test 'frame variable var_name' on some variables with array types. ... FAIL
      
      ======================================================================
      FAIL: test_with_dwarf_and_run_command (TestArrayTypes.ArrayTypesTestCase)
      Test 'frame variable var_name' on some variables with array types.
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/Volumes/data/lldb/svn/trunk/test/array_types/TestArrayTypes.py", line 27, in test_with_dwarf_and_run_command
          self.array_types()
        File "/Volumes/data/lldb/svn/trunk/test/array_types/TestArrayTypes.py", line 62, in array_types
          'stop reason = breakpoint'])
        File "/Volumes/data/lldb/svn/trunk/test/lldbtest.py", line 594, in expect
          self.runCmd(str, trace = (True if trace else False), check = not error)
        File "/Volumes/data/lldb/svn/trunk/test/lldbtest.py", line 564, in runCmd
          msg if msg else CMD_MSG(cmd, True))
      AssertionError: False is not True : Command 'thread list' returns successfully
      
      ----------------------------------------------------------------------
      Ran 4 tests in 3.086s
      
      FAILED (failures=1)
      /Volumes/data/lldb/svn/trunk/test $ ls jason
      TestArrayTypes.ArrayTypesTestCase.test_with_dwarf_and_run_command.log
      /Volumes/data/lldb/svn/trunk/test $ head -10 jason/TestArrayTypes.ArrayTypesTestCase.test_with_dwarf_and_run_command.log 
      Session info generated @ Thu Oct 21 09:54:15 2010
      
      os command: [['/bin/sh', '-c', 'make clean; make MAKE_DSYM=NO']]
      stdout: rm -rf "a.out" "a.out.dSYM"  main.o main.d
      cc -arch x86_64 -gdwarf-2 -O0   -c -o main.o main.c
      cc -arch x86_64 -gdwarf-2 -O0  main.o -o "a.out"
      
      stderr: None
      retcode: 0
      
      /Volumes/data/lldb/svn/trunk/test $ 
      
      llvm-svn: 117028
      096011ee
  26. Oct 20, 2010
  27. Oct 19, 2010
Loading