aboutsummaryrefslogtreecommitdiff
path: root/test/meson.build
blob: df6a9c9bb985ea3918d70bad38837a4af9897a70 (plain)
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
# Adblock parsing test
adblock = executable('AdblockTest',
    dependencies: [dep_qt5, dep_urlfilter],
    sources: ['adblock/adblocktest.cpp', qt5.preprocess(moc_headers: 'adblock/adblocktest.h', dependencies: dep_qt5)]
)
test('urlfilter-adblock', adblock, workdir: meson.current_source_dir())

# Hostlist parsing test
hostlist = executable('HostlistTest',
    dependencies: [dep_qt5, dep_urlfilter],
    sources: ['hostlist/hostlisttest.cpp', qt5.preprocess(moc_headers: 'hostlist/hostlisttest.h', dependencies: dep_qt5)]
)
test('urlfilter-hostlist', hostlist, workdir: meson.current_source_dir())

# matching algorithms benchmark
matcherbenchmark = executable('MatcherBenchmark',
    dependencies: [dep_qt5, dependency('boost', modules: 'regex')],
    sources: ['matcherbenchmark/matcherbenchmark.cpp', qt5.preprocess(moc_headers: 'matcherbenchmark/matcherbenchmark.h', dependencies: dep_qt5)]
)

# SingleApplication issue#40 test app
singleapp = executable('SingleApplication',
    cpp_args: ['-DQAPPLICATION_CLASS=QApplication'],
    dependencies: [dep_qt5, dep_SingleApplication],
    sources: ['singleapplication-40/main.cpp']
)