chiark / gitweb /
Mirroring: Tests: check that we do not mirror private repos
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 11 Jul 2015 13:17:06 +0000 (14:17 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 11 Jul 2015 13:24:40 +0000 (14:24 +0100)
tests/tests/mirror-private [new file with mode: 0755]

diff --git a/tests/tests/mirror-private b/tests/tests/mirror-private
new file mode 100755 (executable)
index 0000000..5105339
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/bash
+set -e
+. tests/lib
+. $troot/lib-mirror
+
+t-debpolicy
+
+t-tstunt-parsechangelog
+t-prep-newpackage example 1.0
+
+t-mirror-setup
+
+cd $p
+revision=1
+
+t-reporefs master
+
+t-dgit build
+t-dgit push --new
+
+t-check-not-mirrored
+t-files-notexist $reposmirror/$p.*
+
+echo ok.