File: link-with-shared

package info (click to toggle)
libaunit 18-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,100 kB
  • sloc: ada: 5,325; makefile: 152; sh: 94; xml: 13
file content (23 lines) | stat: -rw-r--r-- 354 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -C -e -f -u
cd "$ADTTMP"

MAIN=test

cat > "$MAIN.adb" <<EOF
with AUnit.Options; use AUnit.Options;
procedure Test is
   O : constant AUnit_Options := Default_Options;
begin
   null;
end Test;
EOF
cat > p.gpr <<EOF
with "aunit";
project P is
   for Source_Dirs use (".");
   for Main use ("$MAIN.adb");
end P;
EOF
gprbuild -v p.gpr
./$MAIN