commit | author | age
|
9f211b
|
1 |
# |
MT |
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 |
|
5 |
# 1.0 of the CDDL. |
|
6 |
# |
|
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. |
|
10 |
# |
|
11 |
|
|
12 |
# |
|
13 |
# Copyright 2023 Marcel Telka |
|
14 |
# |
|
15 |
|
0d7c37
|
16 |
%patch% 01-tox.ini.patch |
9f211b
|
17 |
|
0d7c37
|
18 |
%include-3% |
MT |
19 |
# |
|
20 |
# To run tests you need: |
|
21 |
# |
|
22 |
# 1) to have this in /etc/nut/ups.conf (see PyNUTClient/test_nutclient.py): |
|
23 |
# |
|
24 |
# [dummy] |
|
25 |
# driver = dummy-ups |
|
26 |
# desc = "Test device" |
|
27 |
# port = /usr/share/nut/etc-samples/evolution500.seq.dummy-ups.sample |
|
28 |
# |
|
29 |
# 2) the svc:/system/power/nut-server:default service running: |
|
30 |
# |
|
31 |
# svcadm enable svc:/system/power/nut-server:default |
|
32 |
# |
|
33 |
# 3) start dummy-ups: |
|
34 |
# |
|
35 |
# /usr/lib/nut/bin/dummy-ups -a dummy |
|
36 |
|
|
37 |
# Remove colors from test output |
|
38 |
COMPONENT_TEST_TRANSFORMS += "-e 's/\x1b\[[0-9;]*m//g'" |
|
39 |
|
|
40 |
# Needed for: |
|
41 |
# /etc/nut/ups.conf |
|
42 |
# svc:/system/power/nut-server:default |
|
43 |
TEST_REQUIRED_PACKAGES += system/management/nut/server |
|
44 |
|
|
45 |
# Needed for: |
|
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 |