summaryrefslogtreecommitdiff
path: root/lib/configuration/tests
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2026-05-06 16:40:54 +0200
committerSébastien Dailly <sebastien@dailly.me>2026-05-06 16:44:25 +0200
commita5efd7d15b4d049a4ed539ed5d9c2f1037d00973 (patch)
tree9b1f002f487b94c8ec7a6b37b761f2d2def10208 /lib/configuration/tests
parentae4814880d7a2ad9c96e8f4001edf5032b9a7fb2 (diff)
Use the double dash as arguments in tests
Diffstat (limited to 'lib/configuration/tests')
-rw-r--r--lib/configuration/tests/configuration.t8
-rw-r--r--lib/configuration/tests/errors.t10
-rw-r--r--lib/configuration/tests/tree.t8
3 files changed, 13 insertions, 13 deletions
diff --git a/lib/configuration/tests/configuration.t b/lib/configuration/tests/configuration.t
index a732db6..e44b91a 100644
--- a/lib/configuration/tests/configuration.t
+++ b/lib/configuration/tests/configuration.t
@@ -2,7 +2,7 @@ The configuration is written in JSON5 format.
Minimal configuration file with nothing:
- $ tests -configuration <<EOF
+ $ tests --configuration <<EOF
> { "content" : [] }
>
> EOF
@@ -10,7 +10,7 @@ Minimal configuration file with nothing:
Trailing coma are accepted:
- $ tests -configuration <<EOF
+ $ tests --configuration <<EOF
> { "content" :
> [
> {
@@ -23,7 +23,7 @@ Trailing coma are accepted:
Comments are accepted:
- $ tests -configuration <<EOF
+ $ tests --configuration <<EOF
> { "content" :
> [
> {
@@ -37,7 +37,7 @@ Comments are accepted:
Cycles between elements are accepted when they are not mandatory to each other
- $ tests -configuration <<EOF
+ $ tests --configuration <<EOF
> {
> "content": [
> {
diff --git a/lib/configuration/tests/errors.t b/lib/configuration/tests/errors.t
index 6b5584e..58c15ed 100644
--- a/lib/configuration/tests/errors.t
+++ b/lib/configuration/tests/errors.t
@@ -2,7 +2,7 @@ Differents invalid configuration. All of them shall report the error properly
Every content shall have an identifier
- $ tests -configuration <<EOF
+ $ tests --configuration <<EOF
> {
> "content": [
> {
@@ -18,7 +18,7 @@ Every content shall have an identifier
The content ID cannot be empty:
- $ tests -configuration <<EOF
+ $ tests --configuration <<EOF
> {
> "content": [
> {
@@ -33,7 +33,7 @@ The content ID cannot be empty:
The content ID cannot be contains "." (this charater is used internaly):
- $ tests -configuration <<EOF
+ $ tests --configuration <<EOF
> {
> "content": [
> {
@@ -51,7 +51,7 @@ The content ID cannot be contains "." (this charater is used internaly):
A reference shall point to an existing content:
- $ tests -configuration <<EOF
+ $ tests --configuration <<EOF
> {
> "content": [
> {
@@ -78,7 +78,7 @@ A reference shall point to an existing content:
Cycles between required content are not accepted
- $ tests -configuration <<EOF
+ $ tests --configuration <<EOF
> {
> "content": [
> {
diff --git a/lib/configuration/tests/tree.t b/lib/configuration/tests/tree.t
index b69c830..2e9df4b 100644
--- a/lib/configuration/tests/tree.t
+++ b/lib/configuration/tests/tree.t
@@ -4,7 +4,7 @@ configuration.
Each reference field introduce a dependency between the content having the field
and the content targeted by the field.
- $ tests -configuration -tree <<EOF
+ $ tests --configuration --tree <<EOF
> {
> "content": [
> {
@@ -42,7 +42,7 @@ and the content targeted by the field.
The tree only contains root elements. Links between subcontent are reported as
link between their respective root content.
- $ tests -configuration -tree <<EOF
+ $ tests --configuration --tree <<EOF
> {
> "content": [
> {
@@ -81,7 +81,7 @@ link between their respective root content.
}
- $ tests -configuration -tree <<EOF
+ $ tests --configuration --tree <<EOF
> {
> "content": [
> {
@@ -125,7 +125,7 @@ link between their respective root content.
A content is allowed to loop to itself, directly or indirectly:
- $ tests -configuration -tree <<EOF
+ $ tests --configuration --tree <<EOF
> {
> "content": [
> {