You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ch...@apache.org on 2014/05/14 08:37:17 UTC

git commit: download and setup pexpect library

Repository: incubator-stratos
Updated Branches:
  refs/heads/stratos-651-cli-test-suite 8255890ee -> 50849a6f9


download and setup pexpect library


Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/50849a6f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/50849a6f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/50849a6f

Branch: refs/heads/stratos-651-cli-test-suite
Commit: 50849a6f957db632a1a1fd30ac1840dd5024ed1d
Parents: 8255890
Author: Chris Snow <ch...@apache.org>
Authored: Wed May 14 06:33:41 2014 +0000
Committer: Chris Snow <ch...@apache.org>
Committed: Wed May 14 06:33:41 2014 +0000

----------------------------------------------------------------------
 components/org.apache.stratos.cli/pom.xml | 30 +++++++++++++++++++++++---
 1 file changed, 27 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/50849a6f/components/org.apache.stratos.cli/pom.xml
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.cli/pom.xml b/components/org.apache.stratos.cli/pom.xml
index 62b9e97..8abe1b9 100644
--- a/components/org.apache.stratos.cli/pom.xml
+++ b/components/org.apache.stratos.cli/pom.xml
@@ -180,6 +180,30 @@
 			<build>
 				<plugins>
 					<plugin>
+						<artifactId>maven-antrun-plugin</artifactId>
+						<version>1.7</version>
+						<executions>
+							<execution>
+								<phase>pre-integration-test</phase>
+								<configuration>
+									<tasks>
+										<mkdir dir="${project.build.directory}/downloads/"/>
+										<get src="https://pypi.python.org/packages/source/p/pexpect/pexpect-3.2.tar.gz" 
+											dest="${project.build.directory}/downloads/"
+											verbose="true"/>
+										<gunzip src="${project.build.directory}/downloads/pexpect-3.2.tar.gz" 
+											dest="${project.build.directory}/downloads/pexpect-3.2.tar"/>
+										<untar src="${project.build.directory}/downloads/pexpect-3.2.tar" 
+											dest="${project.build.directory}/"/>
+									</tasks>
+								</configuration>
+								<goals>
+									<goal>run</goal>
+ 								</goals>
+							</execution>
+						</executions>
+					</plugin>
+					<plugin>
 						<groupId>org.codehaus.mojo</groupId>
 						<artifactId>exec-maven-plugin</artifactId>
 						<version>1.3</version>
@@ -193,7 +217,7 @@
 										<argument>test_common.py</argument>
 									</arguments>
 									<environmentVariables>
-										<PYTHONPATH>../../main/python:$PYTHONPATH</PYTHONPATH>
+										<PYTHONPATH>../../main/python:${project.build.directory}/pexpect-3.2:$PYTHONPATH</PYTHONPATH>
 										<CLI_JAR>${project.build.directory}/${project.build.finalName}.jar</CLI_JAR>
 										<WIREMOCK_JAR>${project.build.directory}/dependency/wiremock-${wiremock.version}-standalone.jar</WIREMOCK_JAR>
 									</environmentVariables>
@@ -213,7 +237,7 @@
 										<argument>test_interactive.py</argument>
 									</arguments>
 									<environmentVariables>
-										<PYTHONPATH>../../main/python:$PYTHONPATH</PYTHONPATH>
+										<PYTHONPATH>../../main/python:${project.build.directory}/pexpect-3.2:$PYTHONPATH</PYTHONPATH>
 										<CLI_JAR>${project.build.directory}/${project.build.finalName}.jar</CLI_JAR>
 										<WIREMOCK_JAR>${project.build.directory}/dependency/wiremock-${wiremock.version}-standalone.jar</WIREMOCK_JAR>
 									</environmentVariables>
@@ -233,7 +257,7 @@
 										<argument>test_noninteractive.py</argument>
 									</arguments>
 									<environmentVariables>
-										<PYTHONPATH>../../main/python:$PYTHONPATH</PYTHONPATH>
+										<PYTHONPATH>../../main/python:${project.build.directory}/pexpect-3.2:$PYTHONPATH</PYTHONPATH>
 										<CLI_JAR>${project.build.directory}/${project.build.finalName}.jar</CLI_JAR>
 										<WIREMOCK_JAR>${project.build.directory}/dependency/wiremock-${wiremock.version}-standalone.jar</WIREMOCK_JAR>
 									</environmentVariables>