-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First version of Roku Regression test system.
- Loading branch information
1 parent
838354e
commit 7e5b184
Showing
70 changed files
with
5,375 additions
and
3,473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
pylint --disable=fixme,too-few-public-methods,len-as-condition,too-many-locals,too-many-return-statements,too-many-branches,too-many-statements,too-many-instance-attributes,too-many-arguments,no-self-use,similarities,broad-except,consider-using-enumerate --const-rgx '(([A-Za-z_][A-Za-z0-9_]*)|(__.*__))$' --indent-string " " rook/*.py scripts/TestHarness/testers/*.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
# Copyright 2017 Battelle Energy Alliance, LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
#from util import * | ||
""" | ||
Tests by running an executable. | ||
""" | ||
from Tester import Tester | ||
|
||
class GenericExecutable(Tester): | ||
""" | ||
A generic executable test interface. | ||
""" | ||
|
||
@staticmethod | ||
def get_valid_params(): | ||
""" | ||
Return a list of valid parameters and their descriptions for this type | ||
of test. | ||
@ In, None | ||
@ Out, params, _ValidParameters, the parameters for this class. | ||
""" | ||
params = Tester.get_valid_params() | ||
params.add_required_param('executable', "The executable to use") | ||
params.add_param('parameters', '', "arguments to the executable") | ||
return params | ||
|
||
def get_command(self): | ||
""" | ||
Return the command this test will run. | ||
@ In, None | ||
@ Out, get_command, string, command to run | ||
""" | ||
return self.specs["executable"]+" "+self.specs["parameters"] | ||
|
||
def __init__(self, name, params): | ||
""" | ||
Constructor that will setup this test with a name and a list of | ||
parameters. | ||
@ In, name: the name of this test case. | ||
@ In, params, a dictionary of parameters and their values to use. | ||
""" | ||
Tester.__init__(self, name, params) | ||
|
||
def process_results(self, output): | ||
""" Handle the results of test case. | ||
@ In, output, string, the output from the test case. | ||
@ Out, None | ||
""" | ||
if self.results.exit_code != 0: | ||
self.set_fail(str(self.results.exit_code)) | ||
return | ||
self.set_success() |
Oops, something went wrong.