-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configurator tests: toy pkg-config cleaned and renamed into pkgconf
Signed-off-by: Pierre Boutillier <pierre.boutillier@laposte.net>
- Loading branch information
Showing
4 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 12 additions & 10 deletions
22
otherlibs/configurator/test/blackbox-tests/pkg-config-args.t/run.t
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,36 @@ | ||
These tests show that setting `PKG_CONFIG_ARGN` passes extra args to `pkg-config` | ||
|
||
$ dune build 2>&1 | awk '/run:.*bin\/pkg-config/{a=1}/stderr/{a=0}a' | ||
run: $TESTCASE_ROOT/_build/default/.bin/pkg-config --print-errors dummy-pkg | ||
$ dune build 2>&1 | awk '/run:.*bin\/pkgconf/{a=1}/stderr/{a=0}a' | ||
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/pkg-config --cflags dummy-pkg | ||
run: $TESTCASE_ROOT/_build/default/.bin/pkgconf --cflags dummy-pkg | ||
-> process exited with code 0 | ||
-> stdout: | ||
| --cflags | ||
| dummy-pkg | ||
run: $TESTCASE_ROOT/_build/default/.bin/pkg-config --libs dummy-pkg | ||
run: $TESTCASE_ROOT/_build/default/.bin/pkgconf --libs dummy-pkg | ||
-> process exited with code 0 | ||
-> stdout: | ||
| --libs | ||
| dummy-pkg | ||
|
||
$ dune clean | ||
$ PKG_CONFIG_ARGN="--static" dune build 2>&1 | awk '/run:.*bin\/pkg-config/{a=1}/stderr/{a=0}a' | ||
run: $TESTCASE_ROOT/_build/default/.bin/pkg-config --print-errors dummy-pkg | ||
$ PKG_CONFIG_ARGN="--static" dune build 2>&1 | awk '/run:.*bin\/pkgconf/{a=1}/stderr/{a=0}a' | ||
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/pkg-config --static --cflags dummy-pkg | ||
run: $TESTCASE_ROOT/_build/default/.bin/pkgconf --static --cflags dummy-pkg | ||
-> process exited with code 0 | ||
-> stdout: | ||
| --static--cflags | ||
| --static | ||
| --cflags | ||
| dummy-pkg | ||
run: $TESTCASE_ROOT/_build/default/.bin/pkg-config --static --libs dummy-pkg | ||
run: $TESTCASE_ROOT/_build/default/.bin/pkgconf --static --libs dummy-pkg | ||
-> process exited with code 0 | ||
-> stdout: | ||
| --static--libs | ||
| --static | ||
| --libs | ||
| dummy-pkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters