From: scribu Date: Fri, 30 Aug 2013 15:13:53 +0000 (+0300) Subject: switch to develop.svn and only download the test utilities X-Git-Tag: v0.13.0~21^2~4 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=baaf3051b96c84a57a341525455db79125c5fe21;p=wvm%2Fwvm.git switch to develop.svn and only download the test utilities --- diff --git a/templates/install-wp-tests.sh b/templates/install-wp-tests.sh index 2320e61f..646b8c3d 100644 --- a/templates/install-wp-tests.sh +++ b/templates/install-wp-tests.sh @@ -26,9 +26,6 @@ fi wget -nv -O /tmp/wordpress.tar.gz http://wordpress.org/${ARCHIVE_NAME}.tar.gz tar --strip-components=1 -zxmf /tmp/wordpress.tar.gz -C $WP_CORE_DIR -# set up testing suite -svn co --ignore-externals --quiet http://unit-tests.svn.wordpress.org/trunk/ $WP_TESTS_DIR - # portable in-place argument for both GNU sed and Mac OSX sed if [[ $(uname -s) == 'Darwin' ]]; then ioption='-i ""' @@ -36,10 +33,13 @@ else ioption='-i' fi -# generate testing config file +# set up testing suite +mkdir -p $WP_TESTS_DIR cd $WP_TESTS_DIR -cp wp-tests-config-sample.php wp-tests-config.php -sed $ioption "s:dirname( __FILE__ ) . '/wordpress/':'$WP_CORE_DIR':" wp-tests-config.php +svn co --quiet http://develop.svn.wordpress.org/trunk/tests/phpunit/includes/ + +wget -nv -O wp-tests-config.php http://develop.svn.wordpress.org/trunk/wp-tests-config-sample.php +sed -i "s:dirname( __FILE__ ) . '/src/':'$WP_CORE_DIR':" wp-tests-config.php sed $ioption "s/yourdbnamehere/$DB_NAME/" wp-tests-config.php sed $ioption "s/yourusernamehere/$DB_USER/" wp-tests-config.php sed $ioption "s/yourpasswordhere/$DB_PASS/" wp-tests-config.php