File tree Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Expand file tree Collapse file tree 3 files changed +16
-11
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ script:
37
37
- travis_wait 100 dub test --arch "$ARCH" --build=unittest-cov
38
38
- travis_wait 100 dub test --arch "$ARCH" -c dips
39
39
- ./test_examples.sh
40
- - meson build && cd build && ninja -j4 && ninja -j4 test -v && cd .. # TODO: 32bit meson test
40
+ - meson build -D with_test=true && cd build && ninja -j4 && ninja -j4 test -v && cd .. # TODO: 32bit meson test
41
41
# - travis_wait 100 dub test --arch "$ARCH" --build=unittest-release
42
42
43
43
after_success :
Original file line number Diff line number Diff line change @@ -58,15 +58,6 @@ mir_algorithm_dep = declare_dependency(
58
58
dependencies : required_deps,
59
59
)
60
60
61
- mir_algorithm_test_exe = executable (meson .project_name() + ' -test' ,
62
- mir_algorithm_src,
63
- include_directories : mir_algorithm_dir,
64
- d_unittest : true ,
65
- d_module_versions : [' mir_test' ],
66
- link_args : ' -main' ,
67
- dependencies : required_deps,
68
- )
69
-
70
61
install_subdir (' include/' ,
71
62
strip_directory :true ,
72
63
install_dir : ' include/' ,
@@ -85,4 +76,17 @@ import('pkgconfig').generate(
85
76
version : meson .project_version(),
86
77
)
87
78
88
- test (meson .project_name() + ' -test' , mir_algorithm_test_exe)
79
+ if get_option (' with_test' )
80
+
81
+ mir_algorithm_test_exe = executable (meson .project_name() + ' -test' ,
82
+ mir_algorithm_src,
83
+ include_directories : mir_algorithm_dir,
84
+ d_unittest : true ,
85
+ d_module_versions : [' mir_test' ],
86
+ link_args : ' -main' ,
87
+ dependencies : required_deps,
88
+ )
89
+
90
+ test (meson .project_name() + ' -test' , mir_algorithm_test_exe)
91
+
92
+ endif
Original file line number Diff line number Diff line change
1
+ option (' with_test' , type : ' boolean' , value : false )
You can’t perform that action at this time.
0 commit comments