File: gmp

package info (click to toggle)
libgnatcoll-python 21.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,088 kB
  • sloc: ada: 14,431; python: 1,493; ansic: 1,378; makefile: 173; sh: 94
file content (20 lines) | stat: -rw-r--r-- 339 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
#!/bin/sh
set -C -e -u

cp gmp/examples/* "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"

mkdir obj
gprbuild -v gmp_examples.gpr

./isprime > result1 <<EOF
7
6

EOF

diff result1 - <<EOF
Enter candidate number (return to quit): 7 is a prime
Enter candidate number (return to quit): 6 is not a prime
Enter candidate number (return to quit): 
EOF