refactor: move CI test scripts from src/scripts/test/ to build/test/

Test scripts are not installed — they are CI/dev tooling and belong
alongside build/gen-rules.sh. Update workflow references and fix the
SRC_DIR path depth in build/test/test-syntax.sh (../ -> ../..).
This commit is contained in:
Meliox 2026-08-08 23:37:09 +02:00
parent 71e95cc630
commit 4f5892071f
5 changed files with 8 additions and 8 deletions

View File

@ -32,13 +32,13 @@ jobs:
path: deb
- name: Fetch upstream Proxmox files
run: bash src/scripts/test/fetch-proxmox-files.sh
run: bash build/test/fetch-proxmox-files.sh
- name: Install built package
run: apt-get install -y ./deb/*.deb
- name: Test all mods
run: bash src/scripts/test/test-patches.sh all
run: bash build/test/test-patches.sh all
- name: Validate source syntax
run: bash src/scripts/test/test-syntax.sh all
run: bash build/test/test-syntax.sh all

View File

@ -70,7 +70,7 @@ jobs:
# ── Test ───────────────────────────────────────────────────────────────
- name: Fetch upstream Proxmox files
run: bash src/scripts/test/fetch-proxmox-files.sh
run: bash build/test/fetch-proxmox-files.sh
- name: Install built package
run: sudo apt-get install -y ../pve-mod_*.deb
@ -78,7 +78,7 @@ jobs:
- name: Test mod
run: |
set -o pipefail
sudo bash src/scripts/test/test-patches.sh "${{ matrix.mod }}" 2>&1 | tee test-output.log
sudo bash build/test/test-patches.sh "${{ matrix.mod }}" 2>&1 | tee test-output.log
- name: Report failure as issue
if: failure()

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
# src/scripts/test/test-patches.sh
# build/test/test-patches.sh
#
# Exercises pve-mod's patch engine against the installed Proxmox files.
#

View File

@ -1,5 +1,5 @@
#!/usr/bin/env bash
# src/scripts/test/test-syntax.sh
# build/test/test-syntax.sh
#
# Validates source syntax for all mod files without requiring a running system.
#
@ -16,7 +16,7 @@
set -u
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SRC_DIR="${PVE_MOD_SRC_DIR:-$(cd "$SCRIPT_DIR/../../.." && pwd)/src/modules}"
SRC_DIR="${PVE_MOD_SRC_DIR:-$(cd "$SCRIPT_DIR/../.." && pwd)/src/modules}"
info() { echo "[syntax] $*"; }
warn() { echo "[syntax] WARNING: $*" >&2; }