Skip to content

Commit 5d722e3

Browse files
committed
Test updates for zstash rc5
1 parent e7a1e22 commit 5d722e3

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

tests/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ mkdir zstash_demo; echo 'file0 stuff' > zstash_demo/file0.txt
7777
zstash create --hpss=globus://6bdc7956-fc0f-4ad2-989c-7aa5ee643a79//global/homes/f/forsyth/zstash/tests/test_database_corruption_setup23 zstash_demo
7878
# You'll have to paste an auth code here, but NOT during the database_corruption test.
7979
rm -rf zstash_demo/
80-
# Then, increment `try_num` below to avoid using an old directory.
80+
# Then, set a unique_id below to avoid using an old directory.
8181
# Alternatively, start fresh by deleting the directory on Perlmutter:
82-
# `rm -rf /global/homes/f/forsyth/zstash/tests/test_database_corruption_try{try_num}`
83-
time ./database_corruption.bash try_num # NOTE: you will have to change out paths for your username
82+
# `rm -rf /global/homes/f/forsyth/zstash/tests/test_database_corruption_{unique_id}`
83+
time ./database_corruption.bash unique_id # NOTE: you will have to change out paths for your username
8484
# Success count: 25
8585
# Fail count: 0
8686
# real 6m43.994s

tests/integration/bash_tests/run_from_any/globus_auth.bash

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -298,18 +298,18 @@ test_different_endpoint3()
298298
# pic#compy-dtn will only transfer to/from /compyfs/...
299299

300300
# Command line parameters:
301-
try_num="$1"
301+
unique_id="$1"
302302
src_machine="$2" # chrysalis, perlmutter, compy
303303
path_to_repo="$3" # /home/ac.forsyth2/ez/zstash, /global/homes/f/forsyth/ez/zstash, /qfs/people/fors729/ez/zstash
304304
chrysalis_dst_basedir="$4" # /home/ac.forsyth2/zstash_tests
305305
perlmutter_dst_basedir="$5" # /global/homes/f/forsyth/zstash_tests
306306
hpss_dst_basedir="$6" # /home/f/forsyth/zstash_tests
307307
compy_dst_basedir="$7" # /compyfs/fors729/zstash_tests (/qfs/people/fors729/ => permission denied)
308308

309-
chrysalis_dst_dir=${chrysalis_dst_basedir}/test_globus_auth_try${try_num}
310-
perlmutter_dst_dir=${perlmutter_dst_basedir}/test_globus_auth_try${try_num}
311-
hpss_dst_dir=${hpss_dst_basedir}/test_globus_auth_try${try_num}
312-
compy_dst_dir=${compy_dst_basedir}/test_globus_auth_try${try_num}
309+
chrysalis_dst_dir=${chrysalis_dst_basedir}/test_globus_auth_${unique_id}
310+
perlmutter_dst_dir=${perlmutter_dst_basedir}/test_globus_auth_${unique_id}
311+
hpss_dst_dir=${hpss_dst_basedir}/test_globus_auth_${unique_id}
312+
compy_dst_dir=${compy_dst_basedir}/test_globus_auth_${unique_id}
313313

314314
# Determine which endpoints to use for the endpoint-switching tests
315315
# switch1 should never be the last-tested endpoint (i.e., compy)
@@ -346,9 +346,9 @@ echo "Compy: rm -rf ${compy_dst_basedir}/test_globus_auth*"
346346
echo "This won't work on HPSS, because -rf flags are unsupported:"
347347
echo "NERSC HPSS: rm -rf ${hpss_dst_basedir}/test_globus_auth*"
348348
echo ""
349-
echo "It is therefore advisable to just increment a 'try number' to avoid directory conflicts."
350-
echo "Currently, try_num=${try_num}"
351-
if ! confirm "Is the try_num correct?"; then
349+
echo "It is therefore advisable to just set a unique_id to avoid directory conflicts."
350+
echo "Currently, unique_id=${unique_id}"
351+
if ! confirm "Is the unique_id correct?"; then
352352
exit 1
353353
fi
354354

@@ -362,8 +362,10 @@ echo "Primary tests: single authentication code tests for each endpoint"
362362
echo "If a test hangs, check if https://app.globus.org/activity reports any errors on your transfers."
363363
echo "Testing transfer to LCRC Improv DTN ####################################"
364364
test_single_auth_code ${path_to_repo} LCRC_IMPROV_DTN_ENDPOINT ${chrysalis_dst_dir}
365-
echo "Testing transfer to NERSC Perlmutter ###################################"
366-
test_single_auth_code ${path_to_repo} NERSC_PERLMUTTER_ENDPOINT ${perlmutter_dst_dir}
365+
if [ "$src_machine" != "perlmutter" ]; then
366+
echo "Testing transfer to NERSC Perlmutter ###################################"
367+
test_single_auth_code ${path_to_repo} NERSC_PERLMUTTER_ENDPOINT ${perlmutter_dst_dir}
368+
fi
367369
echo "Testing transfer to NERSC HPSS #########################################"
368370
test_single_auth_code ${path_to_repo} NERSC_HPSS_ENDPOINT ${hpss_dst_dir}
369371
echo "Testing transfer to pic#compy-dtn ######################################"

tests/integration/bash_tests/run_from_chrysalis/database_corruption.bash

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ setup()
2020
run_test_cases()
2121
{
2222

23-
local try_num=$1
23+
local unique_id=$1
2424

2525
SRC_DIR=/lcrc/group/e3sm/ac.forsyth2/zstash_testing/test_database_corruption # Chrysalis
26-
DST_DIR=globus://6bdc7956-fc0f-4ad2-989c-7aa5ee643a79/global/homes/f/forsyth/zstash/tests/test_database_corruption_try${try_num} # Perlmutter
27-
# To start fresh with try_num=1, delete the above directory on Perlmutter before running. Example:
28-
# rm -rf /global/homes/f/forsyth/zstash/tests/test_database_corruption_try1
26+
DST_DIR=globus://6bdc7956-fc0f-4ad2-989c-7aa5ee643a79/global/homes/f/forsyth/zstash/tests/test_database_corruption_${unique_id} # Perlmutter
27+
# To start fresh, delete the directories on Perlmutter before running. Example:
28+
# rm -rf /global/homes/f/forsyth/zstash/tests/test_database_corruption_<unique_id>
2929

3030
success_count=0
3131
fail_count=0

0 commit comments

Comments
 (0)