Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# Copyright (C) 2017 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see # <http://www.gnu.org/licenses/>.
# Helpers to drive a testcase
# This named tuple is designed to make it easy to add arguments in the # command-line interface of test scripts: just add a field here and an argument # in DejaGNU code and you are done. # Full path to the testcase source file 'source_file',
# Relative path to the generated object file (it must be in the current # working directory). 'object_file' ])
def parse_args(argv=None): # no-coverage """ Turn command line arguments into a ScriptArgs instance.
:param list[str]|None argv: Arguments to process. If not provided, sys.argv is used instead. :rtype: ScriptArgs """ argv = sys.argv[1:] if argv is None else argv return ScriptArgs(*argv)
"""Emit a PASS message.
:param str message: Message to emit. """
"""Emit a FAIL message.
:param str message: Message to emit. """
""" If `predicate` is true, emit a PASS message, otherwise emit a FAIL one.
:param bool predicate: Whether the test should pass. :param str message: Message to emit. """ else: |