summaryrefslogtreecommitdiff
path: root/tests/basic
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic')
-rw-r--r--tests/basic/23-json-with-braces.inc1
-rw-r--r--tests/basic/23-json-without-braces.inc2
-rw-r--r--tests/basic/23-ucl-with-braces.inc1
-rw-r--r--tests/basic/23-ucl-without-braces.inc1
-rw-r--r--tests/basic/23.in8
-rw-r--r--tests/basic/23.res9
-rw-r--r--tests/basic/comments.in4
-rw-r--r--tests/basic/issue319.in3
-rw-r--r--tests/basic/issue319.res2
9 files changed, 31 insertions, 0 deletions
diff --git a/tests/basic/23-json-with-braces.inc b/tests/basic/23-json-with-braces.inc
new file mode 100644
index 000000000000..b6f13e15edb7
--- /dev/null
+++ b/tests/basic/23-json-with-braces.inc
@@ -0,0 +1 @@
+{ "a": "b" }
diff --git a/tests/basic/23-json-without-braces.inc b/tests/basic/23-json-without-braces.inc
new file mode 100644
index 000000000000..bfad85f2f011
--- /dev/null
+++ b/tests/basic/23-json-without-braces.inc
@@ -0,0 +1,2 @@
+# Note: This is arguably not a valid JSON file, but it is supposed to be parsable UCL.
+"b": "c"
diff --git a/tests/basic/23-ucl-with-braces.inc b/tests/basic/23-ucl-with-braces.inc
new file mode 100644
index 000000000000..38f5a8708dc3
--- /dev/null
+++ b/tests/basic/23-ucl-with-braces.inc
@@ -0,0 +1 @@
+{ c = "d"; }
diff --git a/tests/basic/23-ucl-without-braces.inc b/tests/basic/23-ucl-without-braces.inc
new file mode 100644
index 000000000000..1072dfc8682b
--- /dev/null
+++ b/tests/basic/23-ucl-without-braces.inc
@@ -0,0 +1 @@
+d = "e";
diff --git a/tests/basic/23.in b/tests/basic/23.in
new file mode 100644
index 000000000000..8778a5060d09
--- /dev/null
+++ b/tests/basic/23.in
@@ -0,0 +1,8 @@
+a = 1;
+b = 2;
+.include() "${CURDIR}/23-json-with-braces.inc"
+.include() "${CURDIR}/23-json-without-braces.inc"
+.include() "${CURDIR}/23-ucl-with-braces.inc"
+.include() "${CURDIR}/23-ucl-without-braces.inc"
+c = 3;
+d = 4;
diff --git a/tests/basic/23.res b/tests/basic/23.res
new file mode 100644
index 000000000000..a98313c4e421
--- /dev/null
+++ b/tests/basic/23.res
@@ -0,0 +1,9 @@
+a = 1;
+a = "b";
+b = 2;
+b = "c";
+c = "d";
+c = 3;
+d = "e";
+d = 4;
+
diff --git a/tests/basic/comments.in b/tests/basic/comments.in
index 3144fa004fa2..fbaa009e6465 100644
--- a/tests/basic/comments.in
+++ b/tests/basic/comments.in
@@ -1,4 +1,8 @@
# This test is intended to check various comments in ucl
+/***/
+/*
+ * ""
+ */
obj {
diff --git a/tests/basic/issue319.in b/tests/basic/issue319.in
new file mode 100644
index 000000000000..f21900f1086f
--- /dev/null
+++ b/tests/basic/issue319.in
@@ -0,0 +1,3 @@
+key = <<EOD
+value
+EOD \ No newline at end of file
diff --git a/tests/basic/issue319.res b/tests/basic/issue319.res
new file mode 100644
index 000000000000..4b17c4b4eb1b
--- /dev/null
+++ b/tests/basic/issue319.res
@@ -0,0 +1,2 @@
+key = "value";
+