Registry obi on forge.metabarcoding.org, KIT_LANG=en, CeCILL-2.1. Skeleton generated by crate-kit adopt-kit.sh, plus docs/pilot-risks.md (Gitea risks to test on a throwaway crate before any publication).
14 lines
722 B
Bash
Executable File
14 lines
722 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Basic test of the extension kit: the overlay assembles with crate-kit and sets a registry.
|
|
set -euo pipefail
|
|
root="$(cd "$(dirname "$0")/.." && pwd)"
|
|
tmp=$(mktemp -d "${TMPDIR:-/tmp}/obi-kit-test.XXXXXX")
|
|
[ -n "$tmp" ] && [ -d "$tmp" ] || { echo "✗ temporary directory not created" >&2; exit 1; }
|
|
trap 'rm -r -- "$tmp"' EXIT
|
|
"$root/tools/kit-assemble.sh" "$tmp/kit"
|
|
[ -f "$tmp/kit/org.mk" ] || { echo "✗ org.mk missing from the assembled kit" >&2; exit 1; }
|
|
printf 'include %s/kit/org.mk\nprint:\n\t@echo $(REGISTRY)\n' "$tmp" >"$tmp/probe.mk"
|
|
reg=$(make -s -f "$tmp/probe.mk" print)
|
|
[ -n "$reg" ] || { echo "✗ REGISTRY empty in org.mk" >&2; exit 1; }
|
|
echo "✓ obi-kit overlay: registry $reg"
|