File: run-test.sh

package info (click to toggle)
asis 2018-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 13,528 kB
  • sloc: ada: 155,205; makefile: 297; sh: 67; xml: 48; csh: 10
file content (23 lines) | stat: -rwxr-xr-x 710 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/csh -fex

echo $PATH
which gcc

echo xsd | asistant -o5 > ada-schema.xsd
# runs the xsd command in asistant to
# generate an XML Schema.
#  -o5 means exit asistant after running the script.

git diff ada-schema.xsd

xmllint --schema ada-schema.xsd root_package.ads.hand-written.xml --noout

gcc -c -gnatct root_package.ads
gcc -c -gnatct root_package-child_package.ads
#../avatox -m. *.ad[sb] -I../../gnat-bld/local/include/asis
../avatox -m. root_package.ads -I../../gnat-bld/local/include/asis
git diff root_package.ads.xml
xmllint --schema ada-schema.xsd root_package.ads.xml --noout

#git add ada-schema.xsd root_package.ads.xml
#git commit -m "automatic commit" ada-schema.xsd root_package.ads.xml