Skip to content
  1. Oct 15, 2010
  2. Oct 12, 2010
    • Johnny Chen's avatar
      Added the capability for the test driver to split the sys.stderr/sys.stdout into · 10093aa5
      Johnny Chen authored
      different configuration-based files using the config file.  For example:
      
          sys.stderr = open("/tmp/lldbtest-stderr", "w")
          sys.stdout = open("/tmp/lldbtest-stdout", "w")
          compilers = ["gcc", "llvm-gcc"]
          archs = ["x86_64", "i386"]
          split_stderr = True # This will split the stderr into configuration-specific file
          split_stdout = True # This will split the stdout into configuration-specific file
      
      will produce:
      
      /tmp/lldbtest-stderr
      /tmp/lldbtest-stderr.arch=i386-compiler=gcc
      /tmp/lldbtest-stderr.arch=i386-compiler=llvm-gcc
      /tmp/lldbtest-stderr.arch=x86_64-compiler=gcc
      /tmp/lldbtest-stderr.arch=x86_64-compiler=llvm-gcc
      /tmp/lldbtest-stdout
      /tmp/lldbtest-stdout.arch=i386-compiler=gcc
      /tmp/lldbtest-stdout.arch=i386-compiler=llvm-gcc
      /tmp/lldbtest-stdout.arch=x86_64-compiler=gcc
      /tmp/lldbtest-stdout.arch=x86_64-compiler=llvm-gcc
      
      as a result of splitting stderr and stdout.  In addition, each configuration can have
      its individual top level relocated directory to house the test files as well as the
      intermediate files by using '-r dir' to relocate the tests into a new relocated directory
      instead of running the tests in place.
      
      llvm-svn: 116341
      10093aa5
  3. Oct 09, 2010
  4. Oct 07, 2010
    • Greg Clayton's avatar
      Cleaned up the SWIG stuff so all includes happen as they should, no pulling · 05faeb71
      Greg Clayton authored
      tricks to get types to resolve. I did this by correctly including the correct
      files: stdint.h and all lldb-*.h files first before including the API files.
      This allowed me to remove all of the hacks that were in the lldb.swig file
      and it also allows all of the #defines in lldb-defines.h and enumerations
      in lldb-enumerations.h to appear in the lldb.py module. This will make the
      python script code a lot more readable.
      
      Cleaned up the "process launch" command to not execute a "process continue"
      command, it now just does what it should have with the internal API calls
      instead of executing another command line command.
      
      Made the lldb_private::Process set the state to launching and attaching if
      WillLaunch/WillAttach return no error respectively.
      
      llvm-svn: 115902
      05faeb71
  5. Oct 06, 2010
  6. Sep 21, 2010
    • Johnny Chen's avatar
      Added the capability to source the configFile specified via the "-c" option in · 209cdbef
      Johnny Chen authored
      order to customize the running of the test suite.  For the time being, the
      supported customizations are:
      
      o redirecting stdout and/or stderr
      o specifying a list of compilers to build the test programs
      o specifying a list of architectures to build the test programs for
      
      Also checked into the examples/test directory some example files which
      demonstrate the usage for the above customizations.
      
      $ ./dotest.py -v -c ~/.lldbtest-config persistent_variables
      $ cat ~/.lldbtest-config
      sys.stderr = open("/tmp/lldbtest-stderr", "w")
      sys.stdout = open("/tmp/lldbtest-stdout", "w")
      compilers = ["gcc", "llvm-gcc"]
      archs = ["x86_64", "i386"]
      $ cat /tmp/lldbtest-stderr
      ----------------------------------------------------------------------
      Collected 1 test
      
      
      Configuration: arch=x86_64 compiler=gcc
      test_persistent_variables (TestPersistentVariables.PersistentVariablesTestCase)
      Test that lldb persistent variables works correctly. ... ok
      
      ----------------------------------------------------------------------
      Ran 1 test in 1.397s
      
      OK
      
      Configuration: arch=x86_64 compiler=llvm-gcc
      test_persistent_variables (TestPersistentVariables.PersistentVariablesTestCase)
      Test that lldb persistent variables works correctly. ... ok
      
      ----------------------------------------------------------------------
      Ran 1 test in 1.282s
      
      OK
      
      Configuration: arch=i386 compiler=gcc
      test_persistent_variables (TestPersistentVariables.PersistentVariablesTestCase)
      Test that lldb persistent variables works correctly. ... ok
      
      ----------------------------------------------------------------------
      Ran 1 test in 1.297s
      
      OK
      
      Configuration: arch=i386 compiler=llvm-gcc
      test_persistent_variables (TestPersistentVariables.PersistentVariablesTestCase)
      Test that lldb persistent variables works correctly. ... ok
      
      ----------------------------------------------------------------------
      Ran 1 test in 1.269s
      
      OK
      $ cat /tmp/lldbtest-stdout
      $ 
      
      llvm-svn: 114380
      209cdbef
  7. Sep 10, 2010
Loading