mirror of
https://0xacab.org/liberate/backupninja.git
synced 2024-11-08 11:52:32 +01:00
tests: generate buildscript in vagrant test box
This commit is contained in:
parent
870811ebd6
commit
39e5f2ef23
@ -17,13 +17,16 @@ Once the requirements are in place, the test suite may be run in this manner:
|
||||
git clone git@0xacab.org:liberate/backupninja.git
|
||||
cd backupninja
|
||||
vagrant up
|
||||
vagrant rsync
|
||||
vagrant ssh -c "sudo /vagrant/test/test.sh"
|
||||
|
||||
It's possible to only test a specific handler with:
|
||||
|
||||
vagrant ssh -c "sudo /vagrant/test/test.sh rdiff"
|
||||
|
||||
To synchronise changes in the source code and rebuild backupninja:
|
||||
|
||||
vagrant rsync local && vagrant ssh -c "build-backupninja.sh"
|
||||
|
||||
Please report any problems with the test suite on the issue tracker at:
|
||||
|
||||
https://0xacab.org/liberate/backupninja/-/issues
|
||||
|
15
Vagrantfile
vendored
15
Vagrantfile
vendored
@ -41,11 +41,16 @@ Vagrant.configure("2") do |config|
|
||||
locale-gen
|
||||
apt-get update
|
||||
apt-get install -y automake make dialog sshpass
|
||||
cd /vagrant
|
||||
./autogen.sh
|
||||
./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib --libexecdir=/usr/lib
|
||||
make
|
||||
make install
|
||||
BUILDSCRIPT="/usr/local/bin/build-backupninja.sh"
|
||||
echo "#!/bin/sh" >> $BUILDSCRIPT
|
||||
echo "cd /vagrant" >> $BUILDSCRIPT
|
||||
echo "make clean" >> $BUILDSCRIPT
|
||||
echo "./autogen.sh" >> $BUILDSCRIPT
|
||||
echo "./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib --libexecdir=/usr/lib" >> $BUILDSCRIPT
|
||||
echo "make" >> $BUILDSCRIPT
|
||||
echo "sudo make install" >> $BUILDSCRIPT
|
||||
chmod +x $BUILDSCRIPT
|
||||
$BUILDSCRIPT
|
||||
mkdir -p /root/.ssh
|
||||
yes y | ssh-keygen -t ed25519 -f /root/.ssh/id_ed25519 -N ''
|
||||
echo "StrictHostKeyChecking accept-new" >> /root/.ssh/config
|
||||
|
Loading…
Reference in New Issue
Block a user