]>
git.proxmox.com Git - mirror_lxc.git/blob - runapitests.sh
4 # Copyright © 2012 Serge Hallyn <serge.hallyn@ubuntu.com>.
5 # Copyright © 2012 Canonical Ltd.
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License, or (at your option) any later version.
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # Lesser General Public License for more details.
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 rm -f /etc
/lxc
/test-busybox.conf
26 if [ `id -u` -ne 0 ]; then
31 cat > /etc
/lxc
/test-busybox.conf
<< EOF
33 lxc.network.link=lxcbr0
37 [ -f liblxc.so
.0 ] ||
ln -s src
/lxc
/liblxc.so .
/liblxc.so
.0
38 export LD_LIBRARY_PATH
=.
39 TESTS
="lxc-test-containertests lxc-test-locktests lxc-test-startone"
40 for curtest
in $TESTS; do
41 echo "running $curtest"
44 echo "Test $curtest failed. Stopping"
49 echo "All tests passed"