changeset 1613:90bed4e10cc8 deploy

Download file link
author Chris Cannam
date Wed, 30 Aug 2017 17:24:37 +0100
parents 2496b955f638
children 96bcc0ebd102
files deploy/provision.d/115-other-dirs.sh deploy/test/smoketest.sh
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/deploy/provision.d/115-other-dirs.sh	Wed Aug 30 15:51:18 2017 +0100
+++ b/deploy/provision.d/115-other-dirs.sh	Wed Aug 30 17:24:37 2017 +0100
@@ -13,6 +13,7 @@
 for dir in \
     /var/files/backups \
     /var/doc \
+    /var/files/code \
     /var/files/git-mirror ; do
     if [ ! -d "$dir" ]; then
         mkdir -p "$dir"
@@ -29,3 +30,7 @@
         chmod g+s "$dir"
     fi
 done
+
+if [ ! -e /var/www/code/files ]; then
+    ln -s /var/files/code /var/www/code/files
+fi
--- a/deploy/test/smoketest.sh	Wed Aug 30 15:51:18 2017 +0100
+++ b/deploy/test/smoketest.sh	Wed Aug 30 17:24:37 2017 +0100
@@ -33,6 +33,9 @@
 # A project known not to exist
 nonexistent_project=nonexistent-project
 
+# A file for download known to exist
+file_for_download=/attachments/download/2210/vamp-plugin-sdk-2.7.1-binaries-osx.tar.gz
+
 tried=0
 succeeded=0
 
@@ -80,6 +83,7 @@
 assert "/hg/$project_with_repo" "Mercurial repo"
 assert "/projects/$project_with_docs/embedded" "Project documentation page (from docgen cron script)"
 assert "/git/$project_with_repo/info/refs" "Git repo mirror"
+assert "$file_for_download" "File for download"
 
 # we expect this to return an http auth requirement, not a 404 - the
 # value 6 is wget's return code for auth failure