1#######################################################
2#
3# Test initial class negation with -N
4#
5#######################################################
6
7body common control
8{
9  inputs => { "../../default.cf.sub" };
10  bundlesequence  => { default("$(this.promise_filename)") };
11  version => "1.0";
12}
13
14bundle agent init
15{
16vars:
17	"dummy" string => "dummy";
18}
19
20#######################################################
21
22bundle agent test
23{
24vars:
25	"dummy" string => "dummy";
26}
27
28#######################################################
29
30bundle agent check
31{
32classes:
33    "ok" expression => "any";
34    "dummy" expression => regextract("(.*)\.sub", $(this.promise_filename), "fn");
35
36reports:
37    DEBUG::
38	"This should pass even if you run it with: -N ok";
39	"Look at $(fn[1]) to see which flags are passed in";
40    ok::
41	"$(fn[1]) Pass";
42    !ok::
43	"$(fn[1]) FAIL";
44}
45