Skip to content

Commit 8a3a7fe

Browse files
committed
Added acceptance test to check existance of n_cpusocket(s) class
Ticket: CFE-30 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent 4fb66a1 commit 8a3a7fe

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#######################################################
2+
#
3+
# Test that n_cpusocket(s) class exists on Linux
4+
#
5+
#######################################################
6+
7+
body common control
8+
{
9+
inputs => { "../../default.cf.sub" };
10+
bundlesequence => { default("$(this.promise_filename)") };
11+
version => "1.0";
12+
}
13+
14+
#######################################################
15+
16+
bundle agent test
17+
{
18+
meta:
19+
"description" -> { "CFE-30" }
20+
string => "Test that n_cpusocket(s) class exists on Linux";
21+
22+
"test_soft_fail"
23+
string => "!linux",
24+
meta => { "CFE-30" };
25+
26+
vars:
27+
"num_matching"
28+
int => countclassesmatching("[0-9]+_cpusockets?");
29+
}
30+
31+
#######################################################
32+
33+
bundle agent check
34+
{
35+
classes:
36+
"ok"
37+
expression => eval("$(test.num_matching) == 1", "class", "infix");
38+
39+
methods:
40+
"any"
41+
usebundle => dcs_passif("ok", "$(this.promise_filename)"),
42+
inherit => "true";
43+
}

0 commit comments

Comments
 (0)