89 Commits

Author SHA1 Message Date
Michael Pardatscher
29e0afb376
T7636: Fix Makefile target for test-no-interfaces
The target is calling tests for VPP, which require huge page support, thus always making the target fail.
2025-07-17 11:32:04 +02:00
Viacheslav
f2ac2fbcd6 T7609: Increase huge-page-count to 1800 for VPP tests 2025-07-03 08:13:48 +00:00
Viacheslav
3d0e999c80 T7606: Exclucde VPP config-load test from the phony testc
We have a separate PHONY for VPP tests
2025-07-03 06:06:58 +00:00
Viacheslav
a245f81e06 T7609: Smoketest add huge-page-size and huge-page-count arguments 2025-07-02 16:47:02 +00:00
Viacheslav
1aceb0371c T7606: Split VPP test for smoketest
Exclude VPP tests from the general tests
Add the PHONY no-interfaces-no-vpp
Add the PHONE testcvpp (load VPP config only)
2025-07-02 10:54:59 +00:00
Christian Breunig
96f1844557 T861: "make purge" should also remove efivars file 2025-03-18 16:24:45 +01:00
Viacheslav Hletenko
93c5b23cf2 T7197: Decrease config smoketest to 2 CPUs and 7G RAM
Decrease system resources for configload tests
2025-02-25 16:46:53 +00:00
Michael Pardatscher
e3eb56dd40
T7184: Fix makefile target test
Add `--cpu` and `--memory` args to target `test`, fixing smoketest runs due to VPP requiring additional resources
2025-02-21 14:51:33 +01:00
Nataliia Solomko
d30b135392 T7066: Increase cpu number for smoketests 2025-02-05 08:49:31 +02:00
Viacheslav Hletenko
a05fc3396b T7110: Increase memory to 8G for the smoketests
Some smoketests requires more memory to pass all tests
For example VPP tests
2025-01-30 17:27:04 +00:00
Viacheslav Hletenko
c691f4b390 T7043: increase smoketest memory to 8G for vpp 2025-01-14 11:51:13 +00:00
Viacheslav Hletenko
a66b32eff5 T6964: Add PHONY to make VPP smoketests
Add PHONY to make smoketests for VPP.

sudo make test-vpp
2024-12-20 14:54:59 +00:00
Christian Breunig
57d5afe0ff Testsuite: T6494: add new make target "test-interfaces"
We can not run the interface related tests, and non interface related
testcases in parallel to speedup the entire build process.
2024-10-06 16:16:02 +02:00
Christian Breunig
fd737172f1 T861: add UEFI Secure Boot support
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-14 23:05:23 +02:00
Christian Breunig
e86bfd7ab9 Testsuite: T861: add explicit --smoketest argument
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-07 21:32:34 +02:00
Christian Breunig
115fb522c8 Testsuite: T861: add support to use VNC for a graphics console
To use VNC you could run "make test -- --vnc"
2024-09-07 21:32:34 +02:00
Christian Breunig
d851548515 Makefile: T2640: fix PHONY typo
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-05 07:14:43 +02:00
Christian Breunig
388efd9f78 Makefile: T861: add possibility to pass CLI options to check-qemu-install
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-09-05 07:13:08 +02:00
Christian Breunig
9883b41b67 smoketest: T6510: use vyos-configd also on "make test" 2024-06-30 07:33:00 +02:00
Daniil Baturin
5753b4b624 build: T6414: rename the "iso" flavor to "generic" 2024-05-28 19:33:29 +01:00
Daniil Baturin
58fbf3a226 build: T3664: modify the module-level template path
instead of setting an environment variable
2024-05-06 16:19:26 +00:00
Daniil Baturin
ec42af75e0 build: T3664: adjust the vyos-1x submodule path in scripts 2024-04-22 15:58:34 +00:00
Daniil Baturin
abb5b518ab build: T3664: move sudo out of the make target
to avoid permission problems
2024-04-16 19:01:00 +00:00
Daniil Baturin
008bb5063d build: T3664: correct the parameterized make rule 2024-04-15 19:05:51 +00:00
Daniil Baturin
29288652ea build: T3664: add a parameterized make rule for build targets
to simplify the now-rather-tricky build script invocation
2024-04-15 17:17:49 +00:00
Daniil Baturin
5dcb6b7711 chore: T671: remove unused scripts and references to them 2024-03-20 17:50:51 +00:00
sarthurdev
63a8f9d3c6 config: T4919: Add emulated TPM encryption test 2024-02-20 10:46:01 +01:00
Christian Breunig
499e8e1cbb Makefile: T2640: add helper to convert ISO to OCI image to start a container
Use either "make oci" or call the script manually:

