summaryrefslogtreecommitdiff
path: root/Makefile
AgeCommit message (Collapse)Author
9 daysTestsuite: T861: boot VyOS CA signed images as-is in Secure Boot testChristian Breunig
The Secure Boot test always disabled Secure Boot in the UEFI and enrolled a Machine Owner Key. That only applies to images signed with a custom certificate - an image signed by the VyOS CA is already trusted and must boot without any firmware changes. If the custom signing key pair is present in the build tree, the MOK workflow is used as before. Otherwise the image boots with Secure Boot enabled from the start, and the Kernel signature is verified against the VyOS CA issuer and signer via "show secure-boot detail", which requires a matching vyos-1x. The make target is renamed from testsb to test-secure-boot.
2026-09-07T9269: add OCI container image testChristian Breunig
Add scripts/check-oci-container, a container adapted counterpart to check-qemu-install. It imports the OCI tarball produced by scripts/iso-to-oci, verifies the containerlab healthcheck survives the import, boots the image with systemd as PID 1 and then drives the VyOS CLI to run basic operational and configuration mode tests plus assertions on the rootfs modifications done by iso-to-oci (locale, banner, /config symlink, removed podman runtime and removed container CLI nodes). Wire it up as "make test-oci", which picks up the newest tarball matching the host architecture. The boot wait polls for the vyos user in addition to vyos-router, as the unit reports itself active before the default configuration has been committed.
2026-09-01Makefile: T9269: extend "make test-suite" to cover more testsChristian Breunig
2026-09-01oci: T9269: compress container image with XZChristian Breunig
Can be compresed with up to 75% ratio.
2026-08-17Makefile: T9014: add test-suite target to run core testcases sequentiallyChristian Breunig
Add test-suite, which runs test-interfaces, test-no-interfaces-no-vpp, testc, testraid, and testifname as separate $(MAKE) invocations so it aborts on the first failing testcase instead of running all of them regardless of earlier failures.
2026-08-17Makefile: T9014: unify test target CPU count and memory sizeChristian Breunig
Test targets had inconsistent --cpu (2/4) and --memory (7/8) values hardcoded inline. Standardize on TEST_CPUS and TEST_MEM variables: TEST_CPUS is min(nproc, 4) so hosts with fewer than 4 CPUs don't request more vCPUs than exist; TEST_MEM is 8GB when the host has at least 10GB of RAM, otherwise 4GB.
2026-08-17Makefile: T9014: pass --uefi to check-qemu-install only on arm64 hostsChristian Breunig
check-qemu-install now requires --uefi on arm64/aarch64. Add a UEFI_FLAG variable derived from ARCH so test targets that didn't already hardcode --uefi pick it up on arm64 while staying unchanged on amd64.
2026-08-06Testsuite: T3871: add testifname Makefile targetChristian Breunig
Testcase removes NIC definition entirely and on a second NIC drops only the hw-id node. Testcase is there to verify proper ordering which simulates a NIC replacement.
2026-07-17Makefile: T9099: stop catch-all rule from eating forwarded test argumentsChristian Breunig
Test targets forward extra CLI arguments to their scripts via $(filter-out $@,$(MAKECMDGOALS)) (e.g. make test -- --match interfaces_bond) Those extra words are also goals as far as make is concerned, so after the test recipe succeeded, make went on to "build" --match and interfaces_bond too, falling through to the generic `%:` flavor rule and running build-vyos-image --match which errored and masked the fact that the smoketest itself had already passed. Declare the trailing goals as phony no-ops when the primary target is one of the test targets, so they no longer reach the `%:` rule. The existing MATCH=<value> form is unaffected.
2026-06-02Testsuite: T8602: add QEMU smoketest for add-system-image over HTTP (default ↵Christian Breunig
+ VRF) Extend check-qemu-install with --test-image-update: build a nested installer ISO as a second CD-ROM, serve the inner image over HTTP, and exercise add/delete system image in the default routing context and in a named VRF. Add make test-image-update and ignore/clean nested_installer_payload.iso artefacts.
2026-06-02Makefile: T8602: move validation if ISO exists into individual scriptsChristian Breunig
Sometimes I do call scripts/check-qemu-install directly without the Makefile wrapper, thus it should be ensured that the ISO image exists also from within the test-case launcher, too.
2026-06-02Makefile: T8602: configtests always require vyos-configdChristian Breunig
There is no need in keeping the old --configd option when starting the smoketests. VyOS heavily relies on vyos-configd and derivates, so there is no need anymore to disable it for our smoketests.
2026-06-01Revert "T8542: Add functionality to generate SBOM file from ISO image"Christian Breunig
This reverts commit bdd7024da3a71854c6ce15c312581900e9b817c8.
2026-06-01Revert "T8542: Add functionality to generate SBOM file from ISO image"Christian Breunig
This reverts commit 4ef1924d9a5328aaab11a4e409c8116f99cbc140.
2026-05-08Merge branch 'current' into T8542-SBOM-currentAndrii Klymenko
2026-04-23T8542: Add functionality to generate SBOM file from ISO imageAndrii Klymenko
Apply quoting to the passed variable. Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-21T8542: Add functionality to generate SBOM file from ISO imageAndrii Klymenko
Add make_sbom target to Makefile.
2026-04-20Makefile: T8375: improve syntax for artifact detectionChristian Breunig
2026-04-14T8460: Add CPU isolation option to QEMU install checks for VPP-related testsNataliia Solomko
2026-02-23Merge pull request #1122 from c-po/qemu-arm64Viacheslav Hletenko
Makefile: T8294: autodetect CPU architecture for smoketests
2026-02-21Makefile: T8294: autodetect CPU architecture for smoketestsChristian Breunig
We currently have hardcoded values for amd64 in our Makefile. When calling the smoketests helpers like: * make testc * make qemu-live * make test-interfaces All expect an amd64 ISO file - if building and arm64 ISO image on an arm64 system, all those helpers do not work as it is hardcoded to amd64.
2026-02-13T8267: Extend the vyos-build repo to include Ansible install phonyViacheslav Hletenko
Extend the vyos-build repo to include Ansible install PHONY Add the ability to install Ansible and VyOS compatible modules. It could be used for the further "topology tests". It also could be helpful with environment questions where a bug was reproduced. Use virtual environment to install Ansible + VyOS modules New options: - make ansible-install - make ansible-check - make ansible-clean
2026-01-14T8065: Dehardcode qemu settings to allow run tests on arch arm64Viacheslav Hletenko
2025-12-31Makefile: T8111: add missing --iso argument for testraid, testsb and testtpmChristian Breunig
Commit 6fa36ec9 ("Testsuite: T8111: make --iso and --disk optional arguments") made the "--iso" option optional, but it was missed in the testraid, testsb and testtpm testcase calls.
2025-12-25Testsuite: T8111: add --cloud-init test targetChristian Breunig
Add support to dynamically assemble cloud-init NoCloud ISO image and attach it to an existing qcow2 image file. The config data injected via NoCloud is later validated if it has been properly configured on the OS level.
2025-12-21Testsuite: T8111: make --iso and --disk optional argumentsChristian Breunig
It is now possible to pass in an already existing qcow2 disk image to the Testsuite. This is necessary if we would like to boot wxisting flavor images like KVM or PROXMOX.
2025-07-17T7636: Fix Makefile target for test-no-interfacesMichael Pardatscher
The target is calling tests for VPP, which require huge page support, thus always making the target fail.
2025-07-03T7609: Increase huge-page-count to 1800 for VPP testsViacheslav
2025-07-03T7606: Exclucde VPP config-load test from the phony testcViacheslav
We have a separate PHONY for VPP tests
2025-07-02T7609: Smoketest add huge-page-size and huge-page-count argumentsViacheslav
2025-07-02T7606: Split VPP test for smoketestViacheslav
Exclude VPP tests from the general tests Add the PHONY no-interfaces-no-vpp Add the PHONE testcvpp (load VPP config only)
2025-03-18T861: "make purge" should also remove efivars fileChristian Breunig
2025-02-25T7197: Decrease config smoketest to 2 CPUs and 7G RAMViacheslav Hletenko
Decrease system resources for configload tests
2025-02-21T7184: Fix makefile target testMichael Pardatscher
Add `--cpu` and `--memory` args to target `test`, fixing smoketest runs due to VPP requiring additional resources
2025-02-05T7066: Increase cpu number for smoketestsNataliia Solomko
2025-01-30T7110: Increase memory to 8G for the smoketestsViacheslav Hletenko
Some smoketests requires more memory to pass all tests For example VPP tests
2025-01-14T7043: increase smoketest memory to 8G for vppViacheslav Hletenko
2024-12-20T6964: Add PHONY to make VPP smoketestsViacheslav Hletenko
Add PHONY to make smoketests for VPP. sudo make test-vpp
2024-10-06Testsuite: T6494: add new make target "test-interfaces"Christian Breunig
We can not run the interface related tests, and non interface related testcases in parallel to speedup the entire build process.
2024-09-14T861: add UEFI Secure Boot supportChristian Breunig
This adds support for UEFI Secure Boot. It adds the missing pieces to the Linux Kernel and enforces module signing. This results in an additional security layer where untrusted (unsigned) Kernel modules can no longer be loaded into the live system. NOTE: This commit will not work unless signing keys are present. Arbitrary keys can be generated using instructions found in: data/live-build-config/includes.chroot/var/lib/shim-signed/mok/README.md
2024-09-07Testsuite: T861: add explicit --smoketest argumentChristian Breunig
In the past the CLI based smoketest was always executed under an else branch in the testcase if-statement. Instead of using negative logic move all testcases to positive logic adding an empty "catch all" else path.
2024-09-07Testsuite: T861: add support to use VNC for a graphics consoleChristian Breunig
To use VNC you could run "make test -- --vnc"
2024-09-05Makefile: T2640: fix PHONY typoChristian Breunig
Fix typo added in commit 499e8e1cbb ("Makefile: T2640: add helper to convert ISO to OCI image to start a co…ntainer") should be PHONY over PHONE
2024-09-05Makefile: T861: add possibility to pass CLI options to check-qemu-installChristian Breunig
We can now pass any arbitrary option to the check-qemu-install script by calling: make test -- --bar-option or make testc -- --foo-option please note the -- which is not a typo but rather signals the end of options and disables further option processing and passes the options down to the next script.
2024-06-30smoketest: T6510: use vyos-configd also on "make test"Christian Breunig
2024-05-28build: T6414: rename the "iso" flavor to "generic"Daniil Baturin
2024-05-06build: T3664: modify the module-level template pathDaniil Baturin
instead of setting an environment variable
2024-04-22build: T3664: adjust the vyos-1x submodule path in scriptsDaniil Baturin
2024-04-16build: T3664: move sudo out of the make targetDaniil Baturin
to avoid permission problems
2024-04-15build: T3664: correct the parameterized make ruleDaniil Baturin