diff options
Diffstat (limited to 'test/app-install.bats')
-rwxr-xr-x | test/app-install.bats | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/app-install.bats b/test/app-install.bats new file mode 100755 index 0000000..8f164bc --- /dev/null +++ b/test/app-install.bats @@ -0,0 +1,22 @@ +#!/usr/bin/env bats +# vim: set filetype=sh: + +load utils + +@test "./app app install" { + zip_app_a + app app install \ + -r file \ + -u $BATS_TEST_DIRNAME/data/app-a.zip \ + -n app-a -i prod + + echo_lines + [ $status -eq $exit_usage ] + [ "$output" = "Creating instance 'prod' for 'app-a' +Unpacking... +Running postinstall... +Hello World! +Postinstall completed successfully +Changing current symlink" ] + [ ${#lines[*]} == 6 ] +} |