mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Makefile: add "make test-no-interfaces" to start smoketests w/o interface tests
This commit is contained in:
parent
0f8a2d5e61
commit
19778c23a0
9
Makefile
9
Makefile
@ -97,6 +97,15 @@ test:
|
||||
fi
|
||||
scripts/check-qemu-install --debug build/live-image-amd64.hybrid.iso
|
||||
|
||||
.PHONY: test
|
||||
.ONESHELL:
|
||||
test-no-interfaces:
|
||||
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 --debug --no-interfaces build/live-image-amd64.hybrid.iso
|
||||
|
||||
.PHONY: testd
|
||||
.ONESHELL:
|
||||
testd:
|
||||
|
||||
@ -72,6 +72,9 @@ parser.add_argument('--no-kvm', help='Disable use of kvm',
|
||||
parser.add_argument('--configd', help='Execute testsuite with config daemon',
|
||||
action='store_true',
|
||||
default=False)
|
||||
parser.add_argument('--no-interfaces', help='Execute testsuite without interface tests to save time',
|
||||
action='store_true',
|
||||
default=False)
|
||||
parser.add_argument('--configtest', help='Execute load/commit config tests',
|
||||
action='store_true',
|
||||
default=False)
|
||||
@ -332,6 +335,11 @@ try:
|
||||
|
||||
# run default smoketest suite
|
||||
if not args.configtest:
|
||||
if args.no_interfaces:
|
||||
# remove interface tests as they consume a lot of time
|
||||
c.sendline('sudo rm -f /usr/libexec/vyos/tests/smoke/cli/test_interfaces_*')
|
||||
c.expect(op_mode_prompt)
|
||||
|
||||
log.info('Executing VyOS smoketests')
|
||||
c.sendline('/usr/bin/vyos-smoketest')
|
||||
i = c.expect(['\n +Invalid command:', '\n +Set failed',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user