2015-01-15 09:13:36 -05:00
|
|
|
#!/usr/bin/env bats
|
|
|
|
|
|
|
|
load test_helper
|
|
|
|
|
2015-08-25 02:37:31 -04:00
|
|
|
@test "not enough arguments for python-build" {
|
2015-01-15 09:13:36 -05:00
|
|
|
# use empty inline definition so nothing gets built anyway
|
|
|
|
local definition="${TMP}/build-definition"
|
|
|
|
echo '' > "$definition"
|
|
|
|
|
|
|
|
run python-build "$definition"
|
|
|
|
assert_failure
|
|
|
|
assert_output_contains 'Usage: python-build'
|
|
|
|
}
|
|
|
|
|
|
|
|
@test "extra arguments for python-build" {
|
|
|
|
# use empty inline definition so nothing gets built anyway
|
|
|
|
local definition="${TMP}/build-definition"
|
|
|
|
echo '' > "$definition"
|
|
|
|
|
|
|
|
run python-build "$definition" "${TMP}/install" ""
|
|
|
|
assert_failure
|
|
|
|
assert_output_contains 'Usage: python-build'
|
|
|
|
}
|