Skip to content

Commit

Permalink
update tests/gpio.bats (fixes #2193) (#2194)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
JLKwong and dogi committed Apr 26, 2021
1 parent a42651b commit 22e535c
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@treehouses/cli",
"version": "1.25.50",
"version": "1.25.51",
"remote": "4000",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
Expand Down
22 changes: 21 additions & 1 deletion tests/gpio.bats
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,25 @@ load test-helper

@test "$clinom gpio" {
run "${clicmd}" gpio
assert_success
assert_success \
&& assert_output -p "3V3 (1) (2) 5V" \
&& assert_output -p "GPIO2 (3) (4) 5V" \
&& assert_output -p "GPIO3 (5) (6) GND" \
&& assert_output -p "GPIO4 (7) (8) GPIO14" \
&& assert_output -p "GND (9) (10) GPIO15" \
&& assert_output -p "GPIO17 (11) (12) GPIO18" \
&& assert_output -p "GPIO27 (13) (14) GND" \
&& assert_output -p "GPIO22 (15) (16) GPIO23" \
&& assert_output -p "3V3 (17) (18) GPIO24" \
&& assert_output -p "GPIO10 (19) (20) GND" \
&& assert_output -p "GPIO9 (21) (22) GPIO25" \
&& assert_output -p "GPIO11 (23) (24) GPIO8" \
&& assert_output -p "GND (25) (26) GPIO7" \
&& assert_output -p "GPIO0 (27) (28) GPIO1" \
&& assert_output -p "GPIO5 (29) (30) GND" \
&& assert_output -p "GPIO6 (31) (32) GPIO12" \
&& assert_output -p "GPIO13 (33) (34) GND" \
&& assert_output -p "GPIO19 (35) (36) GPIO16" \
&& assert_output -p "GPIO26 (37) (38) GPIO20" \
&& assert_output -p "GND (39) (40) GPIO21"
}

0 comments on commit 22e535c

Please sign in to comment.