Skip to content

Commit

Permalink
configurator tests with personality
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Boutillier <pierre.boutillier@laposte.net>
  • Loading branch information
pirbo committed Oct 18, 2024
1 parent c8e3b2d commit 92a4c9d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
These tests show that setting `PKG_CONFIG_ARGN` passes extra args to `pkg-config`

$ dune build 2>&1 | awk '/run:.*bin\/pkgconf/{a=1}/stderr/{a=0}a'
$ dune build 2>&1 | awk '/run:.*bin\/pkgconf/{a=1}/stderr/{a=0}a' | sed 's/--personality=[^ ]*/--personality=TARGET/g'
run: $TESTCASE_ROOT/_build/default/.bin/pkgconf --print-errors dummy-pkg
-> process exited with code 0
-> stdout:
| dummy-pkg
run: $TESTCASE_ROOT/_build/default/.bin/pkgconf --cflags dummy-pkg
run: $TESTCASE_ROOT/_build/default/.bin/pkgconf --personality=TARGET --cflags dummy-pkg
-> process exited with code 0
-> stdout:
| --personality=TARGET
| --cflags
| dummy-pkg
run: $TESTCASE_ROOT/_build/default/.bin/pkgconf --libs dummy-pkg
run: $TESTCASE_ROOT/_build/default/.bin/pkgconf --personality=TARGET --libs dummy-pkg
-> process exited with code 0
-> stdout:
| --personality=TARGET
| --libs
| dummy-pkg

Expand Down

0 comments on commit 92a4c9d

Please sign in to comment.