initial import from Debian
version: 14.3.0-5 commit: bee30ab0fff2fd6af94c62376c8aa4221bb831e0
This commit is contained in:
29
debian/tests/runtime-libs
vendored
Executable file
29
debian/tests/runtime-libs
vendored
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
# autopkgtest check: start a "simple" program and check that
|
||||
# dynamic loading of modules works
|
||||
|
||||
set -e
|
||||
|
||||
|
||||
cd "$AUTOPKGTEST_TMP"
|
||||
|
||||
echo "Running exexutable linked with libgcc and libstdc++ (apt)..."
|
||||
if [ -x /usr/bin/apt ]; then
|
||||
apt=/usr/bin/apt
|
||||
elif [ -x /bin/apt ]; then
|
||||
apt=/bin/apt
|
||||
else
|
||||
echo "apt not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ldd $apt
|
||||
apt show libgcc-s1 libstdc++6
|
||||
|
||||
echo "Running dynamically linked executable (python3)..."
|
||||
python3 -c 'print("Hello World!")'
|
||||
echo "OK"
|
||||
|
||||
echo "Loading extension module..."
|
||||
python3 -c 'import _hashlib; print(_hashlib.__dict__)'
|
||||
echo "OK"
|
Reference in New Issue
Block a user