feat: initial obi extension kit of crate-kit
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).
This commit is contained in:
commit
efb963f471
12 files changed
+775
No files matched your search
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/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"
|
||||
Reference in new issue
Block a user