[gem5-dev] Change in gem5/gem5[develop]: tests: Get rid of the tests/tests.py script.

2020-08-05 Thread Gabe Black (Gerrit) via gem5-dev
Gabe Black has submitted this change. (  
https://gem5-review.googlesource.com/c/public/gem5/+/32118 )


Change subject: tests: Get rid of the tests/tests.py script.
..

tests: Get rid of the tests/tests.py script.

This script was to manage and run the old style regression tests, which
have all been deleted.

Change-Id: I573f8e4ca0d61cb12de18f280ffabbb45a5443e8
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32118
Tested-by: kokoro 
Reviewed-by: Jason Lowe-Power 
Maintainer: Bobby R. Bruce 
---
D tests/tests.py
1 file changed, 0 insertions(+), 346 deletions(-)

Approvals:
  Jason Lowe-Power: Looks good to me, approved
  Bobby R. Bruce: Looks good to me, approved
  kokoro: Regressions pass



diff --git a/tests/tests.py b/tests/tests.py
deleted file mode 100755
index df46b41..000
--- a/tests/tests.py
+++ /dev/null
@@ -1,346 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright (c) 2016 ARM Limited
-# All rights reserved
-#
-# The license below extends only to copyright in the software and shall
-# not be construed as granting a license to any other intellectual
-# property including but not limited to intellectual property relating
-# to a hardware implementation of the functionality of the software
-# licensed hereunder.  You may use the software subject to the license
-# terms below provided that you ensure that this notice is replicated
-# unmodified and in its entirety in all distributions of the software,
-# modified or unmodified, in source code or in binary form.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met: redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer;
-# redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution;
-# neither the name of the copyright holders nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-from __future__ import print_function
-
-import argparse
-import sys
-import os
-import pickle
-
-from testing.tests import *
-import testing.results
-
-class ParagraphHelpFormatter(argparse.HelpFormatter):
-def _fill_text(self, text, width, indent):
-return "\n\n".join([
-super(ParagraphHelpFormatter, self)._fill_text(p, width,  
indent) \

-for p in text.split("\n\n") ])
-
-formatters = {
-"junit" : testing.results.JUnit,
-"text" : testing.results.Text,
-"summary" : testing.results.TextSummary,
-"pickle" : testing.results.Pickle,
-}
-
-
-def _add_format_args(parser):
-parser.add_argument("--format", choices=formatters, default="text",
-help="Output format")
-
-parser.add_argument("--no-junit-xlate-names", action="store_true",
-help="Don't translate test names to " \
-"package-like names")
-
-parser.add_argument("--output", "-o",
-type=argparse.FileType('w'), default=sys.stdout,
-help="Test result output file")
-
-
-def _create_formatter(args):
-formatter = formatters[args.format]
-kwargs = {
-"fout" : args.output,
-"verbose" : args.verbose
-}
-
-if issubclass(formatter, testing.results.JUnit):
-kwargs.update({
-"translate_names" : not args.no_junit_xlate_names,
-})
-
-return formatter(**kwargs)
-
-
-def _list_tests_args(subparsers):
-parser = subparsers.add_parser(
-"list",
-formatter_class=ParagraphHelpFormatter,
-help="List available tests",
-description="List available tests",
-epilog="""
-Generate a list of available tests using a list filter.
-
-The filter is a string consisting of the target ISA optionally
-followed by the test category and mode separated by
-slashes. The 

[gem5-dev] Change in gem5/gem5[develop]: tests: Get rid of the tests/tests.py script.

2020-08-04 Thread Gabe Black (Gerrit) via gem5-dev
Gabe Black has uploaded this change for review. (  
https://gem5-review.googlesource.com/c/public/gem5/+/32118 )



Change subject: tests: Get rid of the tests/tests.py script.
..

tests: Get rid of the tests/tests.py script.

This script was to manage and run the old style regression tests, which
have all been deleted.

Change-Id: I573f8e4ca0d61cb12de18f280ffabbb45a5443e8
---
D tests/tests.py
1 file changed, 0 insertions(+), 346 deletions(-)



diff --git a/tests/tests.py b/tests/tests.py
deleted file mode 100755
index df46b41..000
--- a/tests/tests.py
+++ /dev/null
@@ -1,346 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright (c) 2016 ARM Limited
-# All rights reserved
-#
-# The license below extends only to copyright in the software and shall
-# not be construed as granting a license to any other intellectual
-# property including but not limited to intellectual property relating
-# to a hardware implementation of the functionality of the software
-# licensed hereunder.  You may use the software subject to the license
-# terms below provided that you ensure that this notice is replicated
-# unmodified and in its entirety in all distributions of the software,
-# modified or unmodified, in source code or in binary form.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met: redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer;
-# redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution;
-# neither the name of the copyright holders nor the names of its
-# contributors may be used to endorse or promote products derived from
-# this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
-# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
-# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
-# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
-# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-from __future__ import print_function
-
-import argparse
-import sys
-import os
-import pickle
-
-from testing.tests import *
-import testing.results
-
-class ParagraphHelpFormatter(argparse.HelpFormatter):
-def _fill_text(self, text, width, indent):
-return "\n\n".join([
-super(ParagraphHelpFormatter, self)._fill_text(p, width,  
indent) \

-for p in text.split("\n\n") ])
-
-formatters = {
-"junit" : testing.results.JUnit,
-"text" : testing.results.Text,
-"summary" : testing.results.TextSummary,
-"pickle" : testing.results.Pickle,
-}
-
-
-def _add_format_args(parser):
-parser.add_argument("--format", choices=formatters, default="text",
-help="Output format")
-
-parser.add_argument("--no-junit-xlate-names", action="store_true",
-help="Don't translate test names to " \
-"package-like names")
-
-parser.add_argument("--output", "-o",
-type=argparse.FileType('w'), default=sys.stdout,
-help="Test result output file")
-
-
-def _create_formatter(args):
-formatter = formatters[args.format]
-kwargs = {
-"fout" : args.output,
-"verbose" : args.verbose
-}
-
-if issubclass(formatter, testing.results.JUnit):
-kwargs.update({
-"translate_names" : not args.no_junit_xlate_names,
-})
-
-return formatter(**kwargs)
-
-
-def _list_tests_args(subparsers):
-parser = subparsers.add_parser(
-"list",
-formatter_class=ParagraphHelpFormatter,
-help="List available tests",
-description="List available tests",
-epilog="""
-Generate a list of available tests using a list filter.
-
-The filter is a string consisting of the target ISA optionally
-followed by the test category and mode separated by
-slashes. The test names emitted by this command can be fed
-into the run command.
-
-For example, to list all quick arm tests, run the following:
-tests.py list arm/quick
-
-Non-mandatory parts of the filter string (anything other than
-the ISA)