diff --git a/examples/mvvmcore/SampleCore/samplecore_de.ts b/examples/mvvmcore/SampleCore/samplecore_de.ts index b07c7e3..c2be71f 100644 --- a/examples/mvvmcore/SampleCore/samplecore_de.ts +++ b/examples/mvvmcore/SampleCore/samplecore_de.ts @@ -106,7 +106,7 @@ settings.xml - + &Check me diff --git a/tests/auto/mvvmcore/settingsgenerator/test_de.ts b/tests/auto/mvvmcore/settingsgenerator/test_de.ts index 2303444..149e527 100644 --- a/tests/auto/mvvmcore/settingsgenerator/test_de.ts +++ b/tests/auto/mvvmcore/settingsgenerator/test_de.ts @@ -12,7 +12,7 @@ generatortest.xml - + translate me @@ -20,7 +20,7 @@ import_config.xml - + 42 @@ -36,7 +36,7 @@ some_context - + Hello World @@ -44,7 +44,7 @@ translatortest.xml - + dummy diff --git a/tests/auto/qml/qmlsettingsgenerator/tst_qmlsettingsgenerator.qmlc b/tests/auto/qml/qmlsettingsgenerator/tst_qmlsettingsgenerator.qmlc index 6d26ab3..e23dd63 100644 Binary files a/tests/auto/qml/qmlsettingsgenerator/tst_qmlsettingsgenerator.qmlc and b/tests/auto/qml/qmlsettingsgenerator/tst_qmlsettingsgenerator.qmlc differ diff --git a/tests/auto/testrun.pri b/tests/auto/testrun.pri index aeba578..bfcbf25 100644 --- a/tests/auto/testrun.pri +++ b/tests/auto/testrun.pri @@ -4,9 +4,10 @@ win32:!ReleaseBuild:!DebugBuild { runtarget.recurse_target = run-tests QMAKE_EXTRA_TARGETS += runtarget } else { - win32:!win32-g++ { - oneshell.target = .ONESHELL + oneshell.target = .ONESHELL + QMAKE_EXTRA_TARGETS += oneshell + win32:!win32-g++ { CONFIG(debug, debug|release): outdir_helper = debug CONFIG(release, debug|release): outdir_helper = release runtarget.target = run-tests @@ -18,45 +19,29 @@ win32:!ReleaseBuild:!DebugBuild { runtarget.commands += $$escape_expand(\\n\\t)start /w call $(DESTDIR_TARGET) ^> $${outdir_helper}\\test.log ^|^| echo FAIL ^> $${outdir_helper}\\fail ^& exit 0 runtarget.commands += $$escape_expand(\\n\\t)type $${outdir_helper}\\test.log runtarget.commands += $$escape_expand(\\n\\t)@if exist $${outdir_helper}\\fail exit 42 - QMAKE_EXTRA_TARGETS += oneshell runtarget + QMAKE_EXTRA_TARGETS += runtarget } else { + win32-g++: QMAKE_DIRLIST_SEP = ";" + runtarget.commands += export PATH=\"$$shadowed($$dirname(_QMAKE_CONF_))/bin/:$$[QT_INSTALL_BINS]:$(PATH)\" + runtarget.commands += $$escape_expand(\\n\\t)export QT_PLUGIN_PATH=\"$$shadowed($$dirname(_QMAKE_CONF_))/plugins/$${QMAKE_DIRLIST_SEP}$(QT_PLUGIN_PATH)\" + runtarget.commands += $$escape_expand(\\n\\t)export QML2_IMPORT_PATH=\"$$shadowed($$dirname(_QMAKE_CONF_))/qml/$${QMAKE_DIRLIST_SEP}$(QML2_IMPORT_PATH)\" + win32-g++: QMAKE_DIRLIST_SEP = ":" + linux|win32-g++ { - runtarget_env_lib.target = run-tests - runtarget_env_lib.depends = export LD_LIBRARY_PATH := $$shadowed($$dirname(_QMAKE_CONF_))/lib/:$$[QT_INSTALL_LIBS]:$(LD_LIBRARY_PATH) - runtarget_env_qpa.target = run-tests - runtarget_env_qpa.depends += export QT_QPA_PLATFORM := minimal - QMAKE_EXTRA_TARGETS += runtarget_env_lib - !win32-g++: QMAKE_EXTRA_TARGETS += runtarget_env_qpa + runtarget.commands += $$escape_expand(\\n\\t)export LD_LIBRARY_PATH=\"$$shadowed($$dirname(_QMAKE_CONF_))/lib/:$$[QT_INSTALL_LIBS]:$(LD_LIBRARY_PATH)\" + runtarget.commands += $$escape_expand(\\n\\t)export QT_QPA_PLATFORM=minimal } else:mac { - runtarget_env_lib.target = run-tests - runtarget_env_lib.depends = export DYLD_LIBRARY_PATH := $$shadowed($$dirname(_QMAKE_CONF_))/lib/:$$[QT_INSTALL_LIBS]:$(DYLD_LIBRARY_PATH) - runtarget_env_framework.target = run-tests - runtarget_env_framework.depends = export DYLD_FRAMEWORK_PATH := $$shadowed($$dirname(_QMAKE_CONF_))/lib/:$$[QT_INSTALL_LIBS]:$(DYLD_FRAMEWORK_PATH) - QMAKE_EXTRA_TARGETS += \ - runtarget_env_lib \ - runtarget_env_framework + runtarget.commands += $$escape_expand(\\n\\t)export DYLD_LIBRARY_PATH=\"$$shadowed($$dirname(_QMAKE_CONF_))/lib/:$$[QT_INSTALL_LIBS]:$(DYLD_LIBRARY_PATH)\" + runtarget.commands += $$escape_expand(\\n\\t)export DYLD_FRAMEWORK_PATH=\"$$shadowed($$dirname(_QMAKE_CONF_))/lib/:$$[QT_INSTALL_LIBS]:$(DYLD_FRAMEWORK_PATH)\" } - win32-g++: QMAKE_DIRLIST_SEP = ";" - runtarget_env_bin.target = run-tests - runtarget_env_bin.depends = export PATH := $$shadowed($$dirname(_QMAKE_CONF_))/bin/:$$[QT_INSTALL_BINS]:$(PATH) - runtarget_env_plugins.target = run-tests - runtarget_env_plugins.depends = export QT_PLUGIN_PATH := $$shadowed($$dirname(_QMAKE_CONF_))/plugins/$${QMAKE_DIRLIST_SEP}$(QT_PLUGIN_PATH) - runtarget_env_qml.target = run-tests - runtarget_env_qml.depends += export QML2_IMPORT_PATH := $$shadowed($$dirname(_QMAKE_CONF_))/qml/$${QMAKE_DIRLIST_SEP}$(QML2_IMPORT_PATH) - QMAKE_EXTRA_TARGETS += \ - runtarget_env_bin \ - runtarget_env_plugins \ - runtarget_env_qml - win32-g++: QMAKE_DIRLIST_SEP = ":" - runtarget.target = run-tests win32-g++ { runtarget.depends += $(DESTDIR_TARGET) - runtarget.commands = ./$(DESTDIR_TARGET) + runtarget.commands += $$escape_expand(\\n\\t)./$(DESTDIR_TARGET) } else { runtarget.depends += $(TARGET) - runtarget.commands = ./$(TARGET) + runtarget.commands += $$escape_expand(\\n\\t)./$(TARGET) } QMAKE_EXTRA_TARGETS += runtarget }