mbox series

[0/4] Enable testing and add some tests

Message ID 20180813030506.429060-1-amitay@ozlabs.org
Headers show
Series Enable testing and add some tests | expand

Message

Amitay Isaacs Aug. 13, 2018, 3:05 a.m. UTC
This patchset adds a test framework for simple shell based tests.  This allows
to execute pdbg commands and match the output.

First set of tests are for target selection using -p/-c/-t/-a.

Amitay Isaacs (4):
  configure: Enable tests
  tests: Add simple shell test drivers
  gitignore: Ignore tests related files
  tests: Add target selection tests

 .gitignore              |   3 +
 Makefile.am             |  16 +-
 tests/driver.sh         | 247 ++++++++++++++++++++
 tests/run_test.sh       |  91 ++++++++
 tests/test_driver.sh    |  38 +++
 tests/test_selection.sh | 496 ++++++++++++++++++++++++++++++++++++++++
 6 files changed, 889 insertions(+), 2 deletions(-)
 create mode 100644 tests/driver.sh
 create mode 100755 tests/run_test.sh
 create mode 100755 tests/test_driver.sh
 create mode 100755 tests/test_selection.sh

Comments

Alistair Popple Aug. 13, 2018, 5:55 a.m. UTC | #1
Excellent! Love the simplicity of defining tests with simple shell scripts.
Thanks.

Joel, do you know if it's possible to integrate these into our CI system so that
we can get results of `make check` in patchwork?

- Alistair

On Monday, 13 August 2018 1:05:02 PM AEST Amitay Isaacs wrote:
> This patchset adds a test framework for simple shell based tests.  This allows
> to execute pdbg commands and match the output.
> 
> First set of tests are for target selection using -p/-c/-t/-a.
> 
> Amitay Isaacs (4):
>   configure: Enable tests
>   tests: Add simple shell test drivers
>   gitignore: Ignore tests related files
>   tests: Add target selection tests
> 
>  .gitignore              |   3 +
>  Makefile.am             |  16 +-
>  tests/driver.sh         | 247 ++++++++++++++++++++
>  tests/run_test.sh       |  91 ++++++++
>  tests/test_driver.sh    |  38 +++
>  tests/test_selection.sh | 496 ++++++++++++++++++++++++++++++++++++++++
>  6 files changed, 889 insertions(+), 2 deletions(-)
>  create mode 100644 tests/driver.sh
>  create mode 100755 tests/run_test.sh
>  create mode 100755 tests/test_driver.sh
>  create mode 100755 tests/test_selection.sh
> 
>