Skip to content

Commit 3ed247f

Browse files
committed
Merge branch 'po/lal'
* po/lal: Ensure tests are using different ports. Minor code clean-up and reformatting. Code refactoring to avoid specific option to build. New implementation of ada2wsdl based on LaL. Minor output reformatting. Ensure we do use a different port than other tests. Setup LaL which replaces ASIS.
2 parents 509796d + d70b649 commit 3ed247f

File tree

111 files changed

+1734
-2261
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+1734
-2261
lines changed

Makefile

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
############################################################################
22
# Ada Web Server #
33
# #
4-
# Copyright (C) 2003-2017, AdaCore #
4+
# Copyright (C) 2003-2020, AdaCore #
55
# #
66
# This is free software; you can redistribute it and/or modify it #
77
# under terms of the GNU General Public License as published by the #
@@ -56,7 +56,7 @@ endif
5656
all: build
5757

5858
ALL_OPTIONS = $(MAKE_OPT) SOCKET="$(SOCKET)" XMLADA="$(XMLADA)" \
59-
ASIS="$(ASIS)" EXEEXT="$(EXEEXT)" LDAP="$(LDAP)" DEBUG="$(DEBUG)" \
59+
EXEEXT="$(EXEEXT)" LDAP="$(LDAP)" DEBUG="$(DEBUG)" \
6060
RM="$(RM)" CP="$(CP)" MKDIR="$(MKDIR)" SED="$(SED)" GCC="$(GCC)" \
6161
GPRBUILD="$(GPRBUILD)" ZLIB="$(ZLIB)" BDIR="$(BDIR)" \
6262
prefix="$(prefix)" ENABLE_SHARED="$(ENABLE_SHARED)" \
@@ -112,14 +112,14 @@ else
112112
PRJ_LDAP=Disabled
113113
endif
114114

115-
# ASIS
115+
# LAL
116116

117-
ifeq (${ASIS}, true)
118-
PRJ_ASIS=Installed
119-
GEXT_MODULE := $(GEXT_MODULE) gasis_setup
117+
ifeq (${LAL}, true)
118+
PRJ_LAL=Installed
119+
GEXT_MODULE := $(GEXT_MODULE) lal_setup
120120
else
121-
PRJ_ASIS=Disabled
122-
GEXT_MODULE := $(GEXT_MODULE) gasis_dummy
121+
PRJ_LAL=Disabled
122+
GEXT_MODULE := $(GEXT_MODULE) lal_dummy
123123
endif
124124

125125
# Sockets
@@ -147,7 +147,7 @@ I_INC = $(TPREFIX)/include/aws
147147
GALL_OPTIONS := $(ALL_OPTIONS) \
148148
PRJ_BUILD="$(PRJ_BUILD)" \
149149
PRJ_XMLADA="$(PRJ_XMLADA)" \
150-
PRJ_ASIS="$(PRJ_ASIS)" \
150+
PRJ_LAL="$(PRJ_LAL)" \
151151
PRJ_SOCKLIB="$(PRJ_SOCKLIB)" \
152152
PRJ_LDAP="$(PRJ_LDAP)" \
153153
PRJ_TARGET="$(PRJ_TARGET)" \
@@ -164,10 +164,10 @@ ${MODULES_CHECK}: force
164164
${MAKE} -C ${@:%_check=%} check $(GALL_OPTIONS)
165165

166166
GPROPTS = -XPRJ_BUILD=$(PRJ_BUILD) -XPRJ_SOCKLIB=$(PRJ_SOCKLIB) \
167-
-XPRJ_ASIS=$(PRJ_ASIS) -XPRJ_LDAP=$(PRJ_LDAP) \
168-
-XPRJ_XMLADA=$(PRJ_XMLADA) -XTARGET=$(TARGET) \
167+
-XPRJ_LDAP=$(PRJ_LDAP) \
168+
-XPRJ_XMLADA=$(PRJ_XMLADA) -XPRJ_LAL=$(PRJ_LAL) \
169169
-XPROCESSORS=$(PROCESSORS) -XSOCKET=$(SOCKET) \
170-
-XPRJ_TARGET=$(PRJ_TARGET)
170+
-XPRJ_TARGET=$(PRJ_TARGET) -XTARGET=$(TARGET) \
171171

