Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge nci modules #276

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 12 additions & 1 deletion nci_environment/test-module.sh
Expand Up @@ -2,6 +2,10 @@


# Module to test
if [[-z $1 ]]; then
echo "ERROR: no module provided"
exit 1
fi
module_to_test="$1"

echo Testing module: "$module_to_test"
Expand All @@ -10,7 +14,7 @@ echo Testing module: "$module_to_test"
export MODULEPATH=/apps/.mf:/opt/Modules/modulefiles:/apps/Modules/modulefiles:

# Ensure that all files are world readable
if [[ $(find "$module_to_test" ! -perm /004) ]]; then
if [[ $(find /g/data/v10/public/modules/modulefiles/"$module_to_test" ! -perm /004) ]]; then
echo "ERROR: Some files in $module_to_test are not world readable."
exit 1
fi
Expand All @@ -26,6 +30,13 @@ module load "$module_to_test"
# TODO Check the output from:
datacube system check

echo Testing notebooks
cd ../..
export DEA_TOOLS_TIDE_MODELS=/g/data/v10/tide_models
if [[ ! -d dea-notebooks ]]; then
git clone --depth 1 https://github.com/GeoscienceAustralia/dea-notebooks.git
fi
./dea-notebooks/Tests/test_notebooks.sh

# Run the initialise Test Database Script

Expand Down