Skip to content

Conversation

@PrzemekWirkus
Copy link
Contributor

When using Greentea switch -n and putting * at the end of test suite name filter will run to filter in all test suite names starting with string before *.

Example usage:

  1. Filter all tests with names starting with 'mbed-drivers-t', e.g.:
  • tests-mbed_drivers-ticker
  • tests-mbed_drivers-ticker_2
  • tests-mbed_drivers-ticker_3
  • tests-mbed_drivers-timeout
$ mbedgt -VS -n mbed-drivers-t*
  1. Filter all tests with names starting with 'mbed-drivers-t' and test case
    'tests-mbed_drivers-rtc', e.g:
  • tests-mbed_drivers-rtc
  • tests-mbed_drivers-ticker
  • tests-mbed_drivers-ticker_2
  • tests-mbed_drivers-ticker_3
  • tests-mbed_drivers-timeout
$ mbedgt -VS -n mbed-drivers-t*,tests-mbed_drivers-rtc
mbedgt: test suite report:
+--------------+---------------+-----------------------------+--------+--------------------+-------------+
| target       | platform_name | test suite                  | result | elapsed_time (sec) | copy_method |
+--------------+---------------+-----------------------------+--------+--------------------+-------------+
| K64F-GCC_ARM | K64F          | tests-mbed_drivers-rtc      | OK     | 21.53              | shell       |
| K64F-GCC_ARM | K64F          | tests-mbed_drivers-ticker   | OK     | 22.04              | shell       |
| K64F-GCC_ARM | K64F          | tests-mbed_drivers-ticker_2 | OK     | 21.99              | shell       |
| K64F-GCC_ARM | K64F          | tests-mbed_drivers-ticker_3 | OK     | 21.98              | shell       |
| K64F-GCC_ARM | K64F          | tests-mbed_drivers-timeout  | OK     | 22.01              | shell       |
+--------------+---------------+-----------------------------+--------+--------------------+-------------+
mbedgt: test suite results: 5 OK
mbedgt: test case report:
+--------------+---------------+-----------------------------+-----------------------+--------+--------+--------+--------------------+
| target       | platform_name | test suite                  | test case             | passed | failed | result | elapsed_time (sec) |
+--------------+---------------+-----------------------------+-----------------------+--------+--------+--------+--------------------+
| K64F-GCC_ARM | K64F          | tests-mbed_drivers-rtc      | RTC strftime          | 1      | 0      | OK     | 10.14              |
| K64F-GCC_ARM | K64F          | tests-mbed_drivers-ticker   | Timers: 2 x tickers   | 1      | 0      | OK     | 11.15              |
| K64F-GCC_ARM | K64F          | tests-mbed_drivers-ticker_2 | Timers: 1x ticker     | 1      | 0      | OK     | 11.16              |
| K64F-GCC_ARM | K64F          | tests-mbed_drivers-ticker_3 | Timers: 2x callbacks  | 1      | 0      | OK     | 11.15              |
| K64F-GCC_ARM | K64F          | tests-mbed_drivers-timeout  | Timers: toggle on/off | 1      | 0      | OK     | 11.15              |
+--------------+---------------+-----------------------------+-----------------------+--------+--------+--------+--------------------+
mbedgt: test case results: 5 OK
mbedgt: completed in 109.65 sec

…n prefix

name

Example usage:
1) Filter all tests with names starting with 'mbed-drivers-t', e.g.:
* tests-mbed_drivers-ticker
* tests-mbed_drivers-ticker_2
* tests-mbed_drivers-ticker_3
* tests-mbed_drivers-timeout

```
$ mbedgt -VS -n mbed-drivers-t*
```

2) Filter all tests with names starting with 'mbed-drivers-t' and test case
'tests-mbed_drivers-rtc', e.g:
* tests-mbed_drivers-rtc
* tests-mbed_drivers-ticker
* tests-mbed_drivers-ticker_2
* tests-mbed_drivers-ticker_3
* tests-mbed_drivers-timeout
@PrzemekWirkus
Copy link
Contributor Author

@bridadan Please review.
@mazimkhan @adbridge FYI.

@bridadan
Copy link
Contributor

bridadan commented Jun 1, 2016

@PrzemekWirkus Code looks good. Tested this locally and all seems to be well.

+1

@PrzemekWirkus PrzemekWirkus merged commit 4f899fa into master Jun 2, 2016
PrzemekWirkus added a commit that referenced this pull request Jun 2, 2016
@PrzemekWirkus PrzemekWirkus deleted the devel_n_sufix_filter branch June 2, 2016 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants