diff options
| author | Remi Collet <fedora@famillecollet.com> | 2015-05-22 08:34:43 +0200 | 
|---|---|---|
| committer | Remi Collet <fedora@famillecollet.com> | 2015-05-22 08:34:43 +0200 | 
| commit | 43cd836d43a5df257675393052e42751cca2e0de (patch) | |
| tree | fb2554ceaf7d9c0d70126527a315159b6fe4e864 | |
| parent | 7bcbfb91a9e94b0336051ccf926d219489f5b800 (diff) | |
php-pecl-http: also run online tests during local build (not mock)
| -rw-r--r-- | php-pecl-http.spec | 10 | 
1 files changed, 8 insertions, 2 deletions
diff --git a/php-pecl-http.spec b/php-pecl-http.spec index f96c2f3..fc90050 100644 --- a/php-pecl-http.spec +++ b/php-pecl-http.spec @@ -258,6 +258,14 @@ export REPORT_EXIT_STATUS=0  %else  export REPORT_EXIT_STATUS=1  %endif +user=$(id -un) +: all tests when rpmbuild is used +if [ "$user" = "remi" ]; then +export SKIP_ONLINE_TESTS=0 +else +: only local tests when mock is used +export SKIP_ONLINE_TESTS=1 +fi  # Shared needed extensions  modules="" @@ -276,7 +284,6 @@ done  %if %{with_tests}  : Upstream test suite NTS extension  cd NTS -SKIP_ONLINE_TESTS=1 \  TEST_PHP_EXECUTABLE=%{__php} \  TEST_PHP_ARGS="-n $modules -d extension=$PWD/modules/%{pecl_name}.so" \  NO_INTERACTION=1 \ @@ -293,7 +300,6 @@ NO_INTERACTION=1 \  %if %{with_tests}  : Upstream test suite ZTS extension  cd ../ZTS -SKIP_ONLINE_TESTS=1 \  TEST_PHP_EXECUTABLE=%{__ztsphp} \  TEST_PHP_ARGS="-n $modules -d extension=$PWD/modules/%{pecl_name}.so" \  NO_INTERACTION=1 \  | 
