Skip to content

Commit

Permalink
project_tester: nits and TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
avarga committed Oct 12, 2024
1 parent 673c06f commit a5443fe
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/project_tester
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import argparse
import itertools
import tempfile

#TODO print effective project list for each instance!!!
#TODO only try to run the valid combinations!!! (currently opp_end fails with "cannot satisfy")
parser = argparse.ArgumentParser(description="Run tests for a project.")
parser.add_argument("--workspace", help="Path to the workspace to use for the test. Default is a temporary directory.")
parser.add_argument("--dry-run", default=False, action='store_true', help="Do not actually run the test program")
Expand All @@ -17,11 +19,10 @@ parser.add_argument("--postcmd", help="Command to run after each test case. Not
parser.add_argument("-f", "--testcase-file", help="File that contains one test case (one or more project filters) per line. These test cases will be done in addition to the ones specified on the command line.")
parser.add_argument("command", help="opp_env subcommand to use for running the tests: download, build, etc.")
parser.add_argument("project_filters", nargs="*", metavar="project-filter", help="""
Projects to include in the test runs. Explicit project versions, project names, and their
regular expressions are accepted (substring match is done). The Cartesian product of the expanded lists
from each argument generate the test runs. Be sure to protect regexes with single quotes to prevent the
shell from expanding them with the list of files/directories in the current directory.""".replace("\n", " "))

Projects to include in the test runs. Explicit project versions, project names, and their
regular expressions are accepted (substring match is done). The Cartesian product of the expanded lists
from each argument generate the test runs. Be sure to protect regexes with single quotes to prevent the
shell from expanding them with the list of files/directories in the current directory.""")
args = parser.parse_args()

# Set variables for program names
Expand Down

0 comments on commit a5443fe

Please sign in to comment.