172172
GPR_STATIC = -XLIBRARY_TYPE=static -XXMLADA_BUILD=static
173173
GPR_SHARED = -XLIBRARY_TYPE=relocatable -XXMLADA_BUILD=relocatable
@@ -276,16 +276,16 @@ check: $(MODULES_CHECK)
276276

277277
PRJDIR = $(BROOTDIR)/projects
278278

279-
gasis_dummy:
280-
echo "abstract project AWS_ASIS is" > $(PRJDIR)/aws_asis.gpr;
281-
echo " for Source_Dirs use ();" >> $(PRJDIR)/aws_asis.gpr;
282-
echo "end AWS_ASIS;" >> $(PRJDIR)/aws_asis.gpr;
279+
lal_dummy:
280+
echo "abstract project AWS_LAL is" > $(PRJDIR)/aws_lal.gpr;
281+
echo " for Source_Dirs use ();" >> $(PRJDIR)/aws_lal.gpr;
282+
echo "end AWS_LAL;" >> $(PRJDIR)/aws_lal.gpr;
283283

284-
gasis_setup:
285-
echo 'with "asis";' > $(PRJDIR)/aws_asis.gpr
286-
echo "abstract project AWS_ASIS is" >> $(PRJDIR)/aws_asis.gpr
287-
echo " for Source_Dirs use ();" >> $(PRJDIR)/aws_asis.gpr
288-
echo "end AWS_ASIS;" >> $(PRJDIR)/aws_asis.gpr
284+
lal_setup:
285+
echo 'with "libadalang";' > $(PRJDIR)/aws_lal.gpr
286+
echo "abstract project AWS_LAL is" >> $(PRJDIR)/aws_lal.gpr
287+
echo " for Source_Dirs use ();" >> $(PRJDIR)/aws_lal.gpr
288+
echo "end AWS_LAL;" >> $(PRJDIR)/aws_lal.gpr
289289

290290
gxmlada_dummy:
291291
echo "abstract project AWS_XMLADA is" > $(PRJDIR)/aws_xmlada.gpr
@@ -337,7 +337,7 @@ gen_setup:
337337
echo "ENABLE_SHARED=$(ENABLE_SHARED)" >> makefile.setup
338338
echo "ZLIB=$(ZLIB)" >> makefile.setup
339339
echo "XMLADA=$(XMLADA)" >> makefile.setup
340-
echo "ASIS=$(ASIS)" >> makefile.setup
340+
echo "LAL=$(LAL)" >> makefile.setup
341341
echo "NETLIB=$(NETLIB)" >> makefile.setup
342342
echo "SOCKET=$(SOCKET)" >> makefile.setup
343343
echo "LDAP=$(LDAP)" >> makefile.setup

docs/source/using_wsdl.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ Creating WSDL documents
4141

4242
.. index:: ada2wsdl
4343

44-
Note that this tool is based on `ASIS`.
44+
Note that this tool is based on `LibAdaLang`.
4545

4646
.. _Using_ada2wsdl:
4747

4848
Using ada2wsdl
4949
--------------
5050

5151
`ada2wsdl` can be used on any Ada spec file to generated a
52-
`WSDL` document. The Ada spec is parsed using `ASIS`.
52+
`WSDL` document. The Ada spec is parsed using `LibAdaLang`.
5353

5454
.. highlight:: sh
5555

@@ -494,10 +494,6 @@ ada2wsdl
494494
*-lit*
495495
Generate literal's style binding (default is encoded)
496496

497-
*-I path*
498-
Add path option for the `ASIS` compilation step. This option can
499-
appear any number of time on the command line.
500-
501497
*-n name*
502498
Specify the schema name space root name. The default value is "soapaws".
503499

makefile.checks

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ ifeq ($(XMLADA), )
2323
XMLADA=false
2424
endif
2525

26-
ifeq ($(ASIS), )
27-
ASIS=false
26+
ifeq ($(LAL), )
27+
LAL=false
2828
endif
2929

3030
ifneq ($(ZLIB), true)
@@ -35,8 +35,8 @@ ifeq ($(PRJ_TARGET), vxworks)
3535
ifeq ($(ENABLE_SHARED), true)
3636
$(error shared libraries not supported on cross platforms)
3737
endif
38-
ifeq ($(ASIS), true)
39-
$(error ASIS not supported on cross platforms)
38+
ifeq ($(LAL), true)
39+
$(error LAL not supported on cross platforms)
4040
endif
4141
ifeq ($(LDAP), true)
4242
$(error LDAP not supported on cross platforms)
@@ -55,9 +55,9 @@ $(error DEFAULT_LIBRARY_TYPE variable must be set to static or relocatable)
5555
endif
5656
endif
5757

