# Test $(this.promise_dirname)

body common control
{
      inputs => { "../../default.cf.sub" };
      bundlesequence  => { default("$(this.promise_filename)") };
}

#######################################################

bundle agent init
{
  vars:
      "expected" string => dirname($(this.promise_filename));
}

#######################################################

bundle agent test
{
}

#######################################################

bundle agent check
{
  classes:
      "ok" expression => strcmp($(init.expected), $(this.promise_dirname));

  reports:
    DEBUG::
      "$(this.promise_filename) expected dirname $(init.expected), actual $(this.promise_dirname)";

    ok::
      "$(this.promise_filename) Pass";
    !ok::
      "$(this.promise_filename) FAIL";
}
