summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/alias/TestAliases.py
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate redundant Alias test and improve Common Short Spellings test ↵Adrian McCarthy2015-04-241-166/+0
| | | | | | http://reviews.llvm.org/D9268 llvm-svn: 235790
* Replace sys.platform skips in tests with @skip decorators which check ↵Robert Flack2015-03-301-1/+1
| | | | | | | | | | | | | | | | against remote platform. Adds @skipIfPlatform and @skipUnlessPlatform decorators which will skip if / unless the target platform is in the provided platform list. Test Plan: ninja check-lldb shows no regressions. When running cross platform, tests which cannot run on the target platform are skipped. Differential Revision: http://reviews.llvm.org/D8665 llvm-svn: 233547
* Fix help test cases after r226068Ed Maste2015-01-201-2/+2
| | | | | | | From: Ilia K <ki.stfu@gmail.com> Differential Revision: http://reviews.llvm.org/D7066 llvm-svn: 226568
* Relax alias test for failing commandEd Maste2014-01-201-2/+1
| | | | | | | | | | | | | | | | | | | | The alias test "exprf x 1234" expands to "expr -f x 1234" and is expected to fail: it ends up trying to evaluate the invalid expression void $__lldb_expr(void *$__lldb_arg) { -f x 1234; } On FreeBSD LLDB ends up finding a static function f() in a math library, and thus the error produced does not include "use of undeclared identifier 'f'". We will report failure to parse the expression in any case, so require only that error message. llvm-svn: 199623
* Massive test suite cleanup to stop everyone from manually having to compute ↵Greg Clayton2013-12-101-1/+1
| | | | | | | | | | "mydir" inside each test case. This has led to many test suite failures because of copy and paste where new test cases were based off of other test cases and the "mydir" variable wasn't updated. Now you can call your superclasses "compute_mydir()" function with "__file__" as the sole argument and the relative path will be computed for you. llvm-svn: 196985
* Restore -- "end of args" marker for shellEd Maste2013-09-051-2/+2
| | | | | | | I accidentally dropped this in r189879 in the change from /bin/bash to /bin/sh. llvm-svn: 190103
* Fix minor bugs in TestExprs and TestAliases to fix buildbot breakageDaniel Malea2013-09-051-2/+2
| | | | | | | - 'run' alias no longer includes the '--' for positional arguments... does not seem like a real bug. - 2.234f is not a great number for the float tests (due to precision/printing issues) so use 0.5f instead llvm-svn: 190100
* Switch '/bin/bash' to '/bin/sh'Ed Maste2013-09-031-4/+4
| | | | | | | | /bin/sh is more portable, and all systems with /bin/bash are expected to have /bin/sh as well, even if only a link to bash. Review: http://llvm-reviews.chandlerc.com/D1576 llvm-svn: 189879
* Expression evaluation works on FreeBSD after switch to MCJITEd Maste2013-08-301-1/+0
| | | | | | http://www.llvm.org/pr16697 llvm-svn: 189668
* tests: Mark expected FreeBSD failures due to pr16697Ed Maste2013-07-301-0/+1
| | | | llvm-svn: 187415
* Fix single whitespace before breakpoint filename in some tests due to r183932.Matt Kopec2013-06-171-1/+1
| | | | llvm-svn: 184104
* Making the buildbot happy again after changes to the default formatter for ↵Enrico Granata2013-03-281-1/+1
| | | | | | char[] llvm-svn: 178295
* <rdar://problem/12028723>Enrico Granata2013-01-091-10/+10
| | | | | | | | | | Adding useful formatting options to the expression (expr) command. As a side effect of this change, the -d option now supports the same three-values enumeration that frame variables uses (run, don't run, none) instead of a boolean like it did previously These options do not apply to print, p or po because these are aliased to not take any options. In order to use them, use expression or expr. llvm-svn: 171993
* Fix all the test case breakages caused by folks writing tests all over the ↵Jim Ingham2012-09-221-6/+8
| | | | | | | | place that depended explicitly on the output of "break set". Please don't do this sort of thing!!!!! llvm-svn: 164433
* Fixed the test for the new process launch abbreviation.Filipe Cabecinhas2012-05-181-4/+4
| | | | llvm-svn: 157050
* Cleanup after functionalities/alias/TestAliases.pyFilipe Cabecinhas2012-05-161-0/+17
| | | | | | | | | | | This test is run after TestAbbreviations and was making runCmd("h") fail in that test, on the second tested architecture (two commands would be avilable for "h": "help" and "hello"). Later I'm sending a patch for review to add some information to the error message for that case. llvm-svn: 156918
* Add a new option to the test driver, -N dsym or -N dwarf, in order to ↵Johnny Chen2012-04-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exclude tests decorated with either @dsym_test or @dwarf_test to be executed during the testsuite run. There are still lots of Test*.py files which have not been decorated with the new decorator. An example: # From TestMyFirstWatchpoint.py -> class HelloWatchpointTestCase(TestBase): mydir = os.path.join("functionalities", "watchpoint", "hello_watchpoint") @dsym_test def test_hello_watchpoint_with_dsym_using_watchpoint_set(self): """Test a simple sequence of watchpoint creation and watchpoint hit.""" self.buildDsym(dictionary=self.d) self.setTearDownCleanup(dictionary=self.d) self.hello_watchpoint() @dwarf_test def test_hello_watchpoint_with_dwarf_using_watchpoint_set(self): """Test a simple sequence of watchpoint creation and watchpoint hit.""" self.buildDwarf(dictionary=self.d) self.setTearDownCleanup(dictionary=self.d) self.hello_watchpoint() # Invocation -> [17:50:14] johnny:/Volumes/data/lldb/svn/ToT/test $ ./dotest.py -N dsym -v -p TestMyFirstWatchpoint.py LLDB build dir: /Volumes/data/lldb/svn/ToT/build/Debug LLDB-137 Path: /Volumes/data/lldb/svn/ToT URL: https://johnny@llvm.org/svn/llvm-project/lldb/trunk Repository Root: https://johnny@llvm.org/svn/llvm-project Repository UUID: 91177308-0d34-0410-b5e6-96231b3b80d8 Revision: 154133 Node Kind: directory Schedule: normal Last Changed Author: gclayton Last Changed Rev: 154109 Last Changed Date: 2012-04-05 10:43:02 -0700 (Thu, 05 Apr 2012) Session logs for test failures/errors/unexpected successes will go into directory '2012-04-05-17_50_49' Command invoked: python ./dotest.py -N dsym -v -p TestMyFirstWatchpoint.py compilers=['clang'] Configuration: arch=x86_64 compiler=clang ---------------------------------------------------------------------- Collected 2 tests 1: test_hello_watchpoint_with_dsym_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) Test a simple sequence of watchpoint creation and watchpoint hit. ... skipped 'dsym tests' 2: test_hello_watchpoint_with_dwarf_using_watchpoint_set (TestMyFirstWatchpoint.HelloWatchpointTestCase) Test a simple sequence of watchpoint creation and watchpoint hit. ... ok ---------------------------------------------------------------------- Ran 2 tests in 1.138s OK (skipped=1) Session logs for test failures/errors/unexpected successes can be found in directory '2012-04-05-17_50_49' [17:50:50] johnny:/Volumes/data/lldb/svn/ToT/test $ llvm-svn: 154154
* Fix the test suite failure. The particular line in the test case was there ↵Johnny Chen2011-11-071-1/+1
| | | | | | | | | since the initial version dated 2010-21-15. The test started failure recently probably due to work done on the command parsing. Anyway, the specific test sequence is invalid and is fixed now. llvm-svn: 144039
* Adding two new options to the 'help' command:Enrico Granata2011-09-091-0/+8
| | | | | | | | | | | --show-aliases (-a) shows aliases for commands, as well as built-in commands --hide-user-defined (-u) hides user defined commands by default 'help' without arguments does not show aliases anymore. to see them, add --show-aliases to have only built-in commands appear, use 'help --hide-user-defined' ; there is currently no way to hide built-in commands from the help output 'help command' is not changed by this commit, and help is shown even if command is an alias and -a is not specified llvm-svn: 139377
* Moved the test code for Python commands out of the test case for aliases, ↵Enrico Granata2011-08-241-38/+0
| | | | | | into its own dedicated test case llvm-svn: 138444
* - Support for Python namespaces:Enrico Granata2011-08-221-2/+2
| | | | | | | | | | | If you have a Python module foo, in order to use its contained objects in LLDB you do not need to use 'from foo import *'. You can use 'import foo', and then refer to items in foo as 'foo.bar', and LLDB will know how to resolve bar as a member of foo. Accordingly, GNU libstdc++ formatters have been moved from the global namespace to gnu_libstdcpp and a few test cases are also updated to reflect the new convention. Python docs suggest using a plain 'import' en lieu of 'from-import'. llvm-svn: 138244
* When defining a scripted command, it is possible to provide a docstring and ↵Enrico Granata2011-08-171-0/+4
| | | | | | | | | | that will be used as the help text for the command If no docstring is provided, a default help text is created LLDB will refuse to create scripted commands if the scripting language is anything but Python Some additional comments in AppleObjCRuntimeV2.cpp to describe the memory layout expected by the dynamic type lookup code llvm-svn: 137801
* Changes to Python commands:Enrico Granata2011-08-161-3/+11
| | | | | | | | | | | | - They now have an SBCommandReturnObject instead of an SBStream as third argument - The class CommandObjectPythonFunction has been merged into CommandObjectCommands.cpp - The command to manage them is now: command script with subcommands add, list, delete, clear command alias is returned to its previous functionality - Python commands are now part of an user dictionary, instead of being seen as aliases llvm-svn: 137785
* Python commands:Enrico Granata2011-08-161-0/+24
| | | | | | | | | | | | | It is now possible to use 'command alias --python' to define a command name that actually triggers execution of a Python function (e.g. command alias --python foo foo_impl makes a command named 'foo' that runs Python function 'foo_impl') The Python function foo_impl should have as signature: def foo_impl(debugger, args, stream, dict): where debugger is an object wrapping an LLDB SBDebugger args is the command line arguments, as an unparsed Python string stream is an SBStream that represents the standard output dict is an internal utility parameter and should be left untouched The function should return None on no error, or an error string to describe any problems llvm-svn: 137722
* A couple of directory renamings; get rid of 'tests' from the directory names.Johnny Chen2011-06-261-0/+140
llvm-svn: 133893
OpenPOWER on IntegriCloud