- Sep 27, 2010
-
-
Johnny Chen authored
llvm-svn: 114875
-
Johnny Chen authored
test cases. llvm-svn: 114872
-
Johnny Chen authored
Added a special "clean" target to the types/Makefile to clean up all the *.o/.d files. The generic_type_tester() method is modified to take a set of atoms, instead of type string as a required parameter, for example: o unsigned int => set(['unsigned', 'int']) o unsigned long long => set(['unsigned', 'long long']) o long long => set(['long long']) llvm-svn: 114871
-
Johnny Chen authored
Also added "settings set -r prompt" to reset the prompt afterwards. llvm-svn: 114846
-
- Sep 25, 2010
-
-
Johnny Chen authored
llvm-svn: 114770
-
Johnny Chen authored
Extended generic_type_tester() method to take an additional keyword argument quoteDisplay (default to False) to facilitate comparison with frame variable display output of character types. llvm-svn: 114769
-
- Sep 24, 2010
-
-
Johnny Chen authored
a base of 0 so that the radix of the string is determined based on the contents of string. llvm-svn: 114764
-
Johnny Chen authored
of various combinations of data structures with unsigned int or unsigned long builtin types. llvm-svn: 114756
-
Johnny Chen authored
llvm-svn: 114739
-
Johnny Chen authored
testing various combinations of displaying variales of basic types. The generic_type_tester() works by first capturing the golden output produced by the printf stmts of ./a.out, creating a list of (var, value) pairs, and then running the a.out to a stop point, and comparing the 'frame variable var' output against the list of (var, value) pairs. Modified int_type() and added long_type() to use generic_type_tester(). Also modified TestBase.expect() such that substring matching also return ok if the substring starts at the 0-th position. llvm-svn: 114708
-
- Sep 23, 2010
-
-
Johnny Chen authored
llvm-svn: 114660
-
Johnny Chen authored
llvm-svn: 114652
-
Johnny Chen authored
llvm-svn: 114649
-
Johnny Chen authored
actually test-and-compare anything yet. The lldbtest.TestBase has an added method setTearDownCleanup(dictionary=None) to facilitate running the cleanup right after each data type test is run. The test case can pass a dictionary object when registering the test case cleanup. There is currently only int_type test in the repository. llvm-svn: 114600
-
- Sep 22, 2010
-
-
Johnny Chen authored
rdar://problem/8464339 test/types directory: b basic_type.cpp:171 does not work, while gdb does work. llvm-svn: 114557
-
Greg Clayton authored
variety of ways they can be displayed in variable views. llvm-svn: 114530
-
Johnny Chen authored
llvm-svn: 114513
-
Johnny Chen authored
llvm-svn: 114505
-
Johnny Chen authored
themselves. Right now, it tests a breakpoint both before and after it has been resolved. Updated lldbtest.TestBase.expect() with an additional keyword argument 'exe' ( default to True), which if set to False, will treat the mandatory first argument as just the string to be matched/or not-matched against the golden input. llvm-svn: 114501
-
Johnny Chen authored
And removed the informational output from the conditional_break test case. llvm-svn: 114493
-
- Sep 21, 2010
-
-
Johnny Chen authored
of 'breakpoint command add/list/remove' commands to set breakpoint callbacks, list them, and then remove one. Modified the lldbtest.TestBase.expect() method to add two additional keyword arguments: o matching (default to True), which, if set to False, reverses the semantics of 'expect' to 'expect not' o patterns (default to None), which specifies a list of regexp patterns to match against the output from running the command TestBreakpointCommand.py uses the matching=False and the patterns=[...] expect() API. llvm-svn: 114480
-
Johnny Chen authored
@expectedFailure as of r114384. llvm-svn: 114466
-
Johnny Chen authored
llvm-svn: 114381
-
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
-
Johnny Chen authored
stderr so as not to disrupt the information emitted by the unittest framework. llvm-svn: 114377
-
- Sep 20, 2010
-
-
Caroline Tice authored
the parent of Process settings; add 'default-arch' as a class-wide setting for Target. Replace lldb::GetDefaultArchitecture with Target::GetDefaultArchitecture & Target::SetDefaultArchitecture. Add 'use-external-editor' as user setting to Debugger class & update code appropriately. Add Error parameter to methods that get user settings, for easier reporting of bad requests. Fix various other minor related bugs. Fix test cases to work with new changes. llvm-svn: 114352
-
Johnny Chen authored
llvm-svn: 114333
-
Johnny Chen authored
llvm-svn: 114332
-
Johnny Chen authored
rdar://problem/8449849 llvm-svn: 114328
-
- Sep 19, 2010
-
-
Johnny Chen authored
llvm-svn: 114307
-
Johnny Chen authored
llvm-svn: 114305
-
- Sep 18, 2010
-
-
Johnny Chen authored
the running of the test suite. Right now, it doesn't do anything with the config file. Pass "-c myConfigFile" to specify the config file. llvm-svn: 114245
-
Johnny Chen authored
llvm-svn: 114232
-
Johnny Chen authored
to evaluate expressions. Marked with @expectedFailure decorators for the time being. Enhanced the lldbtest.TestBase.expect() API to allow an additional keyword arg named "error". If the client passes "error=True", it signifies that an error while running the command is expected. The golden input is then compared against the return object's error output. llvm-svn: 114228
-
- Sep 17, 2010
-
-
Johnny Chen authored
llvm-svn: 114210
-
Johnny Chen authored
(lldb) breakpoint set -S description and a compilation unit defined instance method with: (lldb) breakpoint set -n '-[MyString initWithNSString:]' llvm-svn: 114134
-
- Sep 16, 2010
-
-
Johnny Chen authored
llvm-svn: 114120
-
Johnny Chen authored
Modified Makefile.rules to allow for overwriting the ARCH make variable. llvm-svn: 114118
-
Johnny Chen authored
checks that the launched process writes its standard output there. llvm-svn: 114102
-
Johnny Chen authored
build tree relative search path in order to locate the lldb.py module. When '-i' is present, the test driver relies on the PYTHONPATH environment variable to locate the lldb.py module. llvm-svn: 114094
-