# Run Smoke Tests Use the smoke targets to verify each layer independently. ## Userland Rootfs Smoke ```bash ct run smoke ``` The equivalent command surface is: ```bash den smoke rootfs ``` On a native Linux AArch64 runner with a chroot-capable rootfs, use: ```bash den smoke rootfs --runner chroot ``` This verifies that the conda runtime, system generation, rootfs layout manifests, systemd binaries, generation metadata, and stage1 dry-run path are present. It also checks `den status`, `den doctor`, `den generations current`, `den update --dry-run`, channel/seed/SSH/boot status helpers, prune planning, and `conda den --help`. ## Stage1 Boot Smoke ```bash ct run boot-smoke ``` This boots the Buildroot kernel and initramfs, mounts the Den ext4 rootfs, switches into Den stage1, runs a bash smoke through the conda generation, and powers off. ## systemd Boot Smoke ```bash ct run boot-systemd-smoke ``` This boots through stage1 into packaged systemd, reaches `multi-user.target`, runs `den-systemd-smoke.service`, and powers off. ## Generation Smoke ```bash ct run generation-smoke ``` The equivalent command surface is: ```bash den smoke generation ``` This uses `den update --archive` to create generation 2 in the staged rootfs, records and validates the new generation, activates generation 2, compares generations 1 and 2, prints a prune plan, then rolls back to generation 1. The target mounts `/var/cache/den/pkgs` on a Docker volume so conda package verification runs against a Linux filesystem even when the repository lives on macOS. ## Bundle Smoke ```bash ct run image-bundle-smoke ``` The equivalent native command surface is: ```bash den smoke qemu-bundle --runner native ``` This builds `den-qemu-aarch64.tar.zst`, extracts it, verifies checksums, boots only from the extracted files, runs the systemd smoke unit, and powers off. ## OCI Smoke ```bash ct run oci-smoke ``` This builds `den:dev`, starts it with Docker/OrbStack, and checks the rootfs metadata, active generation, `den`, `conda den`, and conda-provided bash. ## UEFI Disk Smoke ```bash ct run uefi-image-smoke ``` The equivalent native command surface is: ```bash den smoke uefi --runner native ``` This builds `den-uefi-aarch64.raw` and `.qcow2`, creates a smoke copy, boots that copy with AArch64 UEFI firmware in QEMU, runs the systemd smoke unit, and powers off. ## Recommended Order For local development, use: ```bash ct run smoke ct run generation-smoke ct run image-bundle-smoke ct run oci-smoke ct run uefi-image-smoke ``` The image smokes rebuild the lower layers they need. Running the smaller smokes first makes failures easier to localize.