From 993152e5ae976a7b5e50c4275cf822ad0bf4f6f1 Mon Sep 17 00:00:00 2001 From: Philipp Wullstein-Kammler Date: Fri, 31 Jan 2025 09:27:25 +0100 Subject: [PATCH 1/2] Write system tests for `lobster-json` regarding directory input - Add a requirement to specify the behavior when a directory is specified as input - Add system tests --- lobster/tools/json/input_directory.trlc | 50 ++++++++++++++++ .../expected-output/exit-code.txt | 1 + .../expected-output/output.lobster | 24 ++++++++ .../non-json-input/expected-output/stderr.txt | 0 .../non-json-input/expected-output/stdout.txt | 1 + .../non-json-input/input/args.txt | 5 ++ .../expected-output/exit-code.txt | 1 + .../expected-output/output.lobster | 58 +++++++++++++++++++ .../expected-output/stderr.txt | 0 .../expected-output/stdout.txt | 1 + .../two-level-nesting/input/args.txt | 3 + .../input/dir1/dir2/deeply-nested.json | 9 +++ .../two-level-nesting/input/dir1/nested.json | 9 +++ .../two-level-nesting/input/file.json | 9 +++ .../outer-and-inner/README.md | 3 + .../expected-output/exit-code.txt | 1 + .../expected-output/stderr.txt | 0 .../expected-output/stdout.txt | 1 + .../outer-and-inner/input/args.txt | 3 + .../outer-and-inner/input/data.json | 25 ++++++++ 20 files changed, 204 insertions(+) create mode 100644 lobster/tools/json/input_directory.trlc create mode 100644 tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/exit-code.txt create mode 100644 tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/output.lobster create mode 100644 tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/stderr.txt create mode 100644 tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/stdout.txt create mode 100644 tests-system/lobster-json/rbt-directory-input/non-json-input/input/args.txt create mode 100644 tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/exit-code.txt create mode 100644 tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/output.lobster create mode 100644 tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/stderr.txt create mode 100644 tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/stdout.txt create mode 100644 tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/args.txt create mode 100644 tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/dir1/dir2/deeply-nested.json create mode 100644 tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/dir1/nested.json create mode 100644 tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/file.json create mode 100644 tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/README.md create mode 100644 tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/exit-code.txt create mode 100644 tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/stderr.txt create mode 100644 tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/stdout.txt create mode 100644 tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/input/args.txt create mode 100644 tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/input/data.json diff --git a/lobster/tools/json/input_directory.trlc b/lobster/tools/json/input_directory.trlc new file mode 100644 index 00000000..bb7431d9 --- /dev/null +++ b/lobster/tools/json/input_directory.trlc @@ -0,0 +1,50 @@ +package json_req +import req +/* +req.System_Requirement Parse_Input_File { + description = ''' + IF a list element given through the command line option "FILE_OR_DIR" is a file, + + (OTHERWISE, the tool shall exit with a non-zero return code.) + ''' +} + +req.System_Requirement_Aspect Parse_Input_File_JSON_Extension { + description = ''' + AND if the file extension is "json" (case-insensitive), + ''' +} + +req.System_Requirement_Aspect Parse_Input_File_Valid_JSON { + description = ''' + AND if the file content is valid JSON, + ''' +} + +req.System_Requirement_Aspect Parse_Input_File_Input_Items { + description = ''' + THEN each key-value pair of the outer-most dictionary of the JSON data struct + ''' +} + +req.System_Requirement_Aspect Parse_Input_File_To_Lobster { + description = ''' + SHALL be written in the LOBSTER interchange format + ''' +} + +// missing aspect: how to convert (i.e. what is the item name)? + +req.System_Requirement_Aspect Parse_Input_File_To_Stdout { + description = ''' + to the file given in the command line option "out", + IF that option is given and is not an empty string, + ''' +} + +req.System_Requirement_Aspect Parse_Input_File_To_File { + description = ''' + OTHERWISE to STDOUT. + ''' +} +*/ \ No newline at end of file diff --git a/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/exit-code.txt b/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/exit-code.txt new file mode 100644 index 00000000..c2270834 --- /dev/null +++ b/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/exit-code.txt @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/output.lobster b/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/output.lobster new file mode 100644 index 00000000..b4846c16 --- /dev/null +++ b/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/output.lobster @@ -0,0 +1,24 @@ +{ + "data": [ + { + "tag": "json ./file.json:tree on island", + "location": { + "kind": "file", + "file": "./file.json", + "line": null, + "column": null + }, + "name": "./file.json:tree on island", + "messages": [], + "just_up": [], + "just_down": [], + "just_global": [], + "framework": "JSON", + "kind": "Test Vector", + "status": null + } + ], + "generator": "lobster-json", + "schema": "lobster-act-trace", + "version": 3 +} diff --git a/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/stderr.txt b/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/stdout.txt b/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/stdout.txt new file mode 100644 index 00000000..bcbe2911 --- /dev/null +++ b/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/stdout.txt @@ -0,0 +1 @@ +lobster-json: wrote 1 items to output.lobster diff --git a/tests-system/lobster-json/rbt-directory-input/non-json-input/input/args.txt b/tests-system/lobster-json/rbt-directory-input/non-json-input/input/args.txt new file mode 100644 index 00000000..4591718f --- /dev/null +++ b/tests-system/lobster-json/rbt-directory-input/non-json-input/input/args.txt @@ -0,0 +1,5 @@ +--single +--tag-attribute=something +--name-attribute=name +--out=output.lobster +dir1 \ No newline at end of file diff --git a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/exit-code.txt b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/exit-code.txt new file mode 100644 index 00000000..c2270834 --- /dev/null +++ b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/exit-code.txt @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/output.lobster b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/output.lobster new file mode 100644 index 00000000..590c43a9 --- /dev/null +++ b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/output.lobster @@ -0,0 +1,58 @@ +{ + "data": [ + { + "tag": "json ./dir1/dir2/deeply-nested.json:dir1.dir2.deeply-nested.1", + "location": { + "kind": "file", + "file": "./dir1/dir2/deeply-nested.json", + "line": null, + "column": null + }, + "name": "./dir1/dir2/deeply-nested.json:dir1.dir2.deeply-nested.1", + "messages": [], + "just_up": [], + "just_down": [], + "just_global": [], + "framework": "JSON", + "kind": "Test Vector", + "status": null + }, + { + "tag": "json ./dir1/nested.json:dir1.nested.1", + "location": { + "kind": "file", + "file": "./dir1/nested.json", + "line": null, + "column": null + }, + "name": "./dir1/nested.json:dir1.nested.1", + "messages": [], + "just_up": [], + "just_down": [], + "just_global": [], + "framework": "JSON", + "kind": "Test Vector", + "status": null + }, + { + "tag": "json ./file.json:file.1", + "location": { + "kind": "file", + "file": "./file.json", + "line": null, + "column": null + }, + "name": "./file.json:file.1", + "messages": [], + "just_up": [], + "just_down": [], + "just_global": [], + "framework": "JSON", + "kind": "Test Vector", + "status": null + } + ], + "generator": "lobster-json", + "schema": "lobster-act-trace", + "version": 3 +} diff --git a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/stderr.txt b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/stdout.txt b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/stdout.txt new file mode 100644 index 00000000..94eefe76 --- /dev/null +++ b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/stdout.txt @@ -0,0 +1 @@ +lobster-json: wrote 3 items to output.lobster diff --git a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/args.txt b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/args.txt new file mode 100644 index 00000000..a769ee3b --- /dev/null +++ b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/args.txt @@ -0,0 +1,3 @@ +--single +--tag-attribute=something +--out=output.lobster \ No newline at end of file diff --git a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/dir1/dir2/deeply-nested.json b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/dir1/dir2/deeply-nested.json new file mode 100644 index 00000000..c2923db1 --- /dev/null +++ b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/dir1/dir2/deeply-nested.json @@ -0,0 +1,9 @@ +{ + "cherry": { + "data": [ + { + "name": "element three" + } + ] + } +} diff --git a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/dir1/nested.json b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/dir1/nested.json new file mode 100644 index 00000000..8a74d0ad --- /dev/null +++ b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/dir1/nested.json @@ -0,0 +1,9 @@ +{ + "banana": { + "data": [ + { + "name": "element two" + } + ] + } +} diff --git a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/file.json b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/file.json new file mode 100644 index 00000000..63be8334 --- /dev/null +++ b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/file.json @@ -0,0 +1,9 @@ +{ + "apple": { + "data": [ + { + "name": "element one" + } + ] + } +} diff --git a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/README.md b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/README.md new file mode 100644 index 00000000..f7c21c03 --- /dev/null +++ b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/README.md @@ -0,0 +1,3 @@ +The input file of this test defines a JSON data struct which has got data items in its +outer-most dictionary, as well as nested items. +According to the requirement only the data items from the outer-most dictionary must be considered. diff --git a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/exit-code.txt b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/exit-code.txt new file mode 100644 index 00000000..c2270834 --- /dev/null +++ b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/exit-code.txt @@ -0,0 +1 @@ +0 \ No newline at end of file diff --git a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/stderr.txt b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/stderr.txt new file mode 100644 index 00000000..e69de29b diff --git a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/stdout.txt b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/stdout.txt new file mode 100644 index 00000000..bcbe2911 --- /dev/null +++ b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/stdout.txt @@ -0,0 +1 @@ +lobster-json: wrote 1 items to output.lobster diff --git a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/input/args.txt b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/input/args.txt new file mode 100644 index 00000000..a769ee3b --- /dev/null +++ b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/input/args.txt @@ -0,0 +1,3 @@ +--single +--tag-attribute=something +--out=output.lobster \ No newline at end of file diff --git a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/input/data.json b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/input/data.json new file mode 100644 index 00000000..caf2175a --- /dev/null +++ b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/input/data.json @@ -0,0 +1,25 @@ +{ + "outer1": { + "data": [ + { + "name": "Take this item!" + }, + { + + "name": "unclear" + } + ] + }, + "outer2": { + "data": [ + { + "name": "Take this item!" + }, + { + + "name": "unclear" + } + ] + } + } + \ No newline at end of file From 2ed92946049979525f3de97f42bdae9de0101d05 Mon Sep 17 00:00:00 2001 From: Mugdha Dhole Date: Wed, 23 Jul 2025 16:03:41 +0530 Subject: [PATCH 2/2] Removed old system test infrastructure --- lobster/tools/json/input_directory.trlc | 3 +- .../expected-output/exit-code.txt | 1 - .../expected-output/output.lobster | 24 -------- .../non-json-input/expected-output/stderr.txt | 0 .../non-json-input/expected-output/stdout.txt | 1 - .../non-json-input/input/args.txt | 5 -- .../expected-output/exit-code.txt | 1 - .../expected-output/output.lobster | 58 ------------------- .../expected-output/stderr.txt | 0 .../expected-output/stdout.txt | 1 - .../two-level-nesting/input/args.txt | 3 - .../input/dir1/dir2/deeply-nested.json | 9 --- .../two-level-nesting/input/dir1/nested.json | 9 --- .../two-level-nesting/input/file.json | 9 --- .../outer-and-inner/README.md | 3 - .../expected-output/exit-code.txt | 1 - .../expected-output/stderr.txt | 0 .../expected-output/stdout.txt | 1 - .../outer-and-inner/input/args.txt | 3 - .../outer-and-inner/input/data.json | 25 -------- 20 files changed, 1 insertion(+), 156 deletions(-) delete mode 100644 tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/exit-code.txt delete mode 100644 tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/output.lobster delete mode 100644 tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/stderr.txt delete mode 100644 tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/stdout.txt delete mode 100644 tests-system/lobster-json/rbt-directory-input/non-json-input/input/args.txt delete mode 100644 tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/exit-code.txt delete mode 100644 tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/output.lobster delete mode 100644 tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/stderr.txt delete mode 100644 tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/stdout.txt delete mode 100644 tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/args.txt delete mode 100644 tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/dir1/dir2/deeply-nested.json delete mode 100644 tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/dir1/nested.json delete mode 100644 tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/file.json delete mode 100644 tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/README.md delete mode 100644 tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/exit-code.txt delete mode 100644 tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/stderr.txt delete mode 100644 tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/stdout.txt delete mode 100644 tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/input/args.txt delete mode 100644 tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/input/data.json diff --git a/lobster/tools/json/input_directory.trlc b/lobster/tools/json/input_directory.trlc index bb7431d9..c7b7d412 100644 --- a/lobster/tools/json/input_directory.trlc +++ b/lobster/tools/json/input_directory.trlc @@ -1,6 +1,6 @@ package json_req import req -/* + req.System_Requirement Parse_Input_File { description = ''' IF a list element given through the command line option "FILE_OR_DIR" is a file, @@ -47,4 +47,3 @@ req.System_Requirement_Aspect Parse_Input_File_To_File { OTHERWISE to STDOUT. ''' } -*/ \ No newline at end of file diff --git a/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/exit-code.txt b/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/exit-code.txt deleted file mode 100644 index c2270834..00000000 --- a/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/exit-code.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/output.lobster b/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/output.lobster deleted file mode 100644 index b4846c16..00000000 --- a/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/output.lobster +++ /dev/null @@ -1,24 +0,0 @@ -{ - "data": [ - { - "tag": "json ./file.json:tree on island", - "location": { - "kind": "file", - "file": "./file.json", - "line": null, - "column": null - }, - "name": "./file.json:tree on island", - "messages": [], - "just_up": [], - "just_down": [], - "just_global": [], - "framework": "JSON", - "kind": "Test Vector", - "status": null - } - ], - "generator": "lobster-json", - "schema": "lobster-act-trace", - "version": 3 -} diff --git a/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/stderr.txt b/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/stderr.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/stdout.txt b/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/stdout.txt deleted file mode 100644 index bcbe2911..00000000 --- a/tests-system/lobster-json/rbt-directory-input/non-json-input/expected-output/stdout.txt +++ /dev/null @@ -1 +0,0 @@ -lobster-json: wrote 1 items to output.lobster diff --git a/tests-system/lobster-json/rbt-directory-input/non-json-input/input/args.txt b/tests-system/lobster-json/rbt-directory-input/non-json-input/input/args.txt deleted file mode 100644 index 4591718f..00000000 --- a/tests-system/lobster-json/rbt-directory-input/non-json-input/input/args.txt +++ /dev/null @@ -1,5 +0,0 @@ ---single ---tag-attribute=something ---name-attribute=name ---out=output.lobster -dir1 \ No newline at end of file diff --git a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/exit-code.txt b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/exit-code.txt deleted file mode 100644 index c2270834..00000000 --- a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/exit-code.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/output.lobster b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/output.lobster deleted file mode 100644 index 590c43a9..00000000 --- a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/output.lobster +++ /dev/null @@ -1,58 +0,0 @@ -{ - "data": [ - { - "tag": "json ./dir1/dir2/deeply-nested.json:dir1.dir2.deeply-nested.1", - "location": { - "kind": "file", - "file": "./dir1/dir2/deeply-nested.json", - "line": null, - "column": null - }, - "name": "./dir1/dir2/deeply-nested.json:dir1.dir2.deeply-nested.1", - "messages": [], - "just_up": [], - "just_down": [], - "just_global": [], - "framework": "JSON", - "kind": "Test Vector", - "status": null - }, - { - "tag": "json ./dir1/nested.json:dir1.nested.1", - "location": { - "kind": "file", - "file": "./dir1/nested.json", - "line": null, - "column": null - }, - "name": "./dir1/nested.json:dir1.nested.1", - "messages": [], - "just_up": [], - "just_down": [], - "just_global": [], - "framework": "JSON", - "kind": "Test Vector", - "status": null - }, - { - "tag": "json ./file.json:file.1", - "location": { - "kind": "file", - "file": "./file.json", - "line": null, - "column": null - }, - "name": "./file.json:file.1", - "messages": [], - "just_up": [], - "just_down": [], - "just_global": [], - "framework": "JSON", - "kind": "Test Vector", - "status": null - } - ], - "generator": "lobster-json", - "schema": "lobster-act-trace", - "version": 3 -} diff --git a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/stderr.txt b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/stderr.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/stdout.txt b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/stdout.txt deleted file mode 100644 index 94eefe76..00000000 --- a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/expected-output/stdout.txt +++ /dev/null @@ -1 +0,0 @@ -lobster-json: wrote 3 items to output.lobster diff --git a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/args.txt b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/args.txt deleted file mode 100644 index a769ee3b..00000000 --- a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/args.txt +++ /dev/null @@ -1,3 +0,0 @@ ---single ---tag-attribute=something ---out=output.lobster \ No newline at end of file diff --git a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/dir1/dir2/deeply-nested.json b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/dir1/dir2/deeply-nested.json deleted file mode 100644 index c2923db1..00000000 --- a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/dir1/dir2/deeply-nested.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "cherry": { - "data": [ - { - "name": "element three" - } - ] - } -} diff --git a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/dir1/nested.json b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/dir1/nested.json deleted file mode 100644 index 8a74d0ad..00000000 --- a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/dir1/nested.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "banana": { - "data": [ - { - "name": "element two" - } - ] - } -} diff --git a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/file.json b/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/file.json deleted file mode 100644 index 63be8334..00000000 --- a/tests-system/lobster-json/rbt-directory-input/two-level-nesting/input/file.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "apple": { - "data": [ - { - "name": "element one" - } - ] - } -} diff --git a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/README.md b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/README.md deleted file mode 100644 index f7c21c03..00000000 --- a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/README.md +++ /dev/null @@ -1,3 +0,0 @@ -The input file of this test defines a JSON data struct which has got data items in its -outer-most dictionary, as well as nested items. -According to the requirement only the data items from the outer-most dictionary must be considered. diff --git a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/exit-code.txt b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/exit-code.txt deleted file mode 100644 index c2270834..00000000 --- a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/exit-code.txt +++ /dev/null @@ -1 +0,0 @@ -0 \ No newline at end of file diff --git a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/stderr.txt b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/stderr.txt deleted file mode 100644 index e69de29b..00000000 diff --git a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/stdout.txt b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/stdout.txt deleted file mode 100644 index bcbe2911..00000000 --- a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/expected-output/stdout.txt +++ /dev/null @@ -1 +0,0 @@ -lobster-json: wrote 1 items to output.lobster diff --git a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/input/args.txt b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/input/args.txt deleted file mode 100644 index a769ee3b..00000000 --- a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/input/args.txt +++ /dev/null @@ -1,3 +0,0 @@ ---single ---tag-attribute=something ---out=output.lobster \ No newline at end of file diff --git a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/input/data.json b/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/input/data.json deleted file mode 100644 index caf2175a..00000000 --- a/tests-system/lobster-json/rbt-parse-input-file-input-items/outer-and-inner/input/data.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "outer1": { - "data": [ - { - "name": "Take this item!" - }, - { - - "name": "unclear" - } - ] - }, - "outer2": { - "data": [ - { - "name": "Take this item!" - }, - { - - "name": "unclear" - } - ] - } - } - \ No newline at end of file