Author: milinda
Date: Tue Apr  1 04:17:06 2008
New Revision: 643363

URL: http://svn.apache.org/viewvc?rev=643363&view=rev
Log:
Ading isued token policy test to linux build.

Added:
    webservices/rampart/trunk/c/samples/client/issued_token/Makefile.am
    webservices/rampart/trunk/c/samples/client/issued_token/update_n_run.sh   
(with props)
    webservices/rampart/trunk/c/samples/secpolicy/saml.sh
Modified:
    webservices/rampart/trunk/c/samples/client/Makefile.am
    webservices/rampart/trunk/c/samples/configure.ac
    webservices/rampart/trunk/c/samples/secpolicy/run_all.sh

Modified: webservices/rampart/trunk/c/samples/client/Makefile.am
URL: 
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/client/Makefile.am?rev=643363&r1=643362&r2=643363&view=diff
==============================================================================
--- webservices/rampart/trunk/c/samples/client/Makefile.am (original)
+++ webservices/rampart/trunk/c/samples/client/Makefile.am Tue Apr  1 04:17:06 
2008
@@ -1,3 +1,3 @@
 TESTS =
-SUBDIRS = sec_echo sts_client saml_echo
+SUBDIRS = sec_echo sts_client saml_echo issued_token
 

Added: webservices/rampart/trunk/c/samples/client/issued_token/Makefile.am
URL: 
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/client/issued_token/Makefile.am?rev=643363&view=auto
==============================================================================
--- webservices/rampart/trunk/c/samples/client/issued_token/Makefile.am (added)
+++ webservices/rampart/trunk/c/samples/client/issued_token/Makefile.am Tue Apr 
 1 04:17:06 2008
@@ -0,0 +1,31 @@
+prgbindir=$(prefix)/bin/samples/rampart/client/issued_token
+prgbin_PROGRAMS = issued_token 
+datadir=$(prefix)/bin/samples/rampart/client/issued_token
+#data_DATA= update_n_run.sh
+#samplesdir=$(prefix)/samples/client/echo
+#samples_DATA=echo.c README.txt Makefile.am Makefile.in
+issued_token_SOURCES = echo.c 
+
+issued_token_LDADD   = $(LDFLAGS) \
+                    -L$(AXIS2C_HOME)/lib \
+                                       -L$(AXIS2C_HOME)/modules/rampart \
+                                       -laxutil \
+                    -laxis2_axiom \
+                                       -lneethi \
+                                       -lsecconv \
+                    -laxis2_engine \
+                    -laxis2_parser \
+                    -lpthread \
+                    -laxis2_http_sender \
+                    -laxis2_http_receiver \
+                                       -lsaml \
+                                       -ltrust \
+                                       -lmod_rampart \
+                    $(GUTHTHILA_LIBS) \
+                    $(LIBXML2_LIBS)
+
+INCLUDES = @AXIS2INC@ \
+                  -I$(AXIS2C_HOME)/include \
+            -I ../../../include 
+
+EXTRA_DIST = update_n_run.sh

Added: webservices/rampart/trunk/c/samples/client/issued_token/update_n_run.sh
URL: 
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/client/issued_token/update_n_run.sh?rev=643363&view=auto
==============================================================================
--- webservices/rampart/trunk/c/samples/client/issued_token/update_n_run.sh 
(added)
+++ webservices/rampart/trunk/c/samples/client/issued_token/update_n_run.sh Tue 
Apr  1 04:17:06 2008
@@ -0,0 +1,11 @@
+#!/bin/bash
+#If your client repository is different, change the value.
+CLIENT_REPO="$AXIS2C_HOME/client_repo"
+
+#INSTALL MODULE to make sure that both server and client have the same module.
+echo "Copying latest module to client_repo"
+cp -r $AXIS2C_HOME/modules/rampart $CLIENT_REPO/modules
+
+#RUN
+./issued_token http://localhost:9090/axis2/services/sec_echo/echoString 
$CLIENT_REPO
+

Propchange: 
webservices/rampart/trunk/c/samples/client/issued_token/update_n_run.sh
------------------------------------------------------------------------------
    svn:executable = *

Modified: webservices/rampart/trunk/c/samples/configure.ac
URL: 
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/configure.ac?rev=643363&r1=643362&r2=643363&view=diff
==============================================================================
--- webservices/rampart/trunk/c/samples/configure.ac (original)
+++ webservices/rampart/trunk/c/samples/configure.ac Tue Apr  1 04:17:06 2008
@@ -120,6 +120,7 @@
         client/sec_echo/data/Makefile \
                client/saml_echo/Makefile \
                client/sts_client/Makefile \
