Test that tools' executables are installed in the PATH.
This commit is contained in:
parent
5b08029d0b
commit
f2e8240427
5 changed files with 60 additions and 9 deletions
|
|
@ -12,7 +12,7 @@ function run_in_container {
|
|||
shift
|
||||
[ -f $CONTAINER ] && OPTION="--image" || OPTION="--directory"
|
||||
sudo systemd-nspawn --chdir=/vigil --overlay=$VIGIL_PATH:/vigil \
|
||||
$OPTION=$CONTAINER $@
|
||||
$OPTION=$CONTAINER /bin/bash --login -c "$*"
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -70,6 +70,8 @@ for DISTRIBUTION in ubuntu fedora debian archlinux; do
|
|||
fi
|
||||
echo "Installing vigil's dependencies in $DISTRIBUTION..."
|
||||
run_in_container $DISTRIBUTION ./install-dependencies
|
||||
echo "Testing executables are installed in $DISTRIBUTION..."
|
||||
run_in_container $DISTRIBUTION ./tools_test.py ExecutablesTestCase
|
||||
echo "Successfully installed vigil's dependencies in $DISTRIBUTION."
|
||||
echo "Removing $DISTRIBUTION container..."
|
||||
sudo rm -rf $DISTRIBUTION
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue