diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-01-17 11:58:55 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-01-17 15:02:05 +0100 |
commit | 6639b1c8535493f66ad1d2c9ec579af33684ca1a (patch) | |
tree | cc47d63c5406c2e427b1f704eb50a54b3bdd00f9 /testsuite | |
parent | 2bb2e2981e4731432a71f41252441cbc4db19239 (diff) | |
download | ghdl-6639b1c8535493f66ad1d2c9ec579af33684ca1a.tar.gz ghdl-6639b1c8535493f66ad1d2c9ec579af33684ca1a.tar.bz2 ghdl-6639b1c8535493f66ad1d2c9ec579af33684ca1a.zip |
testsuite/pyunit/lsp: rename test
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/pyunit/lsp/006opterr/cmds.json (renamed from testsuite/pyunit/lsp/005opterr/cmds.json) | 0 | ||||
-rw-r--r-- | testsuite/pyunit/lsp/006opterr/hdl-prj.json (renamed from testsuite/pyunit/lsp/005opterr/hdl-prj.json) | 0 | ||||
-rw-r--r-- | testsuite/pyunit/lsp/006opterr/replies.json (renamed from testsuite/pyunit/lsp/005opterr/replies.json) | 0 | ||||
-rw-r--r-- | testsuite/pyunit/lsp/LanguageServer.py | 14 |
4 files changed, 5 insertions, 9 deletions
diff --git a/testsuite/pyunit/lsp/005opterr/cmds.json b/testsuite/pyunit/lsp/006opterr/cmds.json index 1d95b1da4..1d95b1da4 100644 --- a/testsuite/pyunit/lsp/005opterr/cmds.json +++ b/testsuite/pyunit/lsp/006opterr/cmds.json diff --git a/testsuite/pyunit/lsp/005opterr/hdl-prj.json b/testsuite/pyunit/lsp/006opterr/hdl-prj.json index 9d2798bd1..9d2798bd1 100644 --- a/testsuite/pyunit/lsp/005opterr/hdl-prj.json +++ b/testsuite/pyunit/lsp/006opterr/hdl-prj.json diff --git a/testsuite/pyunit/lsp/005opterr/replies.json b/testsuite/pyunit/lsp/006opterr/replies.json index e32ae2017..e32ae2017 100644 --- a/testsuite/pyunit/lsp/005opterr/replies.json +++ b/testsuite/pyunit/lsp/006opterr/replies.json diff --git a/testsuite/pyunit/lsp/LanguageServer.py b/testsuite/pyunit/lsp/LanguageServer.py index a89117991..251b9c9a8 100644 --- a/testsuite/pyunit/lsp/LanguageServer.py +++ b/testsuite/pyunit/lsp/LanguageServer.py @@ -88,7 +88,7 @@ class JSONTest(TestCase): errs = 0 json_res = [] - for r in ref: + for i, r in enumerate(ref): rep = ls.read_request() if rep is None: print('FAIL: number of reply does not match') @@ -100,7 +100,8 @@ class JSONTest(TestCase): # self.assertEqual(rep, r, "reply does not match for {!s}".format(requestFile)) if rep != r: print(self.__class__.__name__) - show_diffs('', r, rep) + show_diffs("[{}]".format(i), r, rep) + #errs += 1 rep = ls.read_request() self.assertIsNone(rep, "Too many replies.") @@ -156,18 +157,13 @@ class Test005_Create(JSONTest): self._RequestResponse("cmds.json", "replies.json") -# FIXME: is this case 6? -class Test005_Option_Error(JSONTest): - subdir = Path("005opterr") +class Test006_Option_Error(JSONTest): + subdir = Path("006opterr") def test_Request_Response(self): self._RequestResponse("cmds.json", "replies.json") -#class Test006_?????(JSONTest): -# _CASE = Path("006?????") - - class Test007_Error_Project(JSONTest): subdir = Path("007errprj") |