| 1 |
#!/bin/sh |
| 2 |
|
| 3 |
set -e |
| 4 |
|
| 5 |
target=$(mktemp) |
| 6 |
|
| 7 |
echo "Compile and capture output of LilvWorldTest.c" |
| 8 |
if gcc debian/tests/LilvWorldTest.c -I/usr/include/lilv-0 $(pkgconf −−cflags lilv−0) $(pkgconf --libs lilv-0) -o "$target" 2>&1; then |
| 9 |
echo "Compilation: OK — binary written to $target" |
| 10 |
echo "Binary size: $(stat -c%s "$target") bytes" |
| 11 |
else |
| 12 |
echo "Compilation: FAILED" |
| 13 |
exit 1 |
| 14 |
fi |
| 15 |
|
| 16 |
echo "Run binary" |
| 17 |
if "$target"; then |
| 18 |
echo "Run: OK" |
| 19 |
else |
| 20 |
echo "Run: FAILED" |
| 21 |
exit 1 |
| 22 |
fi |
| 23 |
|
| 24 |
exit 0 |