#!/usr/bin/env bash # Checks an unpacked LYNX plugin download (scripts/package-plugins.sh) the way hosts will load it (round 188b, # docs/PLUGIN_EXPORT.md), on Windows (Git Bash), Linux or macOS: # plugexporttest the CLAP, each VST3 and each LV2 (Linux, round 190ov): scan, null test against the engine, automation, state, editor, memory, CPU # pluginval each VST3, strictness 10, no GUI tests (no screen on CI) # clap-validator the CLAP # lv2lint each LV2, when $LV2LINT names it (round 190pk; LV2_PATH must hold the LV2 specification bundles) # Every report goes to ; with [pictures], plugexporttest also draws each editor there (PNG). # Exit 0 = everything passed. A failed tool doesn't stop the others: the summary lists every result. # # scripts/check-plugins.sh [pictures] set -uo pipefail pkg="$1" tester="$2" pluginval="$3" validator="$4" reports="$5" pictures="${6:-}" mkdir -p "$reports" export LYNX_PROFILE_DIR="${LYNX_PROFILE_DIR:-$reports/profile}" export LYNX_TEST_MODE=1 # (Windows tools want Windows paths) native() { local p p="$(cd "$(dirname "$1")" && pwd)/$(basename "$1")" if command -v cygpath > /dev/null; then cygpath -w "$p"; else echo "$p"; fi } results=() run() { #