kschrader    01/07/20 07:07:18

  Modified:    .        README.txt
  Added:       .        currenttdk.sh
  Log:
  Adding a script to update and build a fresh TDK automatically until we get GUMP 
working.
  
  Revision  Changes    Path
  1.12      +4 -0      jakarta-turbine-tdk/README.txt
  
  Index: README.txt
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-tdk/README.txt,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- README.txt        2001/05/13 13:26:46     1.11
  +++ README.txt        2001/07/20 14:07:18     1.12
  @@ -17,4 +17,8 @@
               sample application in the TDK.
   test/       Information about testers.
   
  +If you have sucessfully built the TDK before, the tdkcurrent.sh
  +file will automate your builds from now on.  Documentation on
  +how to initially build the TDK will be coming soon.
  +
   - Turbine Development Team
  
  
  
  1.1                  jakarta-turbine-tdk/currenttdk.sh
  
  Index: currenttdk.sh
  ===================================================================
  #!/bin/sh
  
  # This script updates all of the source 
  # and then 
  # builds a fresh and clean test TDK
  
  # Update Regexp (Just in case)
  (
    echo -----------------
    echo  BUILDING REGEXP
    echo -----------------
    cd ../jakarta-regexp/
    cvs up -Pd
    cd build
    ./build-regexp.sh clean
    ./build-regexp.sh
  )
  
  # Update ServletApi stuff
  (
    echo ---------------------
    echo  BUILDING SERVLETAPI
    echo ---------------------
    cd ../jakarta-servletapi-4/
    cvs up -Pd
    ./build.sh clean
    ./build.sh dist
  )
  
  # Build Tomcat
  (
    echo -----------------
    echo  BUILDING TOMCAT
    echo -----------------
    cd ../jakarta-tomcat-4.0/
    cvs up -Pd
    ./build.sh clean
    ./build.sh dist
  )
  
  # Build Torque
  (
    echo -----------------
    echo  BUILDING TORQUE 
    echo -----------------
    cd ../jakarta-turbine-torque/
    cvs up -Pd
    cd build
    ant clean
    ant dist
  )
  
  # Build Turbine
  (
    echo ------------------
    echo  BUILDING TURBINE 
    echo ------------------
    cd ../jakarta-turbine/
    cvs up -Pd
    cd build
    ant clean
    ant
  )
  
  # Build Flux
  (
    echo ---------------
    echo  BUILDING FLUX 
    echo ---------------
    cd ../jakarta-turbine-flux/
    cvs up -Pd
    cd build
    ant clean
    ant
  )
  
  # Build the TDK
  (
    echo ------------------
    echo  BUILDING THE TDK 
    echo ------------------
    cvs up -Pd
    cd build
    ant clean
    ant
  )
  
  # Get the current version
  cd build
  VERSION=`grep ^tdk\.version build.properties | sed 's/tdk\.version *= *//'`
  echo ------------------------
  echo  TDK VERSION ${VERSION} 
  echo ------------------------
  cd ..
  
  # Move to the assembled TDK and generate
  # the sample application.
  (
    echo -------------------------------
    echo  BUILDING THE TDK SAMPLE APP 
    echo -------------------------------
    cd ./dist/tdk-${VERSION}
    ant
  )
  
  # Move to the generated sample application
  # and execute the init target.
  (
    echo --------------------------
    echo  INITing THE SAMPLE APP 
    echo --------------------------
    cd ./dist/tdk-${VERSION}/webapps/newapp/WEB-INF/build
    ant init
  )
  
  # Start the sample app
  (
    echo ---------------------------
    echo  STARTING THE CURRENT TDK 
    echo ---------------------------
    cd ./dist/tdk-${VERSION}/bin
    ./startup.sh
    sleep 10
  )
  
  # Run the tests we have so far
  (
    echo --------------------------
    echo  RUNNING THE TEST SUITE 
    echo --------------------------
    # Get it once to init the servlet
    # leaves behind junk though
    cd ./dist/tdk-${VERSION}
    wget http://localhost:8080/newapp/servlet/newapp
    cd ../../
    # ApacheBench the install
    echo --------------------------
    echo  RUNNING APACHE BENCH
    echo  Concurrency: 25
    echo  Connections: 1000
    echo  Results in ab.results 
    echo --------------------------
  
    echo ----------------------------- >> ab.results
    date >> ab.results
    echo ----------------------------- >> ab.results
    /usr/sbin/ab -c 25 -n 1000 http://localhost:8080/newapp/servlet/newapp >> 
ab.results
  )
  
  
  # Shut it back down
  (
    echo
    echo ---------------------------
    echo  STOPPING THE CURRENT TDK 
    echo ---------------------------
    cd ./dist/tdk-${VERSION}/bin
    ./shutdown.sh
  )
  
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to