mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-01 06:09:12 +00:00
Remove duplicate copy of runapitests.bash
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
be2e4e54da
commit
cbe3a58b13
@ -1,32 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
cleanup() {
|
|
||||||
rm -f /etc/lxc/test-busybox.conf
|
|
||||||
rm -f liblxc.so.0
|
|
||||||
}
|
|
||||||
|
|
||||||
if [ `id -u` -ne 0 ]; then
|
|
||||||
echo "Run as root"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat > /etc/lxc/test-busybox.conf << EOF
|
|
||||||
lxc.network.type=veth
|
|
||||||
lxc.network.link=lxcbr0
|
|
||||||
lxc.network.flags=up
|
|
||||||
EOF
|
|
||||||
|
|
||||||
[ -f liblxc.so.0 ] || ln -s src/lxc/liblxc.so ./liblxc.so.0
|
|
||||||
export LD_LIBRARY_PATH=.
|
|
||||||
TESTS="containertests locktests startone"
|
|
||||||
for curtest in $TESTS; do
|
|
||||||
echo "running $curtest"
|
|
||||||
./src/tests/$curtest
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
echo "Test $curtest failed. Stopping"
|
|
||||||
cleanup
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
echo "All tests passed"
|
|
||||||
cleanup
|
|
Loading…
Reference in New Issue
Block a user