| 1 | #!/bin/sh |
| 2 | TEST_PREFIX="[perf]" |
| 3 | . "$(cd "$(dirname "$0")" && pwd)/test_harness.sh" |
| 4 | |
| 5 | section "1. perf commands" |
| 6 | check_exit "perf with no args" 'perf' "0" |
| 7 | check_exit "perf on enables monitoring" 'perf on' "0" |
| 8 | check_exit "perf off disables monitoring" 'perf off' "0" |
| 9 | check_exit "perf stats shows statistics" 'perf stats' "0" |
| 10 | check_exit "perf reset clears counters" 'perf reset' "0" |
| 11 | |
| 12 | print_summary |