mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 19:50:11 +01:00
radeonsi/ci: make the running script easy to use
Changes: - No path parameters are needed to run all tests. - All test results are stored next to cloned repos instead of /tmp. This is a personal preference, though not necessary. The new setup guide is going to be: - mesa, piglit, deqp, and glcts directories must be next to each other. - Add `PATH=$HOME/?/mesa/src/gallium/drivers/radeonsi/ci:$PATH` into `.bashrc`. Replace `?` with the proper path. - Install Rust, which will include its package manager Cargo: https://www.rust-lang.org/tools/install - The installer will add the Cargo environment into `.bashrc`, which will add cargo into `PATH`. - Restart bash to get the new `PATH`. - Run: `cargo install deqp-runner` Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> The parameters setting the various paths won't be explained to keep the guide short. The path parameters and env vars can be removed if everybody stops using them after this. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18155>
This commit is contained in:
parent
631b5742d1
commit
ddd74bec38
1 changed files with 9 additions and 3 deletions
|
|
@ -64,6 +64,10 @@ parser.add_argument(
|
||||||
help="Number of processes/threads to use.",
|
help="Number of processes/threads to use.",
|
||||||
default=multiprocessing.cpu_count(),
|
default=multiprocessing.cpu_count(),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# The path to above the mesa directory, i.e. ../../../../../..
|
||||||
|
path_above_mesa = os.path.realpath(os.path.join(os.path.dirname(__file__), *['..'] * 6))
|
||||||
|
|
||||||
parser.add_argument("--piglit-path", type=str, help="Path to piglit source folder.")
|
parser.add_argument("--piglit-path", type=str, help="Path to piglit source folder.")
|
||||||
parser.add_argument("--glcts-path", type=str, help="Path to GLCTS source folder.")
|
parser.add_argument("--glcts-path", type=str, help="Path to GLCTS source folder.")
|
||||||
parser.add_argument("--deqp-path", type=str, help="Path to dEQP source folder.")
|
parser.add_argument("--deqp-path", type=str, help="Path to dEQP source folder.")
|
||||||
|
|
@ -71,7 +75,7 @@ parser.add_argument(
|
||||||
"--parent-path",
|
"--parent-path",
|
||||||
type=str,
|
type=str,
|
||||||
help="Path to folder containing piglit/GLCTS and dEQP source folders.",
|
help="Path to folder containing piglit/GLCTS and dEQP source folders.",
|
||||||
default=os.getenv("MAREKO_BUILD_PATH"),
|
default=os.getenv('MAREKO_BUILD_PATH', path_above_mesa),
|
||||||
)
|
)
|
||||||
parser.add_argument("--verbose", "-v", action="count", default=0)
|
parser.add_argument("--verbose", "-v", action="count", default=0)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
|
@ -138,7 +142,9 @@ parser.add_argument(
|
||||||
nargs="?",
|
nargs="?",
|
||||||
help="Output folder (logs, etc)",
|
help="Output folder (logs, etc)",
|
||||||
default=os.path.join(
|
default=os.path.join(
|
||||||
tempfile.gettempdir(), datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
|
# Default is ../../../../../../test-results/datetime
|
||||||
|
os.path.join(path_above_mesa, 'test-results',
|
||||||
|
datetime.now().strftime("%Y-%m-%d-%H-%M-%S"))
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
@ -246,7 +252,7 @@ while os.path.exists(output_folder):
|
||||||
output_folder = "{}.{}".format(os.path.abspath(args.output_folder), count)
|
output_folder = "{}.{}".format(os.path.abspath(args.output_folder), count)
|
||||||
count += 1
|
count += 1
|
||||||
|
|
||||||
os.mkdir(output_folder)
|
os.makedirs(output_folder, exist_ok=True)
|
||||||
new_baseline_folder = os.path.join(output_folder, "new_baseline")
|
new_baseline_folder = os.path.join(output_folder, "new_baseline")
|
||||||
os.mkdir(new_baseline_folder)
|
os.mkdir(new_baseline_folder)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue