bundle install
for applications or bundle update
for gems/enginesbundle exec rspec
in another window$VERSION
with the version being tested, or set an environment variable `VERSION=4.6.2-RC-1`Run Solr and Fedora in separate windows:
$ echo "version: $VERSION" >> lib/generators/active_fedora/config/fedora/templates/fcrepo_wrapper_test.yml $ solr_wrapper -n hydra-test -p 8985 $ fcrepo_wrapper --version $VERSION -p 8986
Run two Solr instances and Fedora in separate windows:
$ solr_wrapper -p 8984 -i tmp/blacklight-core-test -n blacklight-core-test -d solr/config
$ solr_wrapper -p 8985 -i tmp/hydra-test -n hydra-test -d solr/config
$ fcrepo_wrapper --version $VERSION -p 8988
Run the test servers with the 5.0.0 RC: FCREPO_VERSION=5.0.0-RC-2 rake server:test
Run the test suite with Fedora 5 compatibility enabled: FEDORA5_COMPAT=true rspec
Run Solr and Fedora in the test application that is built using Engine Cart:
$ bundle exec rake engine_cart:regenerate $ cd .internal_test_app $ echo "version: $VERSION" >> config/fcrepo_wrapper_test.yml $ bundle exec rake hydra:test_server
Plum (should also work for most Hydra apps)
Run Solr and Fedora in the main application:
$ echo "version: $VERSION" >> config/fcrepo_wrapper_test.yml $ rake hydra:test_server