Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
transfer-engine
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
mer-core
transfer-engine
Commits
72ad8360
Commit
72ad8360
authored
Apr 10, 2013
by
Marko Mattila
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[nemo-transfer-engine] Added tests.xml and updated unit tests to follow the documentation.
parent
6a7fee14
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
8 deletions
+24
-8
tests/images/testimage.jpg
tests/images/testimage.jpg
+0
-0
tests/tests.pro
tests/tests.pro
+7
-3
tests/tests.xml
tests/tests.xml
+12
-0
tests/ut_imageoperation.cpp
tests/ut_imageoperation.cpp
+5
-5
No files found.
tests/testimage.jpg
→
tests/
images/
testimage.jpg
View file @
72ad8360
File moved
tests/tests.pro
View file @
72ad8360
TEMPLATE
=
app
TARGET
=
ut_nemo
-
transfer
-
engine
DEPENDPATH
+=
.
INCLUDEPATH
+=
.
..
/
src
..
/
lib
...
...
@@ -30,8 +31,11 @@ LIBS += -lquillmetadata
QT
+=
testlib
PATH
=
/
opt
/
tests
/
nemo
-
transfer
-
engine
resources
.
files
=
testimage
.
jpg
resources
.
path
=
$$
PATH
test_def
.
files
=
tests
.
xml
test_def
.
path
=
$$
PATH
resources
.
files
=
images
/
testimage
.
jpg
resources
.
path
=
$$
PATH
/
images
target
.
path
=
$$
PATH
INSTALLS
+=
target
resources
INSTALLS
+=
target
resources
test_def
tests/tests.xml
0 → 100644
View file @
72ad8360
<?xml version="1.0" encoding="UTF-8"?>
<testdefinition
version=
"1.0"
>
<suite
name=
"NemoTransferEngine"
domain=
"middleware"
>
<description>
Nemo Transfer Engine automatic tests
</description>
<set
name=
"unit-tests"
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>
</case>
</set>
</suite>
</testdefinition>
tests/ut_imageoperation.cpp
View file @
72ad8360
...
...
@@ -95,10 +95,10 @@ void ut_imageoperation::testUniqueFilePath()
void
ut_imageoperation
::
testScale
()
{
QImage
img
(
"testimage.jpg"
);
QImage
img
(
"
images/
testimage.jpg"
);
QVERIFY
(
!
img
.
isNull
());
QString
filePath
(
"testimage.jpg"
);
QString
filePath
(
"
images/
testimage.jpg"
);
QString
target
=
ImageOperation
::
uniqueFilePath
(
filePath
);
...
...
@@ -136,8 +136,8 @@ void ut_imageoperation::testDropMetadata()
// title description, but it contains the most essential fields related
// to location and the author.
// First make sure that there is metadata
QCOMPARE
(
QuillMetadata
::
canRead
(
"testimage.jpg"
),
true
);
QuillMetadata
md
(
"testimage.jpg"
);
QCOMPARE
(
QuillMetadata
::
canRead
(
"
images/
testimage.jpg"
),
true
);
QuillMetadata
md
(
"
images/
testimage.jpg"
);
QCOMPARE
(
md
.
isValid
(),
true
);
QVariant
creator
=
md
.
entry
(
QuillMetadata
::
Tag_Creator
);
...
...
@@ -155,7 +155,7 @@ void ut_imageoperation::testDropMetadata()
QCOMPARE
(
lat
.
isNull
(),
false
);
QCOMPARE
(
lon
.
isNull
(),
false
);
QString
path
=
ImageOperation
::
removeImageMetadata
(
"testimage.jpg"
);
QString
path
=
ImageOperation
::
removeImageMetadata
(
"
images/
testimage.jpg"
);
QVERIFY
(
!
path
.
isNull
());
QCOMPARE
(
QFile
::
exists
(
path
),
true
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment