From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Wood Subject: [PATCH i-g-t 0/8] command line parsing Date: Wed, 23 Jul 2014 11:57:47 +0100 Message-ID: <1406113075-30860-1-git-send-email-thomas.wood@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f171.google.com (mail-wi0-f171.google.com [209.85.212.171]) by gabe.freedesktop.org (Postfix) with ESMTP id D53C16E61F for ; Wed, 23 Jul 2014 03:58:01 -0700 (PDT) Received: by mail-wi0-f171.google.com with SMTP id hi2so7547407wib.10 for ; Wed, 23 Jul 2014 03:57:58 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org Cc: daniel.vetter@ffwll.ch List-Id: intel-gfx@lists.freedesktop.org The following series attempts to standardise command line parsing and options across the various types of tests. This allows all tests to respond to common options such as --help and --debug, and also warn when unknown or invalid options are used. Thomas Wood (8): lib: warn when attempting to run an unknown subtest tests: remove unused getopt header includes lib: move option parsing into common_init lib: add igt_simple_init_parse_opts lib: don't ignore unknown options in multi-tests tests: convert simple tests to use igt_simple_init_parse_opts lib: always warn about unknown options lib: add a command line option to enable debug output in tests lib/drmtest.c | 1 - lib/igt_aux.c | 1 - lib/igt_core.c | 184 ++++++++++++++++++++++++---------------- lib/igt_core.h | 6 ++ lib/rendercopy_gen6.c | 1 - lib/rendercopy_gen7.c | 1 - lib/rendercopy_gen8.c | 1 - lib/rendercopy_i830.c | 1 - lib/rendercopy_i915.c | 1 - tests/gem_ctx_basic.c | 20 ++--- tests/gem_media_fill.c | 1 - tests/gem_render_copy.c | 25 +++--- tests/gem_render_copy_redux.c | 1 - tests/gem_render_linear_blits.c | 1 - tests/gem_render_tiled_blits.c | 1 - tests/gem_seqno_wrap.c | 82 +++++++----------- tests/gem_stress.c | 105 +++++++++++------------ tests/gem_wait_render_timeout.c | 1 - tests/kms_setmode.c | 1 - tests/pm_rps.c | 1 - 20 files changed, 215 insertions(+), 221 deletions(-) -- 1.9.3