Commit 43be8fe3 authored by mvogt's avatar mvogt

Merge pull request #6 from matthewvogt/suite-rename

[transfer-engine] Install tests to independent location with Qt5
parents bcab0a38 422e8a44
......@@ -80,7 +80,7 @@ Unit tests for Nemo TransferEngine
%files tests
%defattr(-,root,root,-)
/opt/tests/nemo-transfer-engine/*
/opt/tests/nemo-transfer-engine-qt5/*
%package doc
Summary: Documentation for Nemo TransferEngine
......
equals(QT_MAJOR_VERSION, 4): PACKAGENAME = nemo-transfer-engine
equals(QT_MAJOR_VERSION, 5): PACKAGENAME = nemo-transfer-engine-qt5
TEMPLATE = app
TARGET = ut_nemo-transfer-engine
DEPENDPATH += .
......@@ -31,12 +34,24 @@ SOURCES += \
QT += testlib
PATH = /opt/tests/nemo-transfer-engine
PATH = /opt/tests/$${PACKAGENAME}
tests_xml.target = tests.xml
tests_xml.depends = $$PWD/tests.xml.in
tests_xml.commands = sed -e "s:@PACKAGENAME@:$${PACKAGENAME}:g" $< > $@
QMAKE_EXTRA_TARGETS = tests_xml
QMAKE_CLEAN += $$tests_xml.target
PRE_TARGETDEPS += $$tests_xml.target
tests_install.depends = tests_xml
tests_install.path = $$PATH
tests_install.files = $$tests_xml.target
tests_install.CONFIG += no_check_exist
test_def.files = tests.xml
test_def.path = $$PATH
resources.files = images/testimage.jpg
resources.path = $$PATH/images
target.path = $$PATH
INSTALLS += target resources test_def
INSTALLS += target resources tests_install
<?xml version="1.0" encoding="UTF-8"?>
<testdefinition version="1.0">
<suite name="NemoTransferEngine" domain="middleware">
<suite name="@PACKAGENAME@-tests" domain="middleware">
<description>Nemo Transfer Engine automatic tests</description>
<set name="unit-tests" feature="Internal UI Components">
<set name="@PACKAGENAME@-test0" feature="Internal UI Components">
<description>Nemo Transfer Engine unit tests</description>
<case manual="false" name="enginetests">
<step>/opt/tests/nemo-transfer-engine/ut_nemo-transfer-engine</step>
<step>/opt/tests/@PACKAGENAME@/ut_nemo-transfer-engine</step>
</case>
</set>
</suite>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment