Skip to content

Commit 4fb66a1

Browse files
committed
Added acceptance test for sys.cpusockets variable
Ticket: CFE-30 Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent d10008a commit 4fb66a1

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#######################################################
2+
#
3+
# Test that sys.cpusockets variable 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 sys.cpusockets variable exists on Linux";
21+
22+
"test_soft_fail"
23+
string => "!linux",
24+
meta => { "CFE-30" };
25+
}
26+
27+
#######################################################
28+
29+
bundle agent check
30+
{
31+
classes:
32+
"ok"
33+
expression => isvariable("sys.cpusockets");
34+
35+
methods:
36+
"any"
37+
usebundle => dcs_passif("ok", "$(this.promise_filename)"),
38+
inherit => "true";
39+
40+
reports:
41+
"I have $(sys.cpusockets) CPU socket(s)";
42+
}

0 commit comments

Comments
 (0)