summaryrefslogtreecommitdiffstats
path: root/src/tests/keywords/cmp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/keywords/cmp')
-rw-r--r--src/tests/keywords/cmp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tests/keywords/cmp b/src/tests/keywords/cmp
new file mode 100644
index 0000000..4cd59b8
--- /dev/null
+++ b/src/tests/keywords/cmp
@@ -0,0 +1,20 @@
+#
+# PRE: update
+#
+update control {
+ Cleartext-Password := 'hello'
+}
+
+update request {
+ Called-Station-Id := "This is a test"
+ Calling-Station-Id := "This is a test"
+}
+
+#
+# Check attribute references
+#
+if (Called-Station-Id == &Calling-Station-Id) {
+ update reply {
+ Filter-Id := "filter"
+ }
+}