1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
/*
* Copyright (C) 2008, Nokia <ivan.frade@nokia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include <string.h>
#include <fcntl.h>
#include <stdio.h>
#include <glib.h>
#include <tracker-extract/tracker-extract.h>
#include "tracker-extract-test-utils.h"
#include "tracker-extract-testsuite-generic.h"
#include "tracker-extract-testsuite-jpeg.h"
int
main (int argc, char **argv) {
TrackerExtractData *data;
gchar *path;
gint result;
g_type_init ();
g_thread_init (NULL);
g_test_init (&argc, &argv, NULL);
g_test_message ("Testing extract functionality");
path = g_build_filename (MODULESDIR, "libextract-jpeg", NULL);
data = tracker_test_extract_get_extract (path, "image/jpeg");
g_free (path);
g_test_add_data_func ("/tracker-extract/tracker-extract-jpeg/check-extract-data",
data, test_tracker_extract_check_extract_data);
#if 0
g_test_add_data_func ("/tracker-extract/tracker-extract-jpeg/basic_size",
data, test_tracker_extract_jpeg_basic_size);
g_test_add_data_func ("/tracker-extract/tracker-extract-jpeg/exif_size",
data, test_tracker_extract_jpeg_exif_size);
g_test_add_data_func ("/tracker-extract/tracker-extract-jpeg/exif_orientation",
data, test_tracker_extract_jpeg_exif_orientation);
g_test_add_data_func ("/tracker-extract/tracker-extract-jpeg/exif_flash",
data, test_tracker_extract_jpeg_exif_flash);
g_test_add_data_func ("/tracker-extract/tracker-extract-jpeg/exif_tags",
data, test_tracker_extract_jpeg_exif_tags);
/*
if (g_test_perf()) {
g_test_add_data_func ("/tracker-extract/tracker-extract-jpeg/performance",
data, test_tracker_extract_jpeg_performance);
}*/
#endif
result = g_test_run ();
return result;
}
|