Skip to content

Commit 0bacfec

Browse files
author
Patrick J Cherry
committed
Tidy autotesting for stretch; adding dpkg-dev
1 parent 2c1510b commit 0bacfec

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

autotest/test.d/05-install-and-upgrade

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ fi
1616
# echo "Acquire::http::Proxy \"http://$GATEWAY:3142\";" >> /etc/apt/apt.conf.d/95proxy
1717

1818
if [ "upgrade" = "$ACTION" ] ; then
19-
echo "I: Adding jessie sources list"
20-
cp $PREFIX/conf/debian-jessie-sources.list /etc/apt/sources.list
19+
echo "I: Adding stretch sources list"
20+
cp $PREFIX/conf/debian-stretch-sources.list /etc/apt/sources.list
2121

2222
echo "I: Installing current version of Symbiosis from repo.bytemark.co.uk"
2323
$PREFIX/bin/apt-get-install $PREFIX/conf/current-stretch-sources.list $PREFIX/conf/stretch-packages
@@ -30,17 +30,17 @@ if [ "upgrade" = "$ACTION" ] ; then
3030

3131
elif [ "dist-upgrade" = "$ACTION" ] ; then
3232
#
33-
# If we're upgrading from squeeze:
33+
# If we're upgrading from jessie:
3434
#
35-
if grep -q wheezy /etc/apt/sources.list ; then
36-
echo "I: Installing wheezy version of Symbiosis from repo.bytemark.co.uk"
37-
$PREFIX/bin/apt-get-install $PREFIX/conf/current-wheezy-sources.list $PREFIX/conf/wheezy-packages || true
35+
if grep -q jessie /etc/apt/sources.list ; then
36+
echo "I: Installing jessie version of Symbiosis from repo.bytemark.co.uk"
37+
$PREFIX/bin/apt-get-install $PREFIX/conf/current-jessie-sources.list $PREFIX/conf/jessie-packages || true
3838

39-
echo "I: Replacing wheezy sources with stretch"
39+
echo "I: Replacing jessie sources with stretch"
4040
cp $PREFIX/conf/debian-stretch-sources.list /etc/apt/sources.list
4141

42-
echo "I: Removing old wheezy symbiosis list"
43-
rm /etc/apt/sources.list.d/current-wheezy-sources.list
42+
echo "I: Removing old jessie symbiosis list"
43+
rm /etc/apt/sources.list.d/current-jessie-sources.list
4444

4545
#echo "I: clamav with squeeze is a bit ropey, so I'll clear out the freshclam stuff"
4646
#invoke-rc.d clamav-daemon stop
@@ -57,7 +57,7 @@ elif [ "dist-upgrade" = "$ACTION" ] ; then
5757
#
5858
# Now upgrade to stretch
5959
#
60-
echo "I: Performing dist-upgrade from wheezy"
60+
echo "I: Performing dist-upgrade from jessie"
6161

6262
#
6363
# If the install has failed, try to start pure-authd and carry on
@@ -73,8 +73,8 @@ elif [ "dist-upgrade" = "$ACTION" ] ; then
7373
echo "I: ensuring Symbiosis packages are installed"
7474
$PREFIX/bin/apt-get-install $PREFIX/conf/autotest-sources.list $PREFIX/conf/stretch-packages
7575
else
76-
echo "I: Adding jessie sources list"
77-
cp $PREFIX/conf/debian-jessie-sources.list /etc/apt/sources.list
76+
echo "I: Adding stretch sources list"
77+
cp $PREFIX/conf/debian-stretch-sources.list /etc/apt/sources.list
7878

7979
echo "I: Installing latest version of Symbiosis from repo.bytemark.co.uk"
8080
$PREFIX/bin/apt-get-install $PREFIX/conf/autotest-sources.list $PREFIX/conf/stretch-packages

autotest/test.d/conf/stretch-packages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
lsb-base
22
lsb-release
33
coreutils
4+
dpkg-dev
45
bytemark-symbiosis
56
symbiosis-backup
67
symbiosis-common

0 commit comments

Comments
 (0)