Mercurial > hg > soundsoftware-site
changeset 1597:eeacb8332051 dockerise
Minor docs
author | Chris Cannam |
---|---|
date | Fri, 18 Aug 2017 22:02:54 +0100 |
parents | 45b0571b684d |
children | 073a75bf07fb |
files | deploy/README deploy/test/smoketest.sh |
diffstat | 2 files changed, 26 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/deploy/README Fri Aug 18 20:27:40 2017 +0100 +++ b/deploy/README Fri Aug 18 22:02:54 2017 +0100 @@ -1,3 +1,13 @@ Deploying the SoundSoftware site + + +After deployment +---------------- + +There is a smoke test script at test/smoketest.sh which checks that +the home page, a project page, a repo page etc can be retrieved. Some +of the pages it tries to retrieve are dependent on their generating +cron scripts having run at least once since the server was set up. +
--- a/deploy/test/smoketest.sh Fri Aug 18 20:27:40 2017 +0100 +++ b/deploy/test/smoketest.sh Fri Aug 18 22:02:54 2017 +0100 @@ -21,9 +21,14 @@ set -eu -# A project that is known to exist, be public, and have embedded -# documentation -project=vamp-plugin-sdk +# A project known to exist, be public, and have a repository +project_with_repo=vamp-plugin-sdk + +# A project known to exist, be public, and have embedded documentation +project_with_docs=vamp-plugin-sdk + +# A project known to exist, be public, and have a bibliography +project_with_biblio=sonic-visualiser tried=0 succeeded=0 @@ -42,24 +47,21 @@ echo if wget "$url" ; then echo "+++ Succeeded" - tried=$(($tried + 1)) succeeded=$(($succeeded + 1)) - cd "$origin" - return 0 else echo "--- FAILED" - tried=$(($tried + 1)) - cd "$origin" - return 1 fi + tried=$(($tried + 1)) + cd "$origin" } try "/" "Front page" -try "/projects/$project" "Project page" -try "/projects/$project/repository" "Repository page" -try "/hg/$project" "Mercurial repo" -try "/projects/$project/embedded" "Project documentation page (from docgen cron script)" -try "/git/$project/info/refs" "Git repo mirror" +try "/projects/$project_with_repo" "Project page" +try "/projects/$project_with_biblio" "Project page with bibliography" +try "/projects/$project_with_repo/repository" "Repository page" +try "/hg/$project_with_repo" "Mercurial repo" +try "/projects/$project_with_docs/embedded" "Project documentation page (from docgen cron script)" +try "/git/$project_with_repo/info/refs" "Git repo mirror" echo echo "Passed $succeeded of $tried"