This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC 7/8] mi/python: Add tests for python-defined MI commands


>>>>> "Jan" == Jan Vrany <jan.vrany@fit.cvut.cz> writes:

Jan> gdb/testsuite/Changelog:
Jan> 	* gdb.python/py-mi-cmd.exp: New file.
Jan> 	* gdb.python/py-mi-cmd-1.py: New file.

Thanks for doing this.  This looks good.

Jan> diff --git a/gdb/testsuite/gdb.python/py-mi-cmd-1.py b/gdb/testsuite/gdb.python/py-mi-cmd-1.py
Jan> new file mode 100644
Jan> index 0000000000..2e73c022a3
Jan> --- /dev/null
Jan> +++ b/gdb/testsuite/gdb.python/py-mi-cmd-1.py
Jan> @@ -0,0 +1,27 @@
Jan> +import gdb
Jan> +

New files need copyright headers.

Jan> +gdb_exit
Jan> +if {[mi_gdb_start]} {
Jan> +    continue
Jan> +}

This should also check whether Python tests can be run.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]