simplify test structure and add bin stubs

This commit is contained in:
Jose Diaz-Gonzalez
2015-09-06 23:45:57 -04:00
parent bbdb6b05b1
commit 50f9c2f5ef
5 changed files with 6 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ lint:
unit-tests:
@echo running unit tests...
@$(QUIET) bats tests/unit
@$(QUIET) bats tests
setup:
bash tests/setup.sh

3
tests/bin/id Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "dokku"

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/unit/test_helper.bash"
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/test_helper.bash"
if [[ ! -d $DOKKU_ROOT ]]; then
git clone https://github.com/progrium/dokku.git $DOKKU_ROOT > /dev/null

View File

@@ -3,7 +3,7 @@
export DOKKU_QUIET_OUTPUT=1
export DOKKU_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/dokku"
export DOKKU_VERSION=${DOKKU_VERSION:-"master"}
export PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/dokku:$PATH"
export PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/bin:$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/dokku:$PATH"
export PLUGIN_PATH="$DOKKU_ROOT/plugins"
export SERVICE=redis