Skip to content

Commit

Permalink
Several fixes for running ReFrame (#48)
Browse files Browse the repository at this point in the history
* Several fixes for running ReFrame

Signed-off-by: Theofilos Manitaras <[email protected]>

* Run using the cscs.py configuration

Signed-off-by: Theofilos Manitaras <[email protected]>

* Use the UENV variable for user environments

Signed-off-by: Theofilos Manitaras <[email protected]>

---------

Signed-off-by: Theofilos Manitaras <[email protected]>
  • Loading branch information
teojgo authored Sep 26, 2023
1 parent 7b00eaa commit e9e78cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions run-reframe
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ repo_path="alps-uenv/build/${build_id}/${system}/${name}"
artifact_path="$CI_PROJECT_DIR/artifacts"
squashfs_path="${artifact_path}/${name}.squashfs"
squashfs_url="${artifactory_url}/${repo_path}/store.squashfs"
rfm_meta_url="${artifactory_url}/${repo_path}/meta/recipe/extra/reframe.yaml"
rfm_meta_url="${artifactory_url}/${repo_path}/meta/extra/reframe.yaml"
log "Downloading squashfs image ${squashfs_url} to ${squashfs_path}"
curl --fail --retry 5 -o "${squashfs_path}" "${squashfs_url}"
[[ $? -eq 0 ]] || err "failed to download image"

log "Downloading ReFrame metadata ${rfm_meta_url} to ${artifact_path}/${name}.yaml"
curl --fail --retry 5 -o "${rfm_meta_url}" "${artifact_path}/${name}.yaml"
curl --fail --retry 5 -o "${artifact_path}/${name}.yaml" "${rfm_meta_url}"
[[ $? -eq 0 ]] || err "failed to download ReFrame metadata"

log "Using artifacts in $artifact_path"
Expand All @@ -76,10 +76,10 @@ pip install --upgrade reframe-hpc
rm -rf cscs-reframe-tests
git clone -b alps https://github.com/eth-cscs/cscs-reframe-tests.git

export UENV_FILE=${squashfs_path}
export RFM_AUTODETECT_XTHOSTNAME=1
export UENV="${squashfs_path}:/user-environment"
export RFM_AUTODETECT_METHODS="cat /etc/xthostname,hostname"

REFRAME_COMMAND="reframe -C cscs-reframe-tests/config/cscs-uenv.py --report-junit=report.xml -c cscs-reframe-tests/uenv_checks/ -r --system=${RFM_SYSTEM}"
REFRAME_COMMAND="reframe -C cscs-reframe-tests/config/cscs.py --report-junit=report.xml -c cscs-reframe-tests/checks/ -r --system=${RFM_SYSTEM}"

log "REFRAME_COMMAND ${REFRAME_COMMAND}"
${REFRAME_COMMAND}
Expand Down

0 comments on commit e9e78cb

Please sign in to comment.