export APP_HOME=$PWD export APP_BIN=$APP_HOME/bin export APP_DATA=$APP_HOME/data export PATH=$APP_BIN:$PATH:. unset P4AUDIT P4DEBUG P4NAME P4PORT P4ROOT P4JOURNAL P4LLOG P4DEBUG P4NAME export P4ROOT=$APP_HOME/root export P4PORT=4000 export P4USER=p4admin export P4LOG=log export P4JOURNAL=journal export P4BIN=$APP_BIN/p4 export P4DBIN=$APP_BIN/p4d export P4CONFIG=$APP_HOME/.p4config.automation if [[ ! -r $P4CONFIG ]]; then echo -e "P4PORT=4000\nP4USER=super-trigger\nP4ENVIRO=$APP_HOME/.p4enviro\nP4TICKETS=$APP_HOME/.p4tickets\nP4TRUST=$APP_HOME/.p4trust\nP4IGNORE=.p4ignore\n" > $P4CONFIG fi declare -i envOK=1 for exe in p4 p4d; do if [[ ! -r $APP_BIN/$exe ]]; then echo -e "\nError: Missing '$exe' executable in $APP_BIN. Acquire with commands like:\n\tcd $APP_BIN\n\twget ftp://ftp.perforce.com/perforce/r14.2/bin.darwin90x86_64/$exe\n\tchmod +x $exe\n\t./$exe -V\n\n" envOK=0 fi done [[ $envOK -eq 1 ]] && return 0 return 1
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#4 | 12555 | C. Thomas Tyler |
Test suite improvements: * Test cases now describe expected results. * Removed junk files (log and foo.txt). * Removed 'p4s' utility script, made obsolete by using the P4PORT 'rsh hack' for the test suite. * URLs for wget recommendations updated to refer to 2015.1. * Enhanced run_tests.sh to fix ugly output to make test verification more readable. |
||
#3 | 12539 | C. Thomas Tyler |
Implemened features to transform job-new.sh into a general purpose job name validation script, in addition to the original mission of incrementing '-new' features, per requirements from Thomas Gray. Updated test suite accordingly. Also simplified the test suite, which now uses the P4PORT 'rsh hack' to avoid needing to fire up a test server. #review-12540 @thomas_gray @lester_cheung |
||
#2 | 12094 | C. Thomas Tyler |
Added version tags to job-new.sh and run-tests.sh. Removed debug statements from job-new.sh. Updated .p4ignore to avoid adding log file. Updated test suite to run multi-pass test. Added APP_DATA setting to env.sh. |
||
#1 | 12093 | C. Thomas Tyler | Added job-new.sh and friends. |