Files
craftbox/src/sync_resources/test.sh
CI e7f74d0239 Build branch publish with version publish (e6f7cf2)
Build pipeline: viash-hub.craftbox.publish-fz2zz

Source commit: e6f7cf2cfc

Source message: update changelog
2025-05-02 09:09:08 +00:00

23 lines
446 B
Bash

#!/bin/bash
## VIASH START
## VIASH END
cat > _viash.yaml << EOM
info:
test_resources:
- type: s3
path: s3://openproblems-data/resources_test/common/pancreas
dest: foo
EOM
echo ">> Run aws s3 sync"
"$meta_executable" \
--input _viash.yaml \
--output . \
--quiet
echo ">> Check whether the right files were copied"
[ ! -f foo/dataset.h5ad ] && echo test file should have been copied && exit 1
echo ">> Test succeeded!"