Skip to content

Commit

Permalink
Added acceptance test for linesep constant
Browse files Browse the repository at this point in the history
Ticket: ENT-10432
Changelog: None
Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
  • Loading branch information
larsewi committed Nov 14, 2023
1 parent 55795cf commit 118d225
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions tests/acceptance/00_basics/linesep.cf
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
body common control
{
bundlesequence => { "test", "check" };
version => "1.0";
}

bundle agent test
{
meta:
"description" -> { "ENT-10432" }
string => "Test platform-agnostic linesep constant";
}

bundle agent check
{
classes:
windows::
"ok"
expression => strcmp("$(const.linesep)", "$(const.r)$(const.n)");
!windows::
"ok"
expression => strcmp("$(const.linesep)", "$(const.n)");

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

0 comments on commit 118d225

Please sign in to comment.