From 11c930f71db58201994265b71a8f76187f1dbda1 Mon Sep 17 00:00:00 2001
From: Trygve Laugstøl <trygvis@inamo.no>
Date: Sun, 27 Jan 2013 12:58:25 +0100
Subject: o Adding a common header to all scripts. o Disabling un-used tests
 and apps for now.

---
 test/X-app-help.bats          |  38 ++++++++++++++++
 test/X-app-install.bats       |  50 +++++++++++++++++++++
 test/X-app-list-versions.bats |  28 ++++++++++++
 test/X-app-list.bats          | 102 ++++++++++++++++++++++++++++++++++++++++++
 test/X-help.bats              |  17 +++++++
 test/X-it-install-remove.bats |  45 +++++++++++++++++++
 test/app-help.bats            |  38 ----------------
 test/app-install.bats         |  50 ---------------------
 test/app-list-versions.bats   |  28 ------------
 test/app-list.bats            | 102 ------------------------------------------
 test/help.bats                |  17 -------
 test/it-install-remove.bats   |  45 -------------------
 12 files changed, 280 insertions(+), 280 deletions(-)
 create mode 100755 test/X-app-help.bats
 create mode 100755 test/X-app-install.bats
 create mode 100755 test/X-app-list-versions.bats
 create mode 100755 test/X-app-list.bats
 create mode 100755 test/X-help.bats
 create mode 100755 test/X-it-install-remove.bats
 delete mode 100755 test/app-help.bats
 delete mode 100755 test/app-install.bats
 delete mode 100755 test/app-list-versions.bats
 delete mode 100755 test/app-list.bats
 delete mode 100755 test/help.bats
 delete mode 100755 test/it-install-remove.bats

(limited to 'test')

