2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2023 Marcel Telka
16 %patch% 01-tox.ini.patch
20 # To run tests you need:
22 # 1) to have this in /etc/nut/ups.conf (see PyNUTClient/test_nutclient.py):
26 # desc = "Test device"
27 # port = /usr/share/nut/etc-samples/evolution500.seq.dummy-ups.sample
29 # 2) the svc:/system/power/nut-server:default service running:
31 # svcadm enable svc:/system/power/nut-server:default
35 # /usr/lib/nut/bin/dummy-ups -a dummy
37 # Remove colors from test output
38 COMPONENT_TEST_TRANSFORMS += "-e 's/\x1b\[[0-9;]*m//g'"
42 # svc:/system/power/nut-server:default
43 TEST_REQUIRED_PACKAGES += system/management/nut/server
46 # /usr/lib/nut/bin/dummy-ups
47 # /usr/share/nut/etc-samples/evolution500.seq.dummy-ups.sample
48 TEST_REQUIRED_PACKAGES += system/management/nut/drivers/software