debian/tests/iconv
raw| 1 | #!/bin/sh |
| 2 | set -C -e -f -u |
| 3 | |
| 4 | cd "$AUTOPKGTEST_TMP" |
| 5 | |
| 6 | cat > proc.adb <<EOF |
| 7 | with GNATCOLL.Iconv; |
| 8 | procedure Proc is |
| 9 | begin |
| 10 | pragma Assert (GNATCOLL.Iconv.Has_Iconv); |
| 11 | end Proc; |
| 12 | EOF |
| 13 | |
| 14 | cat > proj.gpr <<EOF |
| 15 | with "gnatcoll_iconv.gpr"; |
| 16 | project Proj is |
| 17 | for Main use ("proc.adb"); |
| 18 | package Compiler is |
| 19 | for Switches ("Ada") use ("-gnata"); |
| 20 | end Compiler; |
| 21 | end Proj; |
| 22 | EOF |
| 23 | |
| 24 | gprbuild -v proj.gpr |
| 25 | |
| 26 | ./proc |