All of lore.kernel.org
 help / color / mirror / Atom feed
From: Costin Constantin <costin.c.constantin@intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 04/12] oeqa/runexported: Add option to run arbitrary tests.
Date: Fri, 18 Dec 2015 14:40:56 +0200	[thread overview]
Message-ID: <5ed1a41995e990a7cbd43a240a7df7ab9b6d2bda.1450441923.git.costin.c.constantin@intel.com> (raw)
In-Reply-To: <cover.1450441923.git.costin.c.constantin@intel.com>
In-Reply-To: <cover.1450441923.git.costin.c.constantin@intel.com>

From: Lucian Musat <george.l.musat@intel.com>

You can now overwrite the default TEST_SUITES from the
json file and can choose the tests you want to run.
Also you can display the list of tests.

Signed-off-by: Lucian Musat <george.l.musat@intel.com>
---
 meta/lib/oeqa/runexported.py | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/meta/lib/oeqa/runexported.py b/meta/lib/oeqa/runexported.py
index dba0d7a..d273d2f 100755
--- a/meta/lib/oeqa/runexported.py
+++ b/meta/lib/oeqa/runexported.py
@@ -86,6 +86,8 @@ def main():
             specified in the json if that directory actually exists or it will error out.")
     parser.add_argument("-l", "--log-dir", dest="log_dir", help="This sets the path for TEST_LOG_DIR. If not specified \
             the current dir is used. This is used for usually creating a ssh log file and a scp test file.")
+    parser.add_argument("--list-tests", dest="list_tests", help="This lists the current TEST_SUITES that will be run.", action='store_true')
+    parser.add_argument("-r","--run-tests", dest="run_tests", help="Overwrite TEST_SUITES from the json file with custom list of tests.", nargs = '*')
     parser.add_argument("json", help="The json file exported by the build system", default="testdata.json", nargs='?')
 
     args = parser.parse_args()
@@ -129,8 +131,15 @@ def main():
         if key != "d" and key != "target" and key != "host_dumper":
             setattr(tc, key, loaded[key])
 
-    target.exportStart()
-    runTests(tc)
+    if args.run_tests:
+        tc.testslist = args.run_tests
+
+    if args.list_tests:
+        for test in tc.testslist:
+            print test
+    else:
+        target.exportStart()
+        runTests(tc)
 
     return 0
 
-- 
2.5.0



  parent reply	other threads:[~2015-12-18 12:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-18 12:40 [PATCH 00/12] Include binaries in test cases and update runexported.py Costin Constantin
2015-12-18 12:40 ` [PATCH 01/12] oeqa/utils/testexport.py: add functionality for exporting binaries Costin Constantin
2015-12-18 12:40 ` [PATCH 02/12] classes/testimage.bbclass: add support for binaries export Costin Constantin
2015-12-18 12:40 ` [PATCH 03/12] utils/decorators.py: add TestNeedsBin() decorator Costin Constantin
2015-12-18 12:40 ` Costin Constantin [this message]
2015-12-18 12:40 ` [PATCH 05/12] oeqa/runexported: Fix a problem with ssh_target_log symlink Costin Constantin
2015-12-18 12:40 ` [PATCH 06/12] oeqa/testimage: Added support for folder names in TEST_SUITES Costin Constantin
2015-12-18 12:40 ` [PATCH 07/12] oeqa/runexported: " Costin Constantin
2015-12-18 12:41 ` [PATCH 08/12] oeqa/runexported: The runner supports tests from other layers Costin Constantin
2015-12-18 12:41 ` [PATCH 09/12] oeqa/runexported: Add parameter support for machine arch Costin Constantin
2015-12-18 12:41 ` [PATCH 10/12] oeqa/testimage: Added export features Costin Constantin
2015-12-18 12:41 ` [PATCH 11/12] oeqa/runtime: Copy all __init__.py files from all layers Costin Constantin
2015-12-18 12:41 ` [PATCH 12/12] buildtools-with-tc.bb: extend buildtools-tarball to include test cases Costin Constantin

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=5ed1a41995e990a7cbd43a240a7df7ab9b6d2bda.1450441923.git.costin.c.constantin@intel.com \
    --to=costin.c.constantin@intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.