Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (33 sloc) 842 Bytes
load ../../../common/config
PALLETTEST_WAREHOUSE="${FL_WAREHOUSE}"
PALLETTEST_VERSION="pallet-test"
function jack () {
run ${BATS_TEST_DIRNAME}/../jack ${@}
}
@test "no arguments" {
jack
[ "$status" -eq 1 ]
}
@test "help" {
jack --help
[ "$status" -eq 0 ]
}
@test "path" {
jack path com.github ${BATS_WAREHOUSE} ${BATS_VERSION}
[ "$status" -eq 0 ]
[ "$(basename $output)" = "${BATS_VERSION}" ]
}
@test "update" {
jack update com.github ${BATS_WAREHOUSE} ${BATS_VERSION}
[ "$status" -eq 0 ]
}
@test "scripts" {
jack import com.github ${PALLETTEST_WAREHOUSE} ${PALLETTEST_VERSION}
[ "$status" -eq 0 ]
run ~/.forklift/bin/forklift-test
[ "$status" -eq 0 ]
[ "$output" = "Hello, World!" ]
jack delete com.github ${PALLETTEST_WAREHOUSE} ${PALLETTEST_VERSION}
[ "$status" -eq 0 ]
[ ! -f ~/.forklift/bin/forklift-test ]
}
You can’t perform that action at this time.