+               client/issued_token/Makefile \
         keys/Makefile \
         keys/ahome/Makefile \
         keys/bhome/Makefile \

Modified: webservices/rampart/trunk/c/samples/secpolicy/run_all.sh
URL: 
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/secpolicy/run_all.sh?rev=643363&r1=643362&r2=643363&view=diff
==============================================================================
--- webservices/rampart/trunk/c/samples/secpolicy/run_all.sh (original)
+++ webservices/rampart/trunk/c/samples/secpolicy/run_all.sh Tue Apr  1 
04:17:06 2008
@@ -5,7 +5,7 @@
 _SLEEP=3
 #You may change these to scenarios u need to run
 _LST="1 2 3 4 5 6 7 8 9 10 11 12 13 15 16 17 18 19"
-_SAML="20"
+
 if [ $# -eq 1 ]
 then
     _PORT=$1
@@ -39,27 +39,8 @@
 done
 
 #SAML Sample
-S_i=$_SCEN$_SAML
-echo 
"------------------------------------------------------------------------------"
-echo ">Deploying $_SAML"
-echo 
"------------------------------------------------------------------------------"
-sh deploy.sh $S_i
-echo ">Killing server"
-killall axis2_http_server
-echo "Sleeping for $_SLEEP seconds"
-sleep $_SLEEP
-echo ">Go to $AXIS2CHOME"
-cd $AXIS2C_HOME/bin
-echo ">Start server @ $_PORT"
-./axis2_http_server -p$_PORT &
-echo ">Go to client directory"
-cd $_SMPL_DIR/../client/saml_echo
-echo ">Run the sample"
-sh update_n_run.sh
-echo ">Jump back to samples dir : $_SMPL_DIR"
-cd $_SMPL_DIR
-
-   
+sh saml.sh
+  
 killall axis2_http_server
 echo "DONE"
 

Added: webservices/rampart/trunk/c/samples/secpolicy/saml.sh
URL: 
http://svn.apache.org/viewvc/webservices/rampart/trunk/c/samples/secpolicy/saml.sh?rev=643363&view=auto
==============================================================================
--- webservices/rampart/trunk/c/samples/secpolicy/saml.sh (added)
+++ webservices/rampart/trunk/c/samples/secpolicy/saml.sh Tue Apr  1 04:17:06 
2008
@@ -0,0 +1,48 @@
+#!/bin/bash
+
+_SAML="20"
+_SCEN="scenario"
+_SMPL_DIR="$PWD"
+_PORT=9090
+_SLEEP=3
+
+INST_DIR=$AXIS2C_HOME
+CLIENT_REPO="$INST_DIR/client_repo/"
+SERVICE_HOME="$INST_DIR/services"
+
+echo 
"------------------------------------------------------------------------------"
+echo ">Deploying $_SCEN$_SAML"
+echo 
"------------------------------------------------------------------------------"
+sh deploy.sh $_SCEN$_SAML
+
+echo "Replacing settings in policy files."
+if [ `uname -s` = Darwin ]
+then
+    sed -e 's,AXIS2C_HOME,'$INST_DIR',g' -e 's,\.so,\.dylib,g' 
$_SCEN$_SAML/sts-client-policy.xml > $CLIENT_REPO/sts_policy.xml
+else
+    sed 's,AXIS2C_HOME,'$INST_DIR',g' $_SCEN$_SAML/sts-client-policy.xml > 
$CLIENT_REPO/sts_policy.xml
+fi
+
+echo "Replacing settings in Configuration files."
+if [ `uname -s` = Darwin ]
+then
+    sed -e 's,AXIS2C_HOME,'$INST_DIR',g' -e 's,\.so,\.dylib,g' 
$_SCEN$_SAML/sts-services.xml > $SERVICE_HOME/saml_sts/services.xml
+else
+    sed 's,AXIS2C_HOME,'$INST_DIR',g' $_SCEN$_SAML/sts-services.xml > 
$SERVICE_HOME/saml_sts/services.xml
+fi
+
+echo ">Killing server"
+killall axis2_http_server
+echo "Sleeping for $_SLEEP seconds"
+sleep $_SLEEP
+echo ">Go to $AXIS2CHOME"
+cd $AXIS2C_HOME/bin
+echo ">Start server @ $_PORT"
+./axis2_http_server -p$_PORT &
+echo ">Go to client directory"
+cd $_SMPL_DIR/../client/issued_token
+echo ">Run the sample"
+sh update_n_run.sh
+echo ">Jump back to samples dir : $_SMPL_DIR"
+cd $_SMPL_DIR
+


Reply via email to