Skip to content

Commit f416fe9

Browse files
committed
Fix tests for new stashcp location
1 parent 9bf48b4 commit f416fe9

2 files changed

Lines changed: 12 additions & 11 deletions

File tree

bin/stashcp2/tests/setup_tests.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@ if [ "${BUILD_TYPE}" = "http" ]; then
1010
# Run the test without a container
1111
# Copy in the .job.ad file:
1212
cp bin/stashcp2/tests/job.ad ./.job.ad
13+
python setup.py install
1314

1415
# Test against a file that is known to not exist
1516
set +e
16-
bin/stashcp --cache=$XRD_CACHE /blah/does/not/exist ./
17+
stashcp --cache=$XRD_CACHE /blah/does/not/exist ./
1718
if [ $? -eq 0 ]; then
1819
echo "Failed to exit with non-zero exit status when it should have"
1920
exit 1
2021
fi
2122
set -e
2223

2324
# Try copying with different destintion filename
24-
bin/stashcp --cache=$XRD_CACHE -d /user/dweitzel/public/blast/queries/query1 query.test
25+
stashcp --cache=$XRD_CACHE -d /user/dweitzel/public/blast/queries/query1 query.test
2526

2627
result=`md5sum query.test | awk '{print $1;}'`
2728

@@ -32,7 +33,7 @@ if [ "${BUILD_TYPE}" = "http" ]; then
3233
rm -f query.test
3334

3435
# Perform tests
35-
bin/stashcp --cache=$XRD_CACHE -d /user/dweitzel/public/blast/queries/query1 ./
36+
stashcp --cache=$XRD_CACHE -d /user/dweitzel/public/blast/queries/query1 ./
3637

3738
result=`md5sum query1 | awk '{print $1;}'`
3839

bin/stashcp2/tests/test_inside_docker.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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
4444
set +e
45-
/StashCache/bin/stashcp --cache=$XRD_CACHE /blah/does/not/exist ./
45+
/StashCache/stashcp.py --cache=$XRD_CACHE /blah/does/not/exist ./
4646
if [ $? -eq 0 ]; then
4747
echo "Failed to exit with non-zero exit status when it should have"
4848
exit 1
4949
fi
5050
set -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

5555
result=`md5sum query1 | awk '{print $1;}'`
5656

5757
rm 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

6262
result=`md5sum query.test | awk '{print $1;}'`
6363

@@ -68,7 +68,7 @@ fi
6868
rm -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

7373
result=`md5sum query1 | awk '{print $1;}'`
7474

@@ -78,7 +78,7 @@ fi
7878
rm -f query.test
7979

8080
# Perform methods test
81-
/StashCache/bin/stashcp --cache=$XRD_CACHE --method=cvmfs,xrootd -d /user/dweitzel/public/blast/queries/query1 ./
81+
/StashCache/stashcp.py --cache=$XRD_CACHE --method=cvmfs,xrootd -d /user/dweitzel/public/blast/queries/query1 ./
8282

8383
result=`md5sum query1 | awk '{print $1;}'`
8484

@@ -88,7 +88,7 @@ fi
8888
rm -f query.test
8989

9090
# Perform methods test
91-
/StashCache/bin/stashcp --cache=$XRD_CACHE --method=xrootd -d /user/dweitzel/public/blast/queries/query1 ./
91+
/StashCache/stashcp.py --cache=$XRD_CACHE --method=xrootd -d /user/dweitzel/public/blast/queries/query1 ./
9292

9393
result=`md5sum query1 | awk '{print $1;}'`
9494

@@ -98,7 +98,7 @@ fi
9898
rm -f query.test
9999

100100
# Perform methods test
101-
/StashCache/bin/stashcp --cache=$XRD_CACHE --method=http,xrootd -d /user/dweitzel/public/blast/queries/query1 ./
101+
/StashCache/stashcp.py --cache=$XRD_CACHE --method=http,xrootd -d /user/dweitzel/public/blast/queries/query1 ./
102102

103103
result=`md5sum query1 | awk '{print $1;}'`
104104

@@ -109,7 +109,7 @@ rm -f query.test
109109

110110

111111

112-
/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 ./
113113
ls -lah
114114

115115
rm -rf queries

0 commit comments

Comments
 (0)