mirror of https://github.com/apache/cloudstack.git
fix build
This commit is contained in:
parent
ef2c7423f1
commit
3eb97d7d02
|
|
@ -1,15 +0,0 @@
|
|||
#!/usr/bin/python
|
||||
#
|
||||
# Cloud.com Bridge DB setup script.
|
||||
#
|
||||
|
||||
from getpass import getpass
|
||||
from subprocess import call
|
||||
|
||||
setup_db_dir = '/usr/share/cloud/setup/bridge/db'
|
||||
setup_db_script = 'deploy-db-bridge.sh'
|
||||
|
||||
print 'Welcome to CloudBridge Database setup.'
|
||||
passwd = getpass('Please enter the MySQL password for root@localhost: ')
|
||||
|
||||
call(['/bin/bash', setup_db_script, 'cloud', 'root', passwd], cwd=setup_db_dir)
|
||||
34
cloud.spec
34
cloud.spec
|
|
@ -281,16 +281,16 @@ Group: System Environment/Libraries
|
|||
%description cli
|
||||
The CloudStack command line tools contain a few Python modules that can call cloudStack APIs.
|
||||
|
||||
%package test
|
||||
Summary: CloudStack test suite
|
||||
Requires: java >= 1.6.0
|
||||
Requires: %{name}-utils = %{version}, %{name}-deps = %{version}, wget
|
||||
Group: System Environment/Libraries
|
||||
Obsoletes: vmops-test < %{version}-%{release}
|
||||
%description test
|
||||
The CloudStack test package contains a suite of automated tests
|
||||
that the very much appreciated QA team at CloudStack constantly
|
||||
uses to help increase the quality of the CloudStack Stack.
|
||||
#%package test
|
||||
#Summary: CloudStack test suite
|
||||
#Requires: java >= 1.6.0
|
||||
#Requires: %{name}-utils = %{version}, %{name}-deps = %{version}, wget
|
||||
#Group: System Environment/Libraries
|
||||
#Obsoletes: vmops-test < %{version}-%{release}
|
||||
#%description test
|
||||
#The CloudStack test package contains a suite of automated tests
|
||||
#that the very much appreciated QA team at CloudStack constantly
|
||||
#uses to help increase the quality of the CloudStack Stack.
|
||||
|
||||
%package usage
|
||||
Summary: CloudStack usage monitor
|
||||
|
|
@ -613,13 +613,13 @@ fi
|
|||
%files baremetal-agent
|
||||
%attr(0755,root,root) %{_bindir}/cloud-setup-baremetal
|
||||
|
||||
%files test
|
||||
%defattr(0644,root,root,0755)
|
||||
%attr(0755,root,root) %{_bindir}/%{name}-run-test
|
||||
%{_javadir}/%{name}-test.jar
|
||||
%{_sharedstatedir}/%{name}/test/*
|
||||
%{_libdir}/%{name}/test/*
|
||||
%config(noreplace) %{_sysconfdir}/%{name}/test/*
|
||||
#%files test
|
||||
#%defattr(0644,root,root,0755)
|
||||
#%attr(0755,root,root) %{_bindir}/%{name}-run-test
|
||||
#%{_javadir}/%{name}-test.jar
|
||||
#%{_sharedstatedir}/%{name}/test/*
|
||||
#%{_libdir}/%{name}/test/*
|
||||
#%config(noreplace) %{_sysconfdir}/%{name}/test/*
|
||||
|
||||
%files usage
|
||||
%defattr(0644,root,root,0775)
|
||||
|
|
|
|||
|
|
@ -1,38 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
LIBS="
|
||||
commons-httpclient
|
||||
commons-httpclient-3.1
|
||||
commons-logging
|
||||
commons-logging-1.1.1
|
||||
commons-codec
|
||||
commons-codec-1.3
|
||||
log4j
|
||||
log4j-1.2.15
|
||||
cloud-test
|
||||
cloud-utils
|
||||
trilead-ssh2
|
||||
trilead-ssh2-build213
|
||||
"
|
||||
|
||||
JAVADIR="@JAVADIR@"
|
||||
VMOPSCONF="@SYSCONFDIR@"/vmops/test
|
||||
if [ "$OSTYPE" == "cygwin" ] ; then
|
||||
true
|
||||
else
|
||||
set +e
|
||||
CLASSPATH=$(build-classpath $LIBS 2>/dev/null)
|
||||
set -e
|
||||
CLASSPATH="$CLASSPATH":"$VMOPSCONF"
|
||||
export CLASSPATH
|
||||
fi
|
||||
|
||||
test="$1"
|
||||
shift || true
|
||||
if [ "$test" == "" ] ; then
|
||||
echo usage: $0 test.to.run \<parameters...\> > /dev/stderr
|
||||
exit 64
|
||||
fi
|
||||
java -cp "$CLASSPATH" com.cloud.test."$test" "$@"
|
||||
|
|
@ -77,7 +77,7 @@ def build_jars ():
|
|||
"cloud-servlet-api.jar", "cloud-commons-logging-1.1.1.jar",
|
||||
"cloud-ws-commons-util-1.0.2.jar",
|
||||
"cloud-commons-collections-3.2.1.jar", "vmware*.jar", "cloud-secstorage-extras.jar",
|
||||
"cloud-agent-simulator.jar", "cloud-awsapi.jar"]
|
||||
"cloud-agent-simulator.jar", "cloud-awsapi.jar", "cloud-test.jar"]
|
||||
|
||||
for a in jars_str:
|
||||
if _basename (a).startswith ("cloud-") \
|
||||
|
|
@ -406,7 +406,7 @@ build_db_files ()
|
|||
build_plugins ()
|
||||
build_xml_api_description ()
|
||||
build_ovm ()
|
||||
build_test()
|
||||
#build_test()
|
||||
build_usage_dir()
|
||||
|
||||
# ====================== Magic! =========================================
|
||||
|
|
|
|||
Loading…
Reference in New Issue