GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — dataloader/runtests.sh at master · forcedotcom/dataloader Expand file tree/ Copy pathruntests.shMore file actions executable file ·82 lines (69 loc) · 2.69 KB / Copy pathruntests.shFile metadata and controlsexecutable file ·82 lines (69 loc) · 2.69 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 #!/bin/bash -f usage() { echo "Usage: " echo "$0 [-d] [-D] [-c] [-i][-t <test class name without the package prefix com.salesforce.dataloader e.g. dyna.DateConverterTest>] <test org URL> <test admin username> <test regular user username> <encrypted test password>" echo "Listening on port 5005 for IDE to start the debugging session if -d is specified." echo "Run 'mvn clean package' before encrypting password if -c is specified." echo "Ignore test failures and continue test run if -i is specified." exit 1 } # To generate encrypted password # build jar with the following command: # mvn clean package -DskipTests # run the following command to get encrypted password for the test admin account: #java -cp target/dataloader-*.jar com.salesforce.dataloader.security.EncryptionUtil -e <password> test="" debug="" debugEncryption="" #encryptionFile=${HOME}/.dataloader/dataLoader.key encryptionFileFlag="" failfast="-Dsurefire.skipAfterFailureCount=5" while getopts ":dDicv:t:f:" flag do case "${flag}" in d) debug="-Dmaven.surefire.debug=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=0.0.0.0:5005" ;; D) debugEncryption="-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=0.0.0.0:5005,suspend=y" ;; t) test="-Dskip-unit-tests=true -Dtest=com.salesforce.dataloader.${OPTARG}" ;; f) encryptionFileFlag="-Dtest.encryptionFile=${OPTARG}" ;; i) failfast="" ;; *) usage ;; esac done shift $((OPTIND -1)) # $1 contains the test org URL # $2 test admin user username # $3 test regular user username # $4 test admin and regular user encoded password if [ "$#" -lt 4 ]; then usage fi #echo $@ mvn clean package -Dmaven.test.skip=true jarname="$(find ./target -name 'dataloader-[0-9][0-9].[0-9].[0-9].jar' | tail -1)" #echo "password = ${4}" encryptedPassword="$(java ${debugEncryption} -cp ${jarname} com.salesforce.dataloader.process.DataLoaderRunner run.mode=encrypt -e ${4} ${encryptionFile} | tail -1)" additionalOptions="" for option in $@ do if [[ ${option} == -D* ]]; then additionalOptions+=" " additionalOptions+=${option} fi done # uncomment the following lines to debug issues with password encryption #echo "encryptedPassword = ${encryptedPassword}" #decryptedPassword="$(java ${debugEncryption} -cp ${jarname} com.salesforce.dataloader.process.DataLoaderRunner run.mode=encrypt -d ${encryptedPassword} ${encryptionFile} | tail -1)" #echo "decryptedPassword = ${decryptedPassword}" mvn ${failfast} -Dtest.endpoint=${1} -Dtest.user.default=${2} -Dtest.user.restricted=${3} -Dtest.password=${encryptedPassword} ${encryptionFileFlag} verify ${debug} ${test} ${additionalOptions} |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |