|
⇤ ← Revision 1 as of 2016-02-16 18:08:03
Size: 2135
Comment:
|
Size: 2534
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| = Block-01-01 - TEST DIRECTORY SET-UP - ORIG = | = Block-1A - TEST DIRECTORY SET-UP - ORIG = |
| Line 36: | Line 36: |
| ## (for example, Block-01-01-TestDirSetUp-Orig) | ## (for example, Block-1A-TestDirSetUp-Orig) |
| Line 40: | Line 40: |
| blockID=Block-01-01-TestDirSetUp-Orig | blockID=Block-1A-TestDirSetUp-Orig |
| Line 49: | Line 49: |
| # sync to F3-base directory | # sync to F3-base/orig directory |
| Line 51: | Line 51: |
| rsync -ha ../F3-base/base/IMAGEFILES base/ | |
| Line 53: | Line 52: |
| ## VARIANCE-F3G: rm orig/DATA ln -s ../ORex/DATA orig/DATA ## END OF VARIANCE # Print details |
# print details |
| Line 61: | Line 55: |
# Link to App and PS Images contained in F3-base directory ls /SPC_Test/F3-base/base/IMAGEFILES/M59* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev > lsupport/listImagesF3base ls /SPC_Test/F3-base/base/IMAGEFILES/P59* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> lsupport/listImagesF3base while read line; do ln -s /SPC_Test/F3-base/base/IMAGEFILES/${line}.DAT base/IMAGEFILES/${line}.DAT done < lsupport/listImagesF3base cp /SPC_Test/F3-base/base/IMAGEFILES/README base/IMAGEFILES/ # print details |
|
| Line 65: | Line 72: |
| date | |
| Line 66: | Line 74: |
Block-1A - TEST DIRECTORY SET-UP - ORIG
##########################################################################
## ##
## BLOCK 01-01 ##
## TEST DIRECTORY SET-UP - ORIG ##
## ##
##########################################################################
## This block populates an F3 test directory from the F3-base directory
## It clears and re-populates the working directory (orig)
## and updates the .DAT file directory (base/IMAGEFILES)
## in readiness for sensitivity testing
## Assumptions:
## User has invoked a Bourne-Again Shell (bash) on ormacsrv1.lpl.arizona.edu
## User is a member of the group OREX\spc
## User has set up a skeleton directory in the following format:
## /SPC_Test/F3G-Nav/
## ORex/
## DATA/
## base/
## IMAGEFILES/
## SHAPEFILES/
## lsupport/
## orig/
## results/
## test/
## User inputs:
## testID: Name of the F3 test directory (for example, F3E-Limbs)
## blockID: User-specified identifier for typescript textfile name
## (for example, Block-1A-TestDirSetUp-Orig)
# User inputs:
testID=F3G-Nav
blockID=Block-1A-TestDirSetUp-Orig
# Set-Up
cd /SPC_Test/$testID
script
date
pwd
ls -l
# sync to F3-base/orig directory
rsync --delete -ha ../F3-base/orig .
# print details
ls -l orig
cat orig/README
# Link to App and PS Images contained in F3-base directory
ls /SPC_Test/F3-base/base/IMAGEFILES/M59* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev > lsupport/listImagesF3base
ls /SPC_Test/F3-base/base/IMAGEFILES/P59* | cut -d '.' -f 1 | rev | cut -d '/' -f 1 | rev >> lsupport/listImagesF3base
while read line; do
ln -s /SPC_Test/F3-base/base/IMAGEFILES/${line}.DAT base/IMAGEFILES/${line}.DAT
done < lsupport/listImagesF3base
cp /SPC_Test/F3-base/base/IMAGEFILES/README base/IMAGEFILES/
# print details
ls -l base/IMAGEFILES
cat base/IMAGEFILES/README
# Block Complete
date
exit
# Save block log
if [ ! -d /SPC_Test/$testID/log ]; then
mkdir /SPC_Test/$testID/log
fi
mv typescript /SPC_Test/$testID/log/log-typescript-${blockID}