test suite reviews and discussions
 help / color / mirror / Atom feed
From: Weiyuan Li <weiyuanx.li@intel.com>
To: dts@dpdk.org
Cc: Weiyuan Li <weiyuanx.li@intel.com>, Yu Jiang <yux.jiang@intel.com>
Subject: [dts][PATCH V5 2/2] conf/meson_tests: modify meson_tests suite to support test config parameter
Date: Thu, 22 Dec 2022 17:46:37 +0800	[thread overview]
Message-ID: <20221222094637.23135-2-weiyuanx.li@intel.com> (raw)
In-Reply-To: <20221222094637.23135-1-weiyuanx.li@intel.com>

Modify meson_tests suite to support test config (TIMEOUT_MULTIPLIER, TEST_ARGS etc.) in conf/meson_tests.cfg.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
Tested-by: Yu Jiang <yux.jiang@intel.com>

v2:
-modify profile parameter descriptions and configuration items.
v3:
-modify configuration file comments.
-the modification script uses the framework API to read the
configuration file.
-modify the log to the temporary directory.
v4:
-test script meson_param method optimization.
v5:
-Optimize the copy method and use the framework API.

 conf/meson_tests.cfg | 45 ++++++++++++++++++++++++++++++++++++++------
 1 file changed, 39 insertions(+), 6 deletions(-)

diff --git a/conf/meson_tests.cfg b/conf/meson_tests.cfg
index 8dcb3d2e..5fefed5a 100644
--- a/conf/meson_tests.cfg
+++ b/conf/meson_tests.cfg
@@ -1,8 +1,41 @@
 # config unit test case for meson test
-# caselist = thash_autotest trace_autotest
+#
+# Specify the sub cases of the meson test suite, such as:
+#   fast-tests  = "acl_autotest"
+#   driver-tests = "dmadev_autotest"
+#   ...
+#
+# Option param defines the meson parameter usage:
+#   meson test [-h] [--repeat REPEAT] [--no-rebuild] [--gdb] [--gdb-path GDB_PATH] [--list] [--wrapper WRAPPER] [-C WD] [--suite SUITE] [--no-suite SUITE] [--no-stdsplit]
+#                  [--print-errorlogs] [--benchmark] [--logbase LOGBASE] [--num-processes NUM_PROCESSES] [-v] [-q] [-t TIMEOUT_MULTIPLIER] [--setup SETUP] [--test-args TEST_ARGS]
+#                  [args ...]
+#   options:
+#   -h, --help                                                      show this help message and exit
+#   --repeat REPEAT                                                 Number of times to run the tests.
+#   --no-rebuild                                                    Do not rebuild before running tests.
+#   --gdb                                                           Run test under gdb.
+#   --gdb-path GDB_PATH                                             Path to the gdb binary (default: gdb).
+#   --list                                                          List available tests.
+#   --wrapper WRAPPER                                               wrapper to run tests with (e.g. Valgrind)
+#   -C WD                                                           directory to cd into before running
+#   --suite SUITE                                                   Only run tests belonging to the given suite.
+#   --no-suite SUITE                                                Do not run tests belonging to the given suite.
+#   --no-stdsplit                                                   Do not split stderr and stdout in test logs.
+#   --print-errorlogs                                               Whether to print failing tests' logs.
+#   --benchmark                                                     Run benchmarks instead of tests.
+#   --logbase LOGBASE                                               Base name for log file.
+#   --num-processes NUM_PROCESSES                                   How many parallel processes to use.
+#   -v, --verbose                                                   Do not redirect stdout and stderr
+#   -q, --quiet                                                     Produce less output to the terminal.
+#   -t TIMEOUT_MULTIPLIER, --timeout-multiplier TIMEOUT_MULTIPLIER  Define a multiplier for test timeout, for example when running tests in particular conditions they might take more
+#                                                                  time to execute. (<= 0 to disable timeout)
+#   --setup SETUP                                                   Which test setup to use.
+#   --test-args TEST_ARGS                                           Arguments to pass to the specified test(s) or all tests
+
 [suite]
-fast-tests  = " "
-driver-tests = " "
-debug-tests = " "
-extra-tests = " "
-perf-tests = " "
+fast-tests  = ""
+driver-tests = ""
+debug-tests = ""
+extra-tests = ""
+perf-tests = ""
+param = "-t 24 --test-args '-c 0xff' --num-processes 20 "
-- 
2.27.0


  reply	other threads:[~2022-12-22  9:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-22  9:46 [dts][PATCH V5 1/2] tests/meson_tests: " Weiyuan Li
2022-12-22  9:46 ` Weiyuan Li [this message]
2022-12-26  5:18   ` [dts][PATCH V5 2/2] conf/meson_tests: " lijuan.tu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221222094637.23135-2-weiyuanx.li@intel.com \
    --to=weiyuanx.li@intel.com \
    --cc=dts@dpdk.org \
    --cc=yux.jiang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).