Mesa (main): radeonsi/test: allow to specify a baseline folder

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Sep 28 12:00:26 UTC 2021


Module: Mesa
Branch: main
Commit: ff8edcf90334cb1d84d7093dccfdad412338bd3f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ff8edcf90334cb1d84d7093dccfdad412338bd3f

Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Tue Sep 21 18:37:09 2021 +0200

radeonsi/test: allow to specify a baseline folder

Acked-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13021>

---

 src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py b/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py
index f9a68bf26a3..7d61a5d4bf0 100755
--- a/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py
+++ b/src/gallium/drivers/radeonsi/ci/radeonsi-run-tests.py
@@ -73,7 +73,11 @@ parser.add_argument(
     default=[],
     help="Only run the test matching this expression. This can only be a filename containing a list of failing tests to re-run.",
 )
-
+parser.add_argument(
+    "--baseline",
+    dest="baseline",
+    help="Folder containing expected results files",
+    default=os.path.dirname(__file__))
 parser.add_argument(
     "--no-piglit", dest="piglit", help="Disable piglit tests", action="store_false"
 )
@@ -138,8 +142,8 @@ else:
         parser.print_help()
         sys.exit(0)
 
-base = os.path.dirname(__file__)
-skips = os.path.join(base, "skips.csv")
+base = args.baseline
+skips = os.path.join(os.path.dirname(__file__), "skips.csv")
 
 # Use piglit's glinfo to determine the GPU name
 gpu_name = "unknown"
@@ -261,6 +265,7 @@ if args.piglit:
 
     if os.path.exists(baseline):
         cmd += ["--baseline", baseline]
+        print_yellow("[baseline {}]".format(baseline), args.verbose > 0)
     env = os.environ.copy()
     env["PIGLIT_PLATFORM"] = "gbm"
     run_cmd(cmd, args.verbose, env)
@@ -302,6 +307,7 @@ if args.glcts:
 
     if os.path.exists(baseline):
         cmd += ["--baseline", baseline]
+        print_yellow("[baseline {}]".format(baseline), args.verbose > 0)
     cmd += deqp_args
     run_cmd(cmd, args.verbose)
     shutil.copy(os.path.join(out, "failures.csv"), new_baseline)
@@ -320,6 +326,9 @@ if args.deqp:
         new_baseline_folder, "{}-deqp-fail.csv".format(gpu_name)
     )
 
+    if os.path.exists(baseline):
+        print_yellow("[baseline {}]".format(baseline), args.verbose > 0)
+
     deqp_tests = {
         "egl": args.deqp_egl,
         "gles2": args.deqp_gles2,



More information about the mesa-commit mailing list