summaryrefslogtreecommitdiff
path: root/debian/tests/link-to-library
diff options
context:
space:
mode:
Diffstat (limited to 'debian/tests/link-to-library')
-rwxr-xr-xdebian/tests/link-to-library34
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/tests/link-to-library b/debian/tests/link-to-library
new file mode 100755
index 0000000..2f09881
--- /dev/null
+++ b/debian/tests/link-to-library
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+TMPDIR=`mktemp -d`
+
+
+cd ${TMPDIR}
+cat > source_file.cc << EOF
+#include <iostream>
+
+int main() {
+ std::cout << "Hello world. Just tested that it is possible to\nlink with -lfyba, -lfygm and -lfyut without\nanything written to stderr." << std::endl;
+}
+
+EOF
+
+RET=0
+
+g++ -o source_file source_file.cc -lfyba -lfygm -lfyut
+RETSTEP=$?
+if [ "$RETSTEP" != "0" ] ; then
+ RET=1
+fi
+
+./source_file
+RETSTEP=$?
+if [ "$RETSTEP" != "0" ] ; then
+ RET=1
+fi
+
+readelf -d ./source_file
+
+rm -rf ${TMPDIR}
+
+exit $RET