Vendoring bats libraries.

Signed-off-by: Chad Metcalf <chad@docker.com>
This commit is contained in:
Chad Metcalf
2020-08-08 12:46:22 -07:00
committed by Chad Metcalf
parent 5185cedf4e
commit 6565a1f745
48 changed files with 4646 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
#!/usr/bin/env bats
load test_helper
@test 'batslib_err() <message...>: displays <message...>' {
run batslib_err 'm1' 'm2'
[ "$status" -eq 0 ]
[ "$output" == 'm1 m2' ]
}
@test 'batslib_err(): reads <message...> from STDIN' {
run bash -c "source '${TEST_MAIN_DIR}/load.bash'
echo 'm1' 'm2' | batslib_err"
[ "$status" -eq 0 ]
[ "$output" == 'm1 m2' ]
}