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

bundle agent test
{
  methods:
    # source file
    "any"
      usebundle => file_make(
        "$(G.testdir)/source_file",
        "This is the source file to copy $(sys.date) - always fresh"
      );

    # destination files
    "any" usebundle => dcs_fini("$(G.testdir)/destfile_classic");
    "any" usebundle => dcs_fini("$(G.testdir)/destfile_latest");
    "any" usebundle => generate_key;
    "any" usebundle => start_server("$(this.promise_dirname)/lan_open.srv");
    "any" usebundle => run_test("$(this.promise_filename).sub");
    "any" usebundle => stop_server("$(this.promise_dirname)/lan_open.srv");
}
