Sha256: 8cfab84e37264c32605cca11359808f1c0218f3518f951ad4cca39948f5bf972
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
#!/bin/sh # Program Name: cli_tester.sh # Purpose: Quick and dirty tester on a live magnolia instance # Requirements: You must be running a live version of magnolia for # this tester to work! Will not integrate with unit # tests easily because of this # To Run: cd $MAGNOLINE_CHECKOUT/test && ./cli_test.sh # Point to the magnolia URl you want to hammer SERVER_URL="http://tiramisu.netir-wsp.net/irbAuthor" test_file_name() { WORKSPACE=$1 XML_FILENAME=$2 echo "Testing on ${WORKSPACE} workspace" echo "========================" printf "Is export of root ${WORKSPACE} named ${XML_FILENAME}... " ruby -d main_client.rb -a export -o . -v -s "${SERVER_URL}" \ -w ${WORKSPACE} -r / > /dev/null 2>&1 if test -f "${XML_FILENAME}" then echo "YES" else echo "NO" fi } # Need to go into lib directory for this to work properly cd ../lib # dms workspace tests test_file_name 'dms' 'dms.xml' # website workspace tests test_file_name 'website' 'website.xml' # users workspace tests test_file_name 'users' 'users.xml' # config workspace tests test_file_name 'config' 'config.xml'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
magnoline-0.4 | test/cli_test.sh |
magnoline-0.5 | test/cli_test.sh |