Skip to content

Commit

Permalink
Updated test script and refactored outputs as a single file
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeGat committed May 14, 2024
1 parent 353f35f commit 7f48cd6
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 39 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# Files generated during generate-build-metadata tests
tests/scripts/generate-build-metadata/cice5.json
tests/scripts/generate-build-metadata/mom5.json
tests/scripts/generate-build-metadata/outputs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ if [[ $(basename "$PWD") != "generate-build-metadata" ]]; then
exit 1
fi

./../../../scripts/generate-build-metadata.bash http://example.org/releases 2024-03-27T05:29:36Z . . access-om2 mom5 cice5
./../../../scripts/generate-build-metadata.bash http://example.org/releases 2024-03-27T05:29:36Z ./inputs ./outputs access-om2 mom5 cice5

cmp ./cice5.json ./valid/cice5.json
cmp ./mom5.json ./valid/mom5.json
cmp ./outputs/build_metadata.json ./valid/build_metadata.json
24 changes: 24 additions & 0 deletions tests/scripts/generate-build-metadata/valid/build_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"model_build": {
"spack_hash": "ucmkt2gy72vvikhstgvoft65wnskr7rd",
"spec": "[email protected]=2024.03.0",
"created_at": "2024-03-27T05:29:36Z",
"release_url": "http://example.org/releases",
"spack_version": {
"version": "0.20.3",
"commit": "6812713cf470b473a607f0de0e8e1cf53f804fb7"
}
},
"component_build": [
{
"spack_hash": "qji4nlmr6utrribaiyhewe4je6mifguz",
"spec": "[email protected]=2023.11.09",
"install_path": "/g/data/vk83/apps/spack/0.20/release/linux-rocky8-x86_64/intel-19.0.5.281/mom5-git.2023.11.09=2023.11.09-qji4nlmr6utrribaiyhewe4je6mifguz"
},
{
"spack_hash": "v3zncpqjj2gyseudbwiudolcjq3k3leo",
"spec": "[email protected]=2023.10.19",
"install_path": "/g/data/vk83/apps/spack/0.20/release/linux-rocky8-x86_64/intel-19.0.5.281/cice5-git.2023.10.19=2023.10.19-v3zncpqjj2gyseudbwiudolcjq3k3leo"
}
]
}
17 changes: 0 additions & 17 deletions tests/scripts/generate-build-metadata/valid/cice5.json

This file was deleted.

17 changes: 0 additions & 17 deletions tests/scripts/generate-build-metadata/valid/mom5.json

This file was deleted.

0 comments on commit 7f48cd6

Please sign in to comment.