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:
parent
71e95cc630
commit
4f5892071f
6
.github/workflows/validate-mods.yml
vendored
6
.github/workflows/validate-mods.yml
vendored
@ -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
|
||||
|
||||
4
.github/workflows/weekly-patch-test.yml
vendored
4
.github/workflows/weekly-patch-test.yml
vendored
@ -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()
|
||||
|
||||
@ -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.
|
||||
#
|
||||
@ -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; }
|
||||
Loading…
Reference in New Issue
Block a user