From a6e558cd25181b5a7d255b72452bb09400e8e945 Mon Sep 17 00:00:00 2001 From: Henner Zeller Date: Thu, 4 Nov 2021 02:40:15 -0700 Subject: [PATCH] Add test for symbol highlight. Signed-off-by: Henner Zeller --- verilog/tools/ls/verible-verilog-ls_test.sh | 39 ++++++++++++++++++--- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/verilog/tools/ls/verible-verilog-ls_test.sh b/verilog/tools/ls/verible-verilog-ls_test.sh index d015ec43d..0333dd51b 100755 --- a/verilog/tools/ls/verible-verilog-ls_test.sh +++ b/verilog/tools/ls/verible-verilog-ls_test.sh @@ -13,6 +13,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +set -u + [[ "$#" == 2 ]] || { echo "Expecting 2 positional arguments: lsp-server json-rpc-expect" exit 1 @@ -38,14 +40,23 @@ MSG_OUT=${TEST_TMPDIR:-/tmp/}/test-lsp-out-msg.txt # # TODO: maybe this awk-script should be replaced with something that allows # multi-line input with comment. -awk '{printf("Content-Length: %d\r\n\r\n%s", length($0), $0)}' > ${TMP_IN} < ${TMP_IN} < "${JSON_EXPECTED}" < "${JSON_EXPECTED}" <