diff options
Diffstat (limited to 'tests/auto/qmake/testdata/export_across_file_boundaries')
4 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/qmake/testdata/export_across_file_boundaries/.qmake.cache b/tests/auto/qmake/testdata/export_across_file_boundaries/.qmake.cache new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/tests/auto/qmake/testdata/export_across_file_boundaries/.qmake.cache diff --git a/tests/auto/qmake/testdata/export_across_file_boundaries/features/default_pre.prf b/tests/auto/qmake/testdata/export_across_file_boundaries/features/default_pre.prf new file mode 100644 index 0000000000..123f9bc53d --- /dev/null +++ b/tests/auto/qmake/testdata/export_across_file_boundaries/features/default_pre.prf @@ -0,0 +1,7 @@ +defineTest(setVar) { + eval($${1}=bar) + export($$1) +} + +setVar(FOO) + diff --git a/tests/auto/qmake/testdata/export_across_file_boundaries/foo.pro b/tests/auto/qmake/testdata/export_across_file_boundaries/foo.pro new file mode 100644 index 0000000000..c3196cbceb --- /dev/null +++ b/tests/auto/qmake/testdata/export_across_file_boundaries/foo.pro @@ -0,0 +1,17 @@ +!equals(FOO,bar) { + message( "FAILED: export() invisible from default_pre.prf to foo.pro" ) +} + +O_FOO=$$fromfile(oink.pri,FOO) +O_BAR=$$fromfile(oink.pri,BAR) + +!equals(O_BAR,bar) { + message( "FAILED: export() invisible from oink.pri through \$$fromfile()" ) +} + +!equals(O_FOO,bar) { + message( "FAILED: export() invisible from default_pre.prf through \$$fromfile()" ) +} + + + diff --git a/tests/auto/qmake/testdata/export_across_file_boundaries/oink.pri b/tests/auto/qmake/testdata/export_across_file_boundaries/oink.pri new file mode 100644 index 0000000000..cbd2d0f7d0 --- /dev/null +++ b/tests/auto/qmake/testdata/export_across_file_boundaries/oink.pri @@ -0,0 +1 @@ +setVar(BAR) |