chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test suite: lib-reprepro: Add a couple of comments
[dgit.git]
/
tests
/
lib-reprepro
diff --git
a/tests/lib-reprepro
b/tests/lib-reprepro
index af331432a6820ed15ed4483f4188a6c90de375da..c304bf8c3c99ae6d257f6d84ecb124915ffdf5df 100644
(file)
--- a/
tests/lib-reprepro
+++ b/
tests/lib-reprepro
@@
-4,24
+4,31
@@
t-reprepro () {
t_archive_method=reprepro
t_archive_method=reprepro
+ t-reprepro-cfg
+}
+
+t-reprepro-cfg () {
+ local etcapt=$tmp/etc-apt
+ local mir=$tmp/mirror
+
t-git-config dgit-distro.test-dummy.archive-query aptget:
t-git-config dgit-distro.test-dummy.archive-query aptget:
- t-git-config dgit-distro.test-dummy.mirror file://$
tmp/mirro
r/
+ t-git-config dgit-distro.test-dummy.mirror file://$
mi
r/
- mkdir $
tmp/etc-
apt
- cat >$
tmp/etc-
apt/conf <<END
-Dir::Etc "$
tmp/etc-
apt";
+ mkdir $
etc
apt
+ cat >$
etc
apt/conf <<END
+Dir::Etc "$
etc
apt";
END
END
- export APT_CONFIG=$
tmp/etc-
apt/conf
+ export APT_CONFIG=$
etc
apt/conf
gpg --export Hannibal >han.pgp
fakeroot apt-key add <han.pgp
gpg --export Hannibal >han.pgp
fakeroot apt-key add <han.pgp
- mkdir $
tmp/etc-
apt/apt.conf.d
+ mkdir $
etc
apt/apt.conf.d
}
}
-t-archive-none-reprepro () {
+t-archive-none-reprepro () {
# hook called by t-archive-none
t-reprepro-setup
t-reprepro-regen
}
t-reprepro-setup
t-reprepro-regen
}
-t-archive-query-reprepro () {
+t-archive-query-reprepro () {
# hook called by t-archive-query
local suite=$1
local p=$2
local v=$3
local suite=$1
local p=$2
local v=$3
@@
-30,9
+37,10
@@
t-archive-query-reprepro () {
}
t-reprepro-setup () {
}
t-reprepro-setup () {
- local rrc=$tmp/mirror/conf
+ local mir=$tmp/mirror
+ local rrc=$mir/conf
mkdir -p $rrc
mkdir -p $rrc
- mkdir -p $
tmp/mirro
r/pool/main
+ mkdir -p $
mi
r/pool/main
exec 3>$rrc/distributions
exec 3>$rrc/distributions
@@
-42,10
+50,10
@@
t-reprepro-setup () {
local suite=${suitespec%%:*}
local sname=${suitespec#*:}
local suite=${suitespec%%:*}
local sname=${suitespec#*:}
- mkdir -p $
tmp/mirro
r/dists
+ mkdir -p $
mi
r/dists
if [ $sname != $suite ]; then
if [ $sname != $suite ]; then
- rm -f $
tmp/mirro
r/dists/$sname
- ln -s $suite $
tmp/mirro
r/dists/$sname
+ rm -f $
mi
r/dists/$sname
+ ln -s $suite $
mi
r/dists/$sname
fi
cat >&3 <<END
fi
cat >&3 <<END
@@
-60,9
+68,10
@@
END
}
t-run-reprepro () {
}
t-run-reprepro () {
+ local mir=$tmp/mirror
reprepro \
reprepro \
- --outdir $
tmp/mirro
r \
- --basedir $
tmp/mirro
r \
+ --outdir $
mi
r \
+ --basedir $
mi
r \
"$@"
}
"$@"
}