@@ -42,22 +42,22 @@ cp /StashCache/bin/stashcp2/tests/job.ad ./.job.ad
4242
4343# Test against a file that is known to not exist
4444set +e
45- /StashCache/bin/ stashcp --cache=$XRD_CACHE /blah/does/not/exist ./
45+ /StashCache/stashcp.py --cache=$XRD_CACHE /blah/does/not/exist ./
4646if [ $? -eq 0 ]; then
4747 echo " Failed to exit with non-zero exit status when it should have"
4848 exit 1
4949fi
5050set -e
5151
5252# Try copying with no forward slash
53- /StashCache/bin/ stashcp --cache=$XRD_CACHE user/dweitzel/public/blast/queries/query1 ./
53+ /StashCache/stashcp.py --cache=$XRD_CACHE user/dweitzel/public/blast/queries/query1 ./
5454
5555result=` md5sum query1 | awk ' {print $1;}' `
5656
5757rm query1
5858
5959# Try copying with different destintion filename
60- /StashCache/bin/ stashcp --cache=$XRD_CACHE -d /user/dweitzel/public/blast/queries/query1 query.test
60+ /StashCache/stashcp.py --cache=$XRD_CACHE -d /user/dweitzel/public/blast/queries/query1 query.test
6161
6262result=` md5sum query.test | awk ' {print $1;}' `
6363
6868rm -f query.test
6969
7070# Perform tests
71- /StashCache/bin/ stashcp --cache=$XRD_CACHE -d /user/dweitzel/public/blast/queries/query1 ./
71+ /StashCache/stashcp.py --cache=$XRD_CACHE -d /user/dweitzel/public/blast/queries/query1 ./
7272
7373result=` md5sum query1 | awk ' {print $1;}' `
7474
7575if [ " $result " != " 12bdb9a96cd5e8ca469b727a81593201" ]; then
7676 exit 1
7777fi
78+ rm -f query.test
79+
80+ # Perform methods test
81+ /StashCache/stashcp.py --cache=$XRD_CACHE --method=cvmfs,xrootd -d /user/dweitzel/public/blast/queries/query1 ./
82+
83+ result=` md5sum query1 | awk ' {print $1;}' `
84+
85+ if [ " $result " != " 12bdb9a96cd5e8ca469b727a81593201" ]; then
86+ exit 1
87+ fi
88+ rm -f query.test
89+
90+ # Perform methods test
91+ /StashCache/stashcp.py --cache=$XRD_CACHE --method=xrootd -d /user/dweitzel/public/blast/queries/query1 ./
92+
93+ result=` md5sum query1 | awk ' {print $1;}' `
94+
95+ if [ " $result " != " 12bdb9a96cd5e8ca469b727a81593201" ]; then
96+ exit 1
97+ fi
98+ rm -f query.test
99+
100+ # Perform methods test
101+ /StashCache/stashcp.py --cache=$XRD_CACHE --method=http,xrootd -d /user/dweitzel/public/blast/queries/query1 ./
102+
103+ result=` md5sum query1 | awk ' {print $1;}' `
104+
105+ if [ " $result " != " 12bdb9a96cd5e8ca469b727a81593201" ]; then
106+ exit 1
107+ fi
108+ rm -f query.test
109+
110+
78111
79- /StashCache/bin/ stashcp --cache=$XRD_CACHE -d -r /user/dweitzel/public/blast/queries ./
112+ /StashCache/stashcp.py --cache=$XRD_CACHE -d -r /user/dweitzel/public/blast/queries ./
80113ls -lah
81114
82115rm -rf queries
0 commit comments