Browse Source

Closes #606: Add the test to the test suite conf

Signed-off-by: Marcela Bonell <[email protected]>
Marcela Bonell 10 years ago
parent
commit
9c43e5c805
2 changed files with 4 additions and 2 deletions
  1. 1 0
      test/config.sh
  2. 3 2
      test/tests/php-hello-world/run.sh

+ 1 - 0
test/config.sh

@@ -79,6 +79,7 @@ declare -A imageTests=(
 	'
 	[php]='
 		php-ext-install
+		php-hello-world
 	'
 	[php:fpm]='
 		php-fpm-hello-web

+ 3 - 2
test/tests/php-hello-world/run.sh

@@ -1,6 +1,7 @@
 #!/bin/bash
 
 IMAGE="$1"
-DIR="/var/www/html/hello-world"
+DIR_TEST="$(dirname "$(readlink -f "$BASH_SOURCE")")"
+DIR_CONTAINER="/var/www/html/hello-world"
 
-docker run -it --rm -v $PWD:$DIR -w $DIR $IMAGE php index.php
+docker run -it --rm -v $DIR_TEST:$DIR_CONTAINER -w $DIR_CONTAINER $IMAGE php index.php