sensorctl: add options/features for usability 84/143584/1
authorkibak.yoon <kibak.yoon@samsung.com>
Thu, 10 Aug 2017 10:44:11 +0000 (19:44 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Thu, 10 Aug 2017 11:10:38 +0000 (20:10 +0900)
commite3eeb813d01784a008761e130cb82b400c99fbf0
tree1f4994c6b42c97aa33bef0c0f88754b3800d1d77
parent669c659b33ab8f417abdde207c1864d481c62d4a
sensorctl: add options/features for usability

This patch supports the below options and features.

[SYNOPSIS]
  - sensorctl test auto [--help] [--list] [--filter=<regex>]
                        [--verbose] [--shuffle] [--repeat]
                        [--output]
  - sensorctl test <sensor_type>
                [--interval=NUMBER] [--batch_latency=NUMBER] [--powersave=TYPE]
                [--repeat=NUMBER] [--output=FILE_PATH] [--help] [--verbose]

[Options]
  -f PATTERN, --filter=<PATTERN>
    Run a subset of the tests for debugging or quickly verifying a
    change. Sensorctl will only run the tests whose full names match the
    filter. This can be used to specify multiple search patterns.

  -l, --list
    Prints the testcase list by following command.

  -h, --help
    Prints the synopsis and a list of the most commonly used commands.

  -v, --verbose
    Prints the log message fully while testcases are running.

  -s, --shuffle
    Run the testcase randomly.

  -r NUMBER, --repeat=NUMBER
    Run the testcase a given number of times.

Change-Id: I30dec0ef2896e12c956be294c2677cb785335ec0
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/sensorctl/test_bench.cpp
src/sensorctl/test_bench.h