From cc113211ca36454556ca0900da1fee13f8f1f28c Mon Sep 17 00:00:00 2001 From: RJ Padilla Date: Wed, 28 Apr 2021 22:45:46 -0400 Subject: [PATCH] create `tests/sdbench.bats` (fixes #2206) (#2207) Co-authored-by: dogi --- package.json | 2 +- tests/sdbench.bats | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 tests/sdbench.bats diff --git a/package.json b/package.json index aecd4761f..b9696c208 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@treehouses/cli", - "version": "1.25.56", + "version": "1.25.57", "remote": "4000", "description": "Thin command-line interface for Raspberry Pi low level configuration.", "main": "cli.sh", diff --git a/tests/sdbench.bats b/tests/sdbench.bats new file mode 100755 index 000000000..87595ef12 --- /dev/null +++ b/tests/sdbench.bats @@ -0,0 +1,12 @@ +#!/usr/bin/env bats +load test-helper + +@test "$clinom sdbench" { + run "${clicmd}" sdbench + assert_success && assert_output -p 'read' && assert_output -p 'write' +} + +@test "$clinom sdbench (added extra arguments)" { + run "${clicmd}" sdbench foobar + assert_failure && assert_output -p 'Too many arguments.' +} \ No newline at end of file