You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 line
615 B

  1. #!/usr/bin/env bats
  2. load test_helper
  3. @test "not enough arguments for python-build" {
  4. # use empty inline definition so nothing gets built anyway
  5. local definition="${TMP}/build-definition"
  6. echo '' > "$definition"
  7. run python-build "$definition"
  8. assert_failure
  9. assert_output_contains 'Usage: python-build'
  10. }
  11. @test "extra arguments for python-build" {
  12. # use empty inline definition so nothing gets built anyway
  13. local definition="${TMP}/build-definition"
  14. echo '' > "$definition"
  15. run python-build "$definition" "${TMP}/install" ""
  16. assert_failure
  17. assert_output_contains 'Usage: python-build'
  18. }