File: 01.compile-and-run-test-program.t

package info (click to toggle)
jemalloc 5.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 5,648 kB
  • sloc: ansic: 62,360; perl: 4,214; sh: 3,716; makefile: 700; cpp: 374; python: 335; csh: 7
file content (20 lines) | stat: -rw-r--r-- 403 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

test_description="compile with jemalloc"

. /usr/share/sharness/sharness.sh

if [ -n "${DEB_HOST_GNU_TYPE:-}" ]; then
  CROSS_COMPILE="$DEB_HOST_GNU_TYPE-"
else
  CROSS_COMPILE=
fi

test_expect_success "compile test program against libjemalloc" "
  ${CROSS_COMPILE}gcc ../ex_stats_print.c -o ex_stats_print -ljemalloc
"
test_expect_success "run test program" "
 ./ex_stats_print
"

test_done