$ scripts/iso-to-oci build/live-image-amd64.hybrid.iso

I: mount ISO build/live-image-amd64.hybrid.iso
I: extracting squashfs content
I: generate OCI container image vyos-1.5-strongswan-202311241125.tar
I: to import the previously generated OCI image to your local images run:

   docker import vyos-1.5-strongswan-202311241125.tar vyos:1.5-strongswan-202311241125 --change 'CMD [/sbin/init]'
2023-11-26 20:13:28 +01:00
Christian Breunig
b3d0ebaf1d Makefile: add new target qemu-live
Simply boot a live qemu version from the latest ISO build

(10:18) cpo lnx01:~/vyos-build [current] # sudo make qemu-live
if [ ! -f build/live-image-amd64.hybrid.iso ]; then
echo "Could not find build/live-image-amd64.hybrid.iso"
exit 1
fi
scripts/check-qemu-install --qemu-cmd build/live-image-amd64.hybrid.iso
 INFO - Creating Disk image testinstall-20231119-101823-4483.img
SeaBIOS (version 1.16.2-debian-1.16.2-1)
Machine UUID f48b60b2-e6ad-49ef-9d09-4245d0585e52
Booting from DVD/CD...

ISOLINUX 6.04 20200816 ETCD Copyright (C) 1994-2015 H. Peter Anvin et al
2023-11-19 10:18:49 +01:00
sarthurdev
4727dc1756 smoketest: Allow selection of smoketests to run
Example:
`make test MATCH="interfaces|policy"` will only run interfaces and policy tests
2023-09-14 20:04:54 +02:00
Daniil Baturin
3979b25dcf T3664: initial implementation of the build flavor system 2022-10-06 17:55:01 -04:00
Christian Poessinger
462c5f80e0 Testsuite: add new "make testraid" target for RAID-1 installation testing 2021-12-09 22:40:44 +01:00
Christian Poessinger
c5dee499ab Makefile: add common helper to check if ISO was build before running tests 2021-12-09 11:13:17 +01:00
Christian Poessinger
aa5f7b8666 Makefile: "make test" runs in UEFI mode "make testc" continues to use BIOS
With this change we validate both installation types that they work and
operates "as expected".

(cherry picked from commit e6ce9e76673d9de7c85510ba873f04a3521e1f19)
2021-10-02 12:11:04 +02:00
Christian Poessinger
19778c23a0 Makefile: add "make test-no-interfaces" to start smoketests w/o interface tests 2021-08-15 15:15:41 +02:00
Kim Hagen
7afee1ae93 T3664: remove vagrant build 2021-07-07 05:22:28 -05:00
Kim Hagen
43f4d5c3cd T3664: Eliminate obsolete build flavours 2021-07-07 05:03:38 -05:00
Daniil Baturin
ce49275606 Set the default shell to bash so that we can use -o pipefail 2021-06-29 08:38:18 +00:00
Christian Poessinger
320c1c49c3 Makefile: purge should clean QEMU test image, too 2020-11-01 08:13:41 +01:00
John Estabrook
42f0320956 smoketest: T3003: extend framework to load arbitrary config file 2020-10-27 08:37:00 -05:00
Christian Poessinger
ce7cdb649a Jenkins: clean QEMU build files 2020-10-17 22:53:00 +02:00
John Estabrook
2fd5898643 configd: T2582: add option to run testsuite with daemon (default off) 2020-08-31 09:33:47 -05:00
Christian Poessinger
e146d9b7a2 Makefile: indention fix 2020-06-27 15:14:40 +02:00
Christian Poessinger
240f036655 Makefile: user pipefail in iso build 2020-02-09 13:25:06 +01:00
Christian Poessinger
3da1a284dc Jenkins: add "make test" helper 2020-02-02 17:51:47 +01:00
Kim Hagen
62fce9c3c9 T1951: Include awscli package is the AWS build 2020-01-08 11:09:55 +01:00
Kim Hagen
af3bcd3740 add support for vep1400 2019-12-24 15:20:29 +01:00
Kim Hagen
14d6de44d1 prevent 70-persistent-net.rules from being created 2019-12-03 15:47:18 +01:00
Kim Hagen
33c865b2ad do not add the serial option for vep4600 2019-11-05 14:12:27 +01:00
Kim Hagen
2ec7f9b306 add build option for vep4600 2019-11-05 14:09:41 +01:00