Skip to content

Commit 6ac5d56

Browse files
committed
fixed test run for real compilation
1 parent 4f9088a commit 6ac5d56

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/90_install.bats

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
load test_helper
44

55
@test "Call php-band to install an already downloaded archive" {
6-
# [ ! -f "archs/php-5.6.10.tar.xz" ]
7-
# cp $BATS_TEST_DIRNAME/fixtures/php-5.6.10.tar.xz archs/
86
[ -f "${PHP_BAND_ASSETS_DIR}/archs/php-5.6.10.tar.xz" ]
97
PHP_BAND_ASSETS_DIR=$PHP_BAND_ASSETS_DIR run bin/php-band --install 5.6.10
108
[ -f "${PHP_BAND_ASSETS_DIR}/archs/php-5.6.10.tar.xz" ]
@@ -18,15 +16,15 @@ load test_helper
1816
if [ "x$PHP_BAND_TEST_COMPILATION" = "x" ]; then
1917
skip "We only compile if PHP_BAND_TEST_COMPILATION is set"
2018
fi
21-
PHP_BAND_ASSETS_DIR=$PHP_BAND_ASSETS_DIR run bin/php-band --install 5.6.10
19+
run bin/php-band --install 5.6.10
2220
assert_line_contains "PHP 5.6.10 has been downloaded"
2321
[ -f "archs/php-5.6.10.tar.xz" ]
2422
[ -d "src/php-5.6.10" ]
2523
[ -f "src/php-5.6.10/.configured" ]
2624
[ -f "src/php-5.6.10/.built" ]
2725
[ -f "inst/5.6.10/bin/php" ]
2826
assert_status 0
29-
run ${PHP_BAND_ASSETS_DIR}/inst/5.6.10/bin/php -v
27+
run inst/5.6.10/bin/php -v
3028
assert_line_contains "php 5.6.10"
3129
assert_status 0
3230
}

0 commit comments

Comments
 (0)