58-
ifneq ($(ASIS), true)
59-
ifneq ($(ASIS), false)
60-
$(error ASIS variable must be set to true or false)
58+
ifneq ($(LAL), true)
59+
ifneq ($(LAL), false)
60+
$(error LAL variable must be set to true or false)
6161
endif
6262
endif
6363

@@ -73,9 +73,9 @@ $(error LDAP variable must be set to true or false)
7373
endif
7474
endif
7575

76-
ifeq ($(ASIS), true)
76+
ifeq ($(LAL), true)
7777
ifeq ($(XMLADA), false)
78-
$(error ASIS is set and requires XMLADA to be installed. \
78+
$(error LaL is set and requires XMLADA to be installed. \
7979
You may be missing XMLADA=true)
8080
endif
8181
endif

makefile.conf

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,19 @@ XMLADA = false
6161
endif
6262

6363
##############################################################################
64-
# ASIS optional, needed if you want to build ada2wsdl tool. This tool can be
65-
# used to create a WSDL document from an Ada spec. Set ASIS to true to
66-
# activate ASIS support. You must also set ADA_PROJECT_PATH to point to the
67-
# ASIS project files if not installed in the standard location.
64+
# LAL optional, needed if you want to build ada2wsdl tool. This tool can be
65+
# used to create a WSDL document from an Ada spec. Set LAL to true to
66+
# activate LAL support. You must also set ADA_PROJECT_PATH to point to the
67+
# LAL project files if not installed in the standard location.
6868
#
69-
# If you activate ASIS you also need to activate XMLADA above.
69+
# If you activate LAL you also need to activate XMLADA above.
7070
#
71-
# ASIS = [true|false]
71+
# LAL = [true|false]
7272
#
73-
ifeq ($(shell gnat ls -Pasis 2>&1 | grep 'project file .* not found'),)
74-
ASIS = true
73+
ifeq ($(shell gnat ls -Plibadalang 2>&1 | grep 'project file .* not found'),)
74+
LAL = true
7575
else
76-
ASIS = false
76+
LAL = false
7777
endif
7878

7979
##############################################################################

regtests/0103_soapcheck/test.opt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
!asis DEAD
1+
!lal DEAD
22
!xmlada DEAD

regtests/0103_soapcheck/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from test_support import *
22

33
exec_cmd('ada2wsdl',
4-
['-q', '-f', '-I.', '-Psoapcheck', 'pck.ads', '-o', 'pck.wsdl'])
4+
['-q', '-f', '-Psoapcheck', 'pck.ads', '-o', 'pck.wsdl'])
55
exec_cmd('wsdl2aws',
66
['-q', '-f', '-cb', '-spec', 'pck', 'pck.wsdl'])
77

regtests/0162_wsdl_1_main/test.opt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
!asis DEAD
1+
!lal DEAD
22
!xmlada DEAD

regtests/0162_wsdl_1_main/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from test_support import *
22

33
exec_cmd('ada2wsdl',
4-
['-q', '-f', '-I.', '-Pwsdl_1_main',
4+
['-q', '-f', '-Pwsdl_1_main',
55
'-a', 'http://localhost:7701', 'wsdl_1.ads', '-o', 'wsdl_1.wsdl'])
66
exec_cmd('wsdl2aws',
77
['-q', '-f', '-cb', '-types', 'wsdl_1', 'wsdl_1.wsdl'])

regtests/0163_wsdl_2_main/test.opt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
!asis DEAD
1+
!lal DEAD
22
!xmlada DEAD

regtests/0163_wsdl_2_main/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from test_support import *
22

33
exec_cmd('ada2wsdl',
4-
['-q', '-f', '-I.', '-Pwsdl_2_main',
4+
['-q', '-f', '-Pwsdl_2_main',
55
'-a', 'http://localhost:7702', 'wsdl_2.ads', '-o', 'wsdl_2.wsdl'])
66
exec_cmd('wsdl2aws',
77
['-q', '-f', '-cb', '-types', 'wsdl_2', 'wsdl_2.wsdl'])

0 commit comments

Comments
 (0)