mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
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.
This commit is contained in:
parent
66f12f1d26
commit
57d5afe0ff
7
Makefile
7
Makefile
@ -26,7 +26,12 @@ test: checkiso
|
|||||||
.PHONY: test-no-interfaces
|
.PHONY: test-no-interfaces
|
||||||
.ONESHELL:
|
.ONESHELL:
|
||||||
test-no-interfaces: checkiso
|
test-no-interfaces: checkiso
|
||||||
scripts/check-qemu-install --debug --configd --match="$(MATCH)" --smoketest --uefi --no-interfaces build/live-image-amd64.hybrid.iso
|
scripts/check-qemu-install --debug --configd --smoketest --uefi --no-interfaces build/live-image-amd64.hybrid.iso
|
||||||
|
|
||||||
|
.PHONY: test-interfaces
|
||||||
|
.ONESHELL:
|
||||||
|
test-interfaces: checkiso
|
||||||
|
scripts/check-qemu-install --debug --configd --match="interfaces_" --smoketest --uefi build/live-image-amd64.hybrid.iso
|
||||||
|
|
||||||
.PHONY: testc
|
.PHONY: testc
|
||||||
.ONESHELL:
|
.ONESHELL:
|
||||||
|
|||||||
@ -760,7 +760,7 @@ try:
|
|||||||
if args.match:
|
if args.match:
|
||||||
# Remove tests that we don't want to run
|
# Remove tests that we don't want to run
|
||||||
match_str = '-o '.join([f'-name "test_*{name}*.py" ' for name in args.match.split("|")]).strip()
|
match_str = '-o '.join([f'-name "test_*{name}*.py" ' for name in args.match.split("|")]).strip()
|
||||||
c.sendline(f'sudo find /usr/libexec/vyos/tests/smoke/cli/test_* -type f ! \( {match_str} \) -delete')
|
c.sendline(f'sudo find /usr/libexec/vyos/tests/smoke -maxdepth 2 -type f -name test_* ! \( {match_str} \) -delete')
|
||||||
c.expect(op_mode_prompt)
|
c.expect(op_mode_prompt)
|
||||||
if args.no_interfaces:
|
if args.no_interfaces:
|
||||||
# remove interface tests as they consume a lot of time
|
# remove interface tests as they consume a lot of time
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user