From cbe3a58b138e7596d53bb93e5a17d084ba1350dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= Date: Tue, 28 Aug 2012 13:51:02 -0400 Subject: [PATCH] Remove duplicate copy of runapitests.bash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber --- lxc/runapitests.bash | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 lxc/runapitests.bash diff --git a/lxc/runapitests.bash b/lxc/runapitests.bash deleted file mode 100644 index 2b1b3baec..000000000 --- a/lxc/runapitests.bash +++ /dev/null @@ -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