Add test for existance of cron and crontab

This was missing in x86 builds and we don't have a test verifying the
crontabs themselves, so it was never caught. It would be better to
verify those, but that would mean async testing which could result in
very slow builds or other issues.

Fixes #5
This commit is contained in:
ViViDboarder 2018-01-29 12:29:33 -08:00
parent 4e1eb0592b
commit efb7d3e5ab
3 changed files with 16 additions and 4 deletions

View File

@ -5,17 +5,21 @@ RUN [ "cross-build-start" ]
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
duplicity python-setuptools cron python-pexpect openssh-client \
cron \
duplicity \
lftp \
ncftp \
openssh-client \
python-cloudfiles \
python-gdata \
python-oauthlib \
python-paramiko \
python-pexpect \
python-pip \
python-setuptools \
python-urllib3 \
rsync \
tahoe-lafs \
python-pip \
&& pip install -U boto \
&& apt-get remove -y python-pip \
&& apt-get install -y --no-install-recommends \

View File

@ -7,18 +7,22 @@ RUN apt-get update \
&& add-apt-repository ppa:duplicity-team/ppa \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
duplicity python-setuptools python-pexpect openssh-client \
cron \
duplicity \
lftp \
ncftp \
openssh-client \
python-cloudfiles \
python-gdata \
python-oauthlib \
python-paramiko \
python-pexpect \
python-pip \
python-setuptools \
python-swiftclient \
python-urllib3 \
rsync \
tahoe-lafs \
python-pip \
&& pip install -U boto \
&& apt-get autoremove -y python-pip \
&& apt-get clean \

View File

@ -3,6 +3,10 @@ set -e
echo "Performing backup tests"
echo "Verify cron and crontab exist"
type cron
type crontab
echo "Create test data..."
mkdir -p /data && echo Test > /data/test.txt