26 lines
504 B
Plaintext
Raw Normal View History

#!/bin/bash
if [ "$#" -lt 1 ]; then
echo "Usage: .functests <flavour>"
echo "flavour = jenkins | dev"
exit 1
fi
FLAVOR="$1"
if [ "$FLAVOR" != "jenkins" ] && [ "$FLAVOR" != "dev" ]; then
echo "flavour must be either \"jenkins\" or \"dev\""
echo "dev flavor skips long running tests"
exit 1
fi
shift
Create storlets package Previously, we had multiple packages, like storlet_middleware, storlet_gateway and so on, in our storlets repository. This patch integrates these packages into one package, to follow general manner of python packaging. Also, this patch replaces previous install system using ant by new install system using python setup.py. (top directory) + bin <- executable files + etc <- configration samples + src <- non-python codes | + c <- c codes | | + sbus <- Previously Engine/SBus/SBusTransportLayer | + java <- java codes | + SBus <- Previously Engine/SBus/SBusJavaFacade | + SCommon <- Previously Engine/SBus/SCommon | + SDaemon <- Previously Engine/SBus/SDaemon + storlets <- python codes. | + agent | | + daemon <- Previously Engine/agent/storlet_daemon | | + daemon_factory <- Previously Engine/agent/storlet_daemon_factory | + gateway <- Previously Engine/swift/storlet_gateway | + sbus <- Previously Engine/SBus/SBusPythonFacade | + swift_middleware <- Previously Engine/swift/storlet_middleware | + tools <- Previously tools + tests <- test codes + scripts <- Previously Engine/SMScripts + install_libs.sh <- Script used to build/install c/java codes + setup.cfg + setup.py NOTE1: Currently we have an independent installation tool for c/java, as the other existing OpenStack projects (ex. Monasca) do. To install c/java modules, run './install_libs.sh' at the top directory. It installs required files under /usr/local/lib/storlets, so you may need root privilege. NOTE2: We install agent resources also on host, but this is currently kept to be used for our future plan to let containers use agent resources by mounting it from host node. NOTE3: This patch also removes outdated ansible playbooks. Co-Authored-By: Eran Rom <eran@itsonlyme.name> Change-Id: Icdcafdf6e6d06917d715ad9a8cba45305613a6fb
2016-09-16 04:05:32 +09:00
ant build_storlets
SRC_DIR=$(cd $(dirname $0); pwd)
cd ${SRC_DIR}/tests/functional
if [ "$FLAVOR" == "jenkins" ]; then
nose2 -v ${@:2}
else
nose2 -v -A '!slow' ${@:2}
fi