Skip to content

Commit 2a464e2

Browse files
terceirosorah
authored andcommitted
Add autopkgtest to test pkg_config
1 parent b9505a8 commit 2a464e2

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

debian/tests/control

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
Tests: run-all bundled-gems builtin-extensions
2-
Depends: @
1+
Tests: run-all bundled-gems builtin-extensions rubyconfig pkg-config
2+
Depends: @, libffi-dev
3+
Restrictions: allow-stderr

debian/tests/pkg-config

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/sh
2+
3+
set -eu
4+
5+
ruby="${1:-ruby3.1}"
6+
cd "${AUTOPKGTEST_TMP:-/tmp}"
7+
8+
set -x
9+
$ruby -rmkmf -e 'pkg_config("libffi") or raise "pkg_config does not work"'

0 commit comments

Comments
 (0)