##// END OF EJS Templates
Added missing GUI tests in meson build cfg...
jeandet -
r1489:2808c9bbd035
parent child
Show More
@@ -0,0 +1,25
1
2 tests_inc = include_directories(['GUITestUtils'])
3
4 tests = [
5 {
6 'name':'simple_graph',
7 'sources': ['simple_graph/main.cpp'],
8 'deps': [sciqlop_gui, qt5test, TestUtils_dep]
9 },
10 {
11 'name':'multiple_sync_graph',
12 'sources': ['multiple_sync_graph/main.cpp'],
13 'deps': [sciqlop_gui, qt5test, TestUtils_dep]
14 }
15 ]
16
17 foreach unit_test : tests
18 test_moc_files = qt5.preprocess(moc_sources : unit_test['sources'])
19 test_exe = executable(unit_test['name'],unit_test['sources'] , test_moc_files,
20 dependencies : unit_test['deps'],
21 include_directories: tests_inc,
22 cpp_args : ['-DCORE_TESTS_RESOURCES_DIR="'+meson.current_source_dir()+'/../tests-resources"']
23 )
24 test('Test-' + unit_test['name'], test_exe, args: ['-teamcity', '-o', '@0@.teamcity.txt'.format(unit_test['name'])])
25 endforeach
@@ -1,1 +1,1
1 Subproject commit 29637e951955d1747d325407e2d833646c98f1c2
1 Subproject commit 9868166a1d6d779910b93a996b2b69d399168914
@@ -172,3 +172,5 catalogue_browser_moc_files = qt5.preprocess(moc_sources : 'tests/catalogue/brow
172 catalogue_browser = executable('catalogue_browser', 'tests/catalogue/browser/main.cpp',catalogue_browser_moc_files,
172 catalogue_browser = executable('catalogue_browser', 'tests/catalogue/browser/main.cpp',catalogue_browser_moc_files,
173 include_directories : gui_tests_inc,
173 include_directories : gui_tests_inc,
174 dependencies :[sciqlop_gui, qt5test])
174 dependencies :[sciqlop_gui, qt5test])
175
176 subdir('tests')
@@ -7,7 +7,7
7
7
8 #include <qcustomplot.h>
8 #include <qcustomplot.h>
9
9
10 #include <Common/cpp_utils.h>
10 #include <cpp_utils.hpp>
11 #include <SqpApplication.h>
11 #include <SqpApplication.h>
12 #include <Variable/VariableController2.h>
12 #include <Variable/VariableController2.h>
13
13
@@ -68,7 +68,7 private slots:
68 * Scroll only implies keeping the same delta T -> shift only transformation
68 * Scroll only implies keeping the same delta T -> shift only transformation
69 */
69 */
70 QVERIFY(r.m_TEnd > range.m_TEnd);
70 QVERIFY(r.m_TEnd > range.m_TEnd);
71 QVERIFY(SciQLop::numeric::almost_equal<double>(r.delta(), range.delta(), 1));
71 QVERIFY(cpp_utils::numeric::almost_equal<double>(r.delta(), range.delta(), 1));
72 }
72 }
73
73
74 void scrolls_right_with_mouse()
74 void scrolls_right_with_mouse()
@@ -89,7 +89,7 private slots:
89 * Scroll only implies keeping the same delta T -> shift only transformation
89 * Scroll only implies keeping the same delta T -> shift only transformation
90 */
90 */
91 QVERIFY(r.m_TEnd < range.m_TEnd);
91 QVERIFY(r.m_TEnd < range.m_TEnd);
92 QVERIFY(SciQLop::numeric::almost_equal<double>(r.delta(), range.delta(), 1));
92 QVERIFY(cpp_utils::numeric::almost_equal<double>(r.delta(), range.delta(), 1));
93 }
93 }
94 };
94 };
95
95
@@ -7,7 +7,7
7
7
8 #include <qcustomplot.h>
8 #include <qcustomplot.h>
9
9
10 #include <Common/cpp_utils.h>
10 #include <cpp_utils.hpp>
11 #include <SqpApplication.h>
11 #include <SqpApplication.h>
12 #include <Variable/VariableController2.h>
12 #include <Variable/VariableController2.h>
13
13
@@ -56,7 +56,7 private slots:
56 * Scroll only implies keeping the same delta T -> shit only transformation
56 * Scroll only implies keeping the same delta T -> shit only transformation
57 */
57 */
58 QVERIFY(r.m_TEnd < range.m_TEnd);
58 QVERIFY(r.m_TEnd < range.m_TEnd);
59 QVERIFY(SciQLop::numeric::almost_equal<double>(r.delta(), range.delta(), 1));
59 QVERIFY(cpp_utils::numeric::almost_equal<double>(r.delta(), range.delta(), 1));
60 }
60 }
61
61
62 void scrolls_right_with_mouse()
62 void scrolls_right_with_mouse()
@@ -74,7 +74,7 private slots:
74 * Scroll only implies keeping the same delta T -> shit only transformation
74 * Scroll only implies keeping the same delta T -> shit only transformation
75 */
75 */
76 QVERIFY(r.m_TEnd > range.m_TEnd);
76 QVERIFY(r.m_TEnd > range.m_TEnd);
77 QVERIFY(SciQLop::numeric::almost_equal<double>(r.delta(), range.delta(), 1));
77 QVERIFY(cpp_utils::numeric::almost_equal<double>(r.delta(), range.delta(), 1));
78 }
78 }
79 };
79 };
80
80
General Comments 0
You need to be logged in to leave comments. Login now