diff --git a/test/X-app-help.bats b/test/X-app-help.bats
new file mode 100755
index 0000000..4b94f23
--- /dev/null
+++ b/test/X-app-help.bats
@@ -0,0 +1,38 @@
+#!/usr/bin/env bats
+# vim: set filetype=sh:
+
+load utils
+
+@test "./app instance" {
+  app instance; echo_lines
+  [ $status -eq $exit_usage_wrong ]
+  [ $(expr "${lines[0]}" : "usage: ./app instance .*") -ne 0 ]
+  [ ${#lines[*]} == 6 ]
+}
+
+@test "./app instance install" {
+  app instance install; echo_lines
+  [ $status -eq $exit_usage ]
+  [ $(expr "${lines[0]}" : "usage: install .*") -ne 0 ]
+  [ ${#lines[*]} == 6 ]
+}
+
+@test "./app instance list" {
+  app instance list; echo_lines
+  [ $status -eq 0 ]
+  [ ${#lines[*]} == 0 ]
+}
+
+@test "./app instance list-versions" {
+  app instance list-versions; echo_lines
+  [ $status -eq $exit_usage ]
+  [ $(expr "${lines[0]}" : "usage: list-versions .*") -ne 0 ]
+  [ ${#lines[*]} == 1 ]
+}
+
+@test "./app instance set-current" {
+  app instance "set-current"; echo_lines
+  [ $status -eq $exit_usage ]
+  [ $(expr "${lines[0]}" : "usage: set-current .*") -ne 0 ]
+  [ ${#lines[*]} == 1 ]
+}
diff --git a/test/X-app-install.bats b/test/X-app-install.bats
new file mode 100755
index 0000000..18a84bc
--- /dev/null
+++ b/test/X-app-install.bats
@@ -0,0 +1,50 @@
+#!/usr/bin/env bats
+# vim: set filetype=sh:
+
+load utils
+
+# TODO: Add test for installing duplicate version
+
+@test "./app install app-a" {
+  mkzip "app-a"
+  app install \
+    -r file \
+    -u $BATS_TEST_DIRNAME/data/app-a.zip
+
+  echo_lines
+  [ $status -eq 0 ]
+  [ "$output" = "Creating instance 'prod' for 'app-a'
+Unpacking...
+Changing current symlink
+Running postinstall...
+Hello World!
+Creating logs directory
+Postinstall completed successfully" ]
+  [ ${#lines[*]} == 7 ]
+}
+
+@test "./app instance install install-test-env" {
+  mkzip "install-test-env"
+  app instance install \
+    -r file \
+    -u $BATS_TEST_DIRNAME/data/install-test-env.zip \
+    -v 1.0
+  echo_lines
+  [ $status -eq 0 ]
+  [ "$output" = "Creating instance 'prod' for 'install-test-env'
+Unpacking...
+Changing current symlink
+Running postinstall...
+APPSH_APPS=$APPSH_APPS
+APPSH_HOME=$APPSH_HOME
+APPSH_INSTANCE=prod
+APPSH_NAME=install-test-env
+APPSH_VERSION=1.0
+PATH=/bin:/usr/bin
+PWD=$APPSH_APPS_CANONICAL/install-test-env/prod/versions/1.0/root
+SHLVL=1
+_=/usr/bin/env
+Postinstall completed successfully" ]
+  [ ${#lines[*]} == 14 ]
+# PWD=$APPSH_APPS_CANONICAL/install-test-env/prod/versions/1.0
+}
diff --git a/test/X-app-list-versions.bats b/test/X-app-list-versions.bats
new file mode 100755
index 0000000..de543eb
--- /dev/null
+++ b/test/X-app-list-versions.bats
@@ -0,0 +1,28 @@
+#!/usr/bin/env bats
+# vim: set filetype=sh:
+
+load utils
+
+@test "./app instance list-versions" {
+  mkzip "app-a"
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.0 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.1 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-b -v 1.0 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-a -v 1.0 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-b -v 1.0
+  [ $status -eq 0 ]
+
+  app instance list-versions -n app-a -i env-a; echo_lines
+  [ $status -eq 0 ]
+  [ "$output" = "Available versions for app-a/env-a:
+1.0
+1.1" ]
+
+  expected="1.0
+1.1"
+
+set -x
+  app -n app-a instance -i env-a list-versions -P; [ "$output" = "$expected" ]; echo_lines;
+  app -n app-a instance list-versions -i env-a -P; [ "$output" = "$expected" ]; echo_lines;
+  app instance list-versions -n app-a -i env-a -P; [ "$output" = "$expected" ]; echo_lines;
+}
diff --git a/test/X-app-list.bats b/test/X-app-list.bats
new file mode 100755
index 0000000..3092837
--- /dev/null
+++ b/test/X-app-list.bats
@@ -0,0 +1,102 @@
+#!/usr/bin/env bats
+# vim: set filetype=sh:
+
+load utils
+
+@test "./app instance list - all apps" {
+  mkzip "app-a"
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.0 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.1 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-b -v 1.0 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-a -v 1.0 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-b -v 1.0
+  [ $status -eq 0 ]
+
+  app instance list; echo_lines
+  [ $status -eq 0 ]
+  [ "$output" = "Name                 Instance             Version             
+app-a                env-a                1.1                 
+app-a                env-b                1.0                 
+app-b                env-a                1.0                 
+app-b                env-b                1.0                 " ]
+
+  app instance list -P name -P instance -P version; echo_lines
+  [ $status -eq 0 ]
+  [ "$output" = "app-a:env-a:1.1
+app-a:env-b:1.0
+app-b:env-a:1.0
+app-b:env-b:1.0" ]
+}
+
+@test "./app instance list - -n filter" {
+  mkzip "app-a"
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.0 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.1 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-b -v 1.0 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-a -v 1.0 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-b -v 1.0
+  [ $status -eq 0 ]
+
+  app instance list -n foo; echo_lines
+  [ $status -eq 0 ]
+  [ "$output" = "Name                 Instance             Version             " ]
+
+  app instance list -n app-a; echo_lines
+  [ $status -eq 0 ]
+  [ "$output" = "Name                 Instance             Version             
+app-a                env-a                1.1                 
+app-a                env-b                1.0                 " ]
+
+  app instance list -n app-a -P name -P instance -P version; echo_lines
+  [ $status -eq 0 ]
+  [ "$output" = "app-a:env-a:1.1
+app-a:env-b:1.0" ]
+}
+
+@test "./app instance list - -i filter" {
+  mkzip "app-a"
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.0 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.1 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-b -v 1.0 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-a -v 1.0 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-b -v 1.0
+  [ $status -eq 0 ]
+
+  app instance list -i foo; echo_lines
+  [ $status -eq 0 ]
+  [ "$output" = "Name                 Instance             Version             " ]
+
+  app instance list -i env-a; echo_lines
+  [ $status -eq 0 ]
+  [ "$output" = "Name                 Instance             Version             
+app-a                env-a                1.1                 
+app-b                env-a                1.0                 " ]
+
+  app instance list -i env-a -P name -P instance -P version; echo_lines
+  [ $status -eq 0 ]
+  [ "$output" = "app-a:env-a:1.1
+app-b:env-a:1.0" ]
+}
+
+@test "./app instance list - -n + -i filter" {
+  mkzip "app-a"
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.0 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.1 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-b -v 1.0 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-a -v 1.0 &&
+  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-b -v 1.0
+  [ $status -eq 0 ]
+
+  app instance list -n foo -i bar; echo_lines
+  [ $status -eq 0 ]
+  [ "$output" = "Name                 Instance             Version             " ]
+
+  app instance list -n app-a -i env-a; echo_lines
+  [ $status -eq 0 ]
+  [ "$output" = "Name                 Instance             Version             
+app-a                env-a                1.1                 " ]
+
+  app instance list -n app-a -i env-a -P name -P instance -P version; echo_lines
+  [ $status -eq 0 ]
+  [ "$output" = "app-a:env-a:1.1" ]
+}
diff --git a/test/X-help.bats b/test/X-help.bats
new file mode 100755
index 0000000..eba4eeb
--- /dev/null
+++ b/test/X-help.bats
@@ -0,0 +1,17 @@
+#!/usr/bin/env bats
+# vim: set filetype=sh:
+
+load utils
+
+@test "./app" {
+  app; echo_lines
+  [ $status -eq $exit_usage_wrong ]
+  [ $(expr "${lines[0]}" : "usage: ./app .*") -ne 0 ]
+}
+
+@test "./app foo" {
+  app foo; echo_lines
+  [ $status -eq $exit_usage_wrong ]
+  [ "${lines[0]}" = "Error: No such method group: foo" ]
+  [ $(expr "${lines[1]}" : "usage: ./app .*") -ne 0 ]
+}
diff --git a/test/X-it-install-remove.bats b/test/X-it-install-remove.bats
new file mode 100755
index 0000000..78f4532
--- /dev/null
+++ b/test/X-it-install-remove.bats
@@ -0,0 +1,45 @@
+#!/usr/bin/env bats
+# vim: set filetype=sh:
+
+load utils
+
+@test "install remove roundtrip" {
+  mkzip "app-a"
+  name="app-a"
+  instance="prod"
+  a="-n $name -i $instance"
+
+  describe "Installing $name/$instance"
+  app instance install \
+    -r file \
+    -u $BATS_TEST_DIRNAME/data/app-a.zip \
+    -n $name -i $instance; echo_lines
+  [ $status -eq 0 ]
+
+  can_not_read ".app/var/pid/$name-$instance.pid"
+
+  describe "Setting property"
+  app -n $name -i $instance conf set env.TEST_PROPERTY awesome
+  [ $status -eq 0 ]
+
+  describe "Starting $name/$instance"
+  app -n $name -i $instance operate start
+  echo_lines
+  [ $status -eq 0 ]
+  can_read .app/var/pid/$name-$instance.pid
+
+  describe "Stopping $name/$instance"
+  app -n $name -i $instance operate stop
+  [ $status -eq 0 ]
+  echo_lines
+  can_not_read .app/var/pid/$name-$instance.pid
+
+  can_read "$name/$instance/logs/$name.log"
+  can_read "$name/$instance/logs/$name.env"
+  can_read "$name/$instance/current/foo.conf"
+
+  [ "`cat $name/$instance/logs/$name.env`" = "TEST_PROPERTY=awesome" ]
+  [ "`cat $name/$instance/current/foo.conf`" = "hello" ]
+
+  # TODO: Remove the version
+}
diff --git a/test/app-help.bats b/test/app-help.bats
deleted file mode 100755
index 4b94f23..0000000
--- a/test/app-help.bats
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/usr/bin/env bats
-# vim: set filetype=sh:
-
-load utils
-
-@test "./app instance" {
-  app instance; echo_lines
-  [ $status -eq $exit_usage_wrong ]
-  [ $(expr "${lines[0]}" : "usage: ./app instance .*") -ne 0 ]
-  [ ${#lines[*]} == 6 ]
-}
-
-@test "./app instance install" {
-  app instance install; echo_lines
-  [ $status -eq $exit_usage ]
-  [ $(expr "${lines[0]}" : "usage: install .*") -ne 0 ]
-  [ ${#lines[*]} == 6 ]
-}
-
-@test "./app instance list" {
-  app instance list; echo_lines
-  [ $status -eq 0 ]
-  [ ${#lines[*]} == 0 ]
-}
-
-@test "./app instance list-versions" {
-  app instance list-versions; echo_lines
-  [ $status -eq $exit_usage ]
-  [ $(expr "${lines[0]}" : "usage: list-versions .*") -ne 0 ]
-  [ ${#lines[*]} == 1 ]
-}
-
-@test "./app instance set-current" {
-  app instance "set-current"; echo_lines
-  [ $status -eq $exit_usage ]
-  [ $(expr "${lines[0]}" : "usage: set-current .*") -ne 0 ]
-  [ ${#lines[*]} == 1 ]
-}
diff --git a/test/app-install.bats b/test/app-install.bats
deleted file mode 100755
index 18a84bc..0000000
--- a/test/app-install.bats
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/usr/bin/env bats
-# vim: set filetype=sh:
-
-load utils
-
-# TODO: Add test for installing duplicate version
-
-@test "./app install app-a" {
-  mkzip "app-a"
-  app install \
-    -r file \
-    -u $BATS_TEST_DIRNAME/data/app-a.zip
-
-  echo_lines
-  [ $status -eq 0 ]
-  [ "$output" = "Creating instance 'prod' for 'app-a'
-Unpacking...
-Changing current symlink
-Running postinstall...
-Hello World!
-Creating logs directory
-Postinstall completed successfully" ]
-  [ ${#lines[*]} == 7 ]
-}
-
-@test "./app instance install install-test-env" {
-  mkzip "install-test-env"
-  app instance install \
-    -r file \
-    -u $BATS_TEST_DIRNAME/data/install-test-env.zip \
-    -v 1.0
-  echo_lines
-  [ $status -eq 0 ]
-  [ "$output" = "Creating instance 'prod' for 'install-test-env'
-Unpacking...
-Changing current symlink
-Running postinstall...
-APPSH_APPS=$APPSH_APPS
-APPSH_HOME=$APPSH_HOME
-APPSH_INSTANCE=prod
-APPSH_NAME=install-test-env
-APPSH_VERSION=1.0
-PATH=/bin:/usr/bin
-PWD=$APPSH_APPS_CANONICAL/install-test-env/prod/versions/1.0/root
-SHLVL=1
-_=/usr/bin/env
-Postinstall completed successfully" ]
-  [ ${#lines[*]} == 14 ]
-# PWD=$APPSH_APPS_CANONICAL/install-test-env/prod/versions/1.0
-}
diff --git a/test/app-list-versions.bats b/test/app-list-versions.bats
deleted file mode 100755
index de543eb..0000000
--- a/test/app-list-versions.bats
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/usr/bin/env bats
-# vim: set filetype=sh:
-
-load utils
-
-@test "./app instance list-versions" {
-  mkzip "app-a"
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.0 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.1 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-b -v 1.0 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-a -v 1.0 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-b -v 1.0
-  [ $status -eq 0 ]
-
-  app instance list-versions -n app-a -i env-a; echo_lines
-  [ $status -eq 0 ]
-  [ "$output" = "Available versions for app-a/env-a:
-1.0
-1.1" ]
-
-  expected="1.0
-1.1"
-
-set -x
-  app -n app-a instance -i env-a list-versions -P; [ "$output" = "$expected" ]; echo_lines;
-  app -n app-a instance list-versions -i env-a -P; [ "$output" = "$expected" ]; echo_lines;
-  app instance list-versions -n app-a -i env-a -P; [ "$output" = "$expected" ]; echo_lines;
-}
diff --git a/test/app-list.bats b/test/app-list.bats
deleted file mode 100755
index 3092837..0000000
--- a/test/app-list.bats
+++ /dev/null
@@ -1,102 +0,0 @@
-#!/usr/bin/env bats
-# vim: set filetype=sh:
-
-load utils
-
-@test "./app instance list - all apps" {
-  mkzip "app-a"
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.0 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.1 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-b -v 1.0 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-a -v 1.0 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-b -v 1.0
-  [ $status -eq 0 ]
-
-  app instance list; echo_lines
-  [ $status -eq 0 ]
-  [ "$output" = "Name                 Instance             Version             
-app-a                env-a                1.1                 
-app-a                env-b                1.0                 
-app-b                env-a                1.0                 
-app-b                env-b                1.0                 " ]
-
-  app instance list -P name -P instance -P version; echo_lines
-  [ $status -eq 0 ]
-  [ "$output" = "app-a:env-a:1.1
-app-a:env-b:1.0
-app-b:env-a:1.0
-app-b:env-b:1.0" ]
-}
-
-@test "./app instance list - -n filter" {
-  mkzip "app-a"
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.0 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.1 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-b -v 1.0 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-a -v 1.0 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-b -v 1.0
-  [ $status -eq 0 ]
-
-  app instance list -n foo; echo_lines
-  [ $status -eq 0 ]
-  [ "$output" = "Name                 Instance             Version             " ]
-
-  app instance list -n app-a; echo_lines
-  [ $status -eq 0 ]
-  [ "$output" = "Name                 Instance             Version             
-app-a                env-a                1.1                 
-app-a                env-b                1.0                 " ]
-
-  app instance list -n app-a -P name -P instance -P version; echo_lines
-  [ $status -eq 0 ]
-  [ "$output" = "app-a:env-a:1.1
-app-a:env-b:1.0" ]
-}
-
-@test "./app instance list - -i filter" {
-  mkzip "app-a"
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.0 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.1 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-b -v 1.0 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-a -v 1.0 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-b -v 1.0
-  [ $status -eq 0 ]
-
-  app instance list -i foo; echo_lines
-  [ $status -eq 0 ]
-  [ "$output" = "Name                 Instance             Version             " ]
-
-  app instance list -i env-a; echo_lines
-  [ $status -eq 0 ]
-  [ "$output" = "Name                 Instance             Version             
-app-a                env-a                1.1                 
-app-b                env-a                1.0                 " ]
-
-  app instance list -i env-a -P name -P instance -P version; echo_lines
-  [ $status -eq 0 ]
-  [ "$output" = "app-a:env-a:1.1
-app-b:env-a:1.0" ]
-}
-
-@test "./app instance list - -n + -i filter" {
-  mkzip "app-a"
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.0 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-a -v 1.1 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-a -i env-b -v 1.0 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-a -v 1.0 &&
-  app instance install -r file -u $BATS_TEST_DIRNAME/data/app-a.zip -n app-b -i env-b -v 1.0
-  [ $status -eq 0 ]
-
-  app instance list -n foo -i bar; echo_lines
-  [ $status -eq 0 ]
-  [ "$output" = "Name                 Instance             Version             " ]
-
-  app instance list -n app-a -i env-a; echo_lines
-  [ $status -eq 0 ]
-  [ "$output" = "Name                 Instance             Version             
-app-a                env-a                1.1                 " ]
-
-  app instance list -n app-a -i env-a -P name -P instance -P version; echo_lines
-  [ $status -eq 0 ]
-  [ "$output" = "app-a:env-a:1.1" ]
-}
diff --git a/test/help.bats b/test/help.bats
deleted file mode 100755
index eba4eeb..0000000
--- a/test/help.bats
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/env bats
-# vim: set filetype=sh:
-
-load utils
-
-@test "./app" {
-  app; echo_lines
-  [ $status -eq $exit_usage_wrong ]
-  [ $(expr "${lines[0]}" : "usage: ./app .*") -ne 0 ]
-}
-
-@test "./app foo" {
-  app foo; echo_lines
-  [ $status -eq $exit_usage_wrong ]
-  [ "${lines[0]}" = "Error: No such method group: foo" ]
-  [ $(expr "${lines[1]}" : "usage: ./app .*") -ne 0 ]
-}
diff --git a/test/it-install-remove.bats b/test/it-install-remove.bats
deleted file mode 100755
index 78f4532..0000000
--- a/test/it-install-remove.bats
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/env bats
-# vim: set filetype=sh:
-
-load utils
-
-@test "install remove roundtrip" {
-  mkzip "app-a"
-  name="app-a"
-  instance="prod"
-  a="-n $name -i $instance"
-
-  describe "Installing $name/$instance"
-  app instance install \
-    -r file \
-    -u $BATS_TEST_DIRNAME/data/app-a.zip \
-    -n $name -i $instance; echo_lines
-  [ $status -eq 0 ]
-
-  can_not_read ".app/var/pid/$name-$instance.pid"
-
-  describe "Setting property"
-  app -n $name -i $instance conf set env.TEST_PROPERTY awesome
-  [ $status -eq 0 ]
-
-  describe "Starting $name/$instance"
-  app -n $name -i $instance operate start
-  echo_lines
-  [ $status -eq 0 ]
-  can_read .app/var/pid/$name-$instance.pid
-
-  describe "Stopping $name/$instance"
-  app -n $name -i $instance operate stop
-  [ $status -eq 0 ]
-  echo_lines
-  can_not_read .app/var/pid/$name-$instance.pid
-
-  can_read "$name/$instance/logs/$name.log"
-  can_read "$name/$instance/logs/$name.env"
-  can_read "$name/$instance/current/foo.conf"
-
-  [ "`cat $name/$instance/logs/$name.env`" = "TEST_PROPERTY=awesome" ]
-  [ "`cat $name/$instance/current/foo.conf`" = "hello" ]
-
-  # TODO: Remove the version
-}
-- 
cgit v1.2.3