Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: nathan_lynch@mentor.com (Nathan Lynch)
Subject: [lttng-dev] [RFC/PATCH 0/3] babeltrace: test harness improvements + new tests
Date: Tue, 25 Oct 2016 10:34:24 -0500	[thread overview]
Message-ID: <1477409667-8309-1-git-send-email-nathan_lynch@mentor.com> (raw)

This is working toward moving from popt to GLib for command-line
parsing.  I want to add some tests for at least some of the converter
command-line options in order to prevent regressions.

I found it somewhat tedious to add even simple test scripts, so I
investigated alternatives to doing Autoconf variable substitution, and
this is what I came up with.  I think it makes adding a test script
quite a bit easier.  It also makes the test harness more flexible at
runtime, which is valuable when transferring a cross-compiled test
suite to a target system for execution there.

I've included the new tests I've written so far in patch #3.

Nathan Lynch (3):
  babeltrace: use AM_TESTS_ENVIRONMENT for tests
  babeltrace: drop configure-time substitutions in test scripts
  babeltrace: add simple tests for converter command line options

 .gitignore                                         | 10 -----
 configure.ac                                       | 12 ------
 tests/Makefile.am                                  | 16 ++++++++
 tests/bin/Makefile.am                              |  3 +-
 tests/bin/intersection/Makefile.am                 |  2 +-
 ...{bt_python_helper.py.in => bt_python_helper.py} |  9 +++--
 .../{test_intersection.in => test_intersection}    |  7 +---
 tests/bin/test_clock_cycles                        | 41 +++++++++++++++++++
 tests/bin/test_clock_date                          | 47 ++++++++++++++++++++++
 tests/bin/test_clock_seconds                       | 43 ++++++++++++++++++++
 tests/bin/{test_formats.in => test_formats}        |  9 +----
 tests/bin/test_no_delta                            | 40 ++++++++++++++++++
 ...{test_packet_seq_num.in => test_packet_seq_num} | 16 +++-----
 tests/bin/{test_trace_read.in => test_trace_read}  |  9 +----
 ...st_dwarf_complete.in => test_bin_info_complete} |  4 +-
 ...writer_complete.in => test_ctf_writer_complete} |  6 +--
 ...st_bin_info_complete.in => test_dwarf_complete} |  4 +-
 ...{test_seek_big_trace.in => test_seek_big_trace} |  4 +-
 ...seek_empty_packet.in => test_seek_empty_packet} |  4 +-
 19 files changed, 211 insertions(+), 75 deletions(-)
 rename tests/bin/intersection/{bt_python_helper.py.in => bt_python_helper.py} (82%)
 rename tests/bin/intersection/{test_intersection.in => test_intersection} (90%)
 mode change 100644 => 100755
 create mode 100755 tests/bin/test_clock_cycles
 create mode 100755 tests/bin/test_clock_date
 create mode 100755 tests/bin/test_clock_seconds
 rename tests/bin/{test_formats.in => test_formats} (83%)
 mode change 100644 => 100755
 create mode 100755 tests/bin/test_no_delta
 rename tests/bin/{test_packet_seq_num.in => test_packet_seq_num} (82%)
 mode change 100644 => 100755
 rename tests/bin/{test_trace_read.in => test_trace_read} (88%)
 mode change 100644 => 100755
 rename tests/lib/{test_dwarf_complete.in => test_bin_info_complete} (86%)
 rename tests/lib/{test_ctf_writer_complete.in => test_ctf_writer_complete} (79%)
 rename tests/lib/{test_bin_info_complete.in => test_dwarf_complete} (85%)
 rename tests/lib/{test_seek_big_trace.in => test_seek_big_trace} (83%)
 rename tests/lib/{test_seek_empty_packet.in => test_seek_empty_packet} (83%)

-- 
2.7.4



             reply	other threads:[~2016-10-25 15:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-25 15:34 Nathan Lynch [this message]
2016-10-25 15:34 ` [lttng-dev] [RFC/PATCH 1/3] babeltrace: use AM_TESTS_ENVIRONMENT for tests Nathan Lynch
2016-10-25 15:34 ` [lttng-dev] [RFC/PATCH 2/3] babeltrace: drop configure-time substitutions in test scripts Nathan Lynch
2016-10-25 15:34 ` [lttng-dev] [RFC/PATCH 3/3] babeltrace: add simple tests for converter command line options Nathan Lynch
2016-10-26  7:11   ` Sebastien Boisvert
2016-10-26 13:36     ` Mathieu Desnoyers
2016-10-26 16:29       ` Nathan Lynch
2016-10-25 15:50 ` [lttng-dev] [RFC/PATCH 0/3] babeltrace: test harness improvements + new tests Jonathan Rajotte Julien
2016-10-25 16:05   ` Nathan Lynch
2016-10-25 17:43     ` Michael Jeanson
2016-10-25 20:48       ` Nathan Lynch

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=1477409667-8309-1-git-send-email-nathan_lynch@mentor.com \
    --to=nathan_lynch@mentor.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