From: Alan T. DeKok Date: Wed, 13 Sep 2017 15:57:07 +0000 (-0400) Subject: add parallel test X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=506d11b2d3d850fa6a1167ea1eb96f7e5c67d7ec;p=thirdparty%2Ffreeradius-server.git add parallel test --- diff --git a/src/tests/keywords/parallel b/src/tests/keywords/parallel new file mode 100644 index 00000000000..5c582289703 --- /dev/null +++ b/src/tests/keywords/parallel @@ -0,0 +1,27 @@ +# +# PRE: update +# +parallel { + update parent.control { + Tmp-Integer-0 += 1 + } + update parent.control { + Tmp-Integer-0 += 2 + } + update parent.control { + Tmp-Integer-0 += 3 + } + update parent.control { + Tmp-Integer-0 += 4 + } +} + +if ("%{control:Tmp-Integer-0[#]}" != 4) { + update reply { + Filter-Id += "fail-count" + } + + return +} + +success