File: runtime-libs

package info (click to toggle)
gcc-13 13.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 94,480 kB
  • sloc: makefile: 2,712; python: 1,107; sh: 955; awk: 23; perl: 18; cpp: 14
file content (29 lines) | stat: -rwxr-xr-x 582 bytes parent folder | download | duplicates (17)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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"