Skip to content

Commit

Permalink
[transfer-engine] Install tests to independent location with Qt5
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewvogt committed Jun 19, 2013
1 parent bcab0a3 commit 422e8a4
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion rpm/transfer-engine-qt5.spec
Expand Up @@ -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
Expand Down
23 changes: 19 additions & 4 deletions tests/tests.pro
@@ -1,3 +1,6 @@
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 += .
Expand Down Expand Up @@ -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
6 changes: 3 additions & 3 deletions tests/tests.xml → tests/tests.xml.in
@@ -1,11 +1,11 @@
<?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>
Expand Down

0 comments on commit 422e8a4

Please sign in to comment.