Skip to content

Commit

Permalink
Merge branch 'topic/fix_json_gen' into 'master'
Browse files Browse the repository at this point in the history
Fix `json_gen` after changes in the VSS API

Closes #231

See merge request eng/ide/VSS!309
  • Loading branch information
reznikmm committed Jan 22, 2024
2 parents 3b610a8 + 4f2d891 commit fbe24ce
Show file tree
Hide file tree
Showing 16 changed files with 37,100 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ build_and_test_dev:
# Build VSS and run tests
( eval $(anod printenv --sandbox-dir /it/wave gnatall) ;\
make COVERAGE_MODE=gcov build-libs-static check ;\
make COVERAGE_MODE=gcov build-libs-static check misc ;\
make -C testsuite/json_schema ;\
ENABLE_GCOV=y gcovr --print-summary --cobertura gcov.xml )
make clean
Expand Down
2 changes: 1 addition & 1 deletion testsuite/common/test_support.ads
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
-- Test_Support.Run_Testsuite (Testsuite'Access, "test of Boolean");
-- end Test_Driver;
--
-- Call of Assert with False contition terminates execution of the testcase.
-- Call of Assert with False condition terminates execution of the testcase.
-- Testcase execution can be terminated by the call of Fail subprogram, it
-- means that testcase fails, or by the call of Skip subprogram, it means
-- that testcase is not executed.
Expand Down
10 changes: 10 additions & 0 deletions testsuite/json_schema/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
DIRECTORIES := dap lsp
JSON_GEN := $(abspath ../../.objs/tools/gen_json)
GOT_FILE := $(shell mktemp -t got-XXXXXX.txt)

all: $(foreach dir,$(DIRECTORIES),$(dir)-run)

%-run:
cd $*; $(JSON_GEN) `cat cmd.txt` > $(GOT_FILE)
diff -u $*/expected.txt $(GOT_FILE)
rm -f $(GOT_FILE)
4 changes: 4 additions & 0 deletions testsuite/json_schema/dap/cmd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
--root-package DAP.Tools
--enum-package Enum
--header-file header.adt
debugAdapterProtocol.json
Loading

0 comments on commit fbe24ce

Please sign in to comment.