mirror of
https://github.com/openglow-org/forgefirm.git
synced 2026-09-28 01:01:12 -07:00
The release rootfs carried python3-modules (tkinter, idle, 2to3, pydoc, ensurepip, venv, asyncio, multiprocessing, xmlrpc) through the python3 meta-package, and libgnutls30, nettle, libgmp10, libunistring5 and libtasn1 through libmicrohttpd (https) and ulfius (GnuTLS). Nothing on the image uses either. Each Python recipe declares the module packages it imports; forgetest declares its own, so the dev image carries no module the release image lacks. Pins: forgectrl 0e907f7db54b7a4c90b660f198d49e5c66b667b5 (armed shown from a fresh report only, zero smoke phase for a dark session), grblhal-glowforge fa9ed7834faab6f48367dc1ca5a5109b474f788d (rail enable only standalone). BRINGUP: the lid IR lamp response measured over the full range; no camera register file under /data; the rail policy and the cool status items closed; laser.armed-kill stays in its domain; the debug-kernel drill constraints. Platform change (layer content): the full campaign is owed on the built image.
74 lines
2.9 KiB
BlitzBasic
74 lines
2.9 KiB
BlitzBasic
SUMMARY = "ForgeFIRM release acceptance tool (dev image)"
|
|
DESCRIPTION = "Runs the release acceptance catalog against the machine from a \
|
|
self-contained web page (HTTP :8090), keeps the append-only result log under \
|
|
/data/forgetest, exports the release artifact the release gate reads, and \
|
|
carries the bench diagnostics page. Installed only on the dev image."
|
|
HOMEPAGE = "https://github.com/ScottW514/forgefirm"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
|
|
|
# The tool's canonical home is forgetest/ in this repo; the bench scripts
|
|
# it drives live in scripts/bench/. Both are packaged from the same tree
|
|
# that builds the images, so the catalog and the gate agree by construction.
|
|
FILESEXTRAPATHS:prepend := "${THISDIR}/../../../:"
|
|
|
|
SRC_URI = " \
|
|
file://forgetest/ \
|
|
file://scripts/bench/ \
|
|
"
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
inherit python3-dir update-rc.d forgefirm-manifest
|
|
|
|
# Non-git sources: fingerprint the package directory (dev-only component;
|
|
# it identifies the campaign, never a test fingerprint).
|
|
FORGEFIRM_MANIFEST_SRC = "${WORKDIR}/forgetest/forgetest"
|
|
|
|
# The standard-library packages the tool imports (the page server, the
|
|
# catalog, the bench scripts), not the python3 meta-package: the dev image
|
|
# must carry no module the release image lacks, or a missing module in
|
|
# the release rootfs would pass the campaign unseen.
|
|
RDEPENDS:${PN} = " \
|
|
python3-core \
|
|
python3-compression \
|
|
python3-crypt \
|
|
python3-fcntl \
|
|
python3-io \
|
|
python3-json \
|
|
python3-logging \
|
|
python3-math \
|
|
python3-netclient \
|
|
python3-netserver \
|
|
python3-shell \
|
|
python3-statistics \
|
|
forgectrl \
|
|
"
|
|
|
|
INITSCRIPT_NAME = "forgetest"
|
|
INITSCRIPT_PARAMS = "start 95 2 3 4 5 . stop 70 0 1 6 ."
|
|
|
|
do_install() {
|
|
# the package (sources only; python compiles on first import)
|
|
for f in $(cd ${WORKDIR}/forgetest/forgetest && find . -name '*.py' -type f); do
|
|
install -Dm 0644 ${WORKDIR}/forgetest/forgetest/$f \
|
|
${D}${PYTHON_SITEPACKAGES_DIR}/forgetest/$f
|
|
done
|
|
# the page's sources (ui/), gzipped: page.py inflates them once at
|
|
# first request, and bytes here are bytes on the ext4 rootfs
|
|
for f in $(cd ${WORKDIR}/forgetest/forgetest/ui && find . -type f); do
|
|
install -d ${D}${PYTHON_SITEPACKAGES_DIR}/forgetest/ui/$(dirname $f)
|
|
gzip -9 -n -c ${WORKDIR}/forgetest/forgetest/ui/$f \
|
|
> ${D}${PYTHON_SITEPACKAGES_DIR}/forgetest/ui/$f.gz
|
|
chmod 0644 ${D}${PYTHON_SITEPACKAGES_DIR}/forgetest/ui/$f.gz
|
|
done
|
|
# the bench scripts the #bench tab drives
|
|
install -d ${D}${datadir}/forgetest/bench
|
|
for f in ${WORKDIR}/scripts/bench/*.py; do
|
|
install -m 0755 $f ${D}${datadir}/forgetest/bench/
|
|
done
|
|
install -Dm 0755 ${WORKDIR}/forgetest/forgetest.init ${D}${sysconfdir}/init.d/forgetest
|
|
}
|
|
|
|
FILES:${PN} += "${PYTHON_SITEPACKAGES_DIR}/forgetest ${datadir}/forgetest"
|