File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed
tests/acceptance/01_vars/01_basic Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments