forked from FR-GRE-BDS-HPC-SW-SAGE2-GMA/iocatcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options
68 lines (61 loc) · 2.47 KB
/
options
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
#!/bin/sh
######################################################
# PROJECT : IO Catcher #
# LICENSE : Apache 2.0 #
# COPYRIGHT: 2020-2022 Bull SAS All rights reserved #
######################################################
######################################################
#set project name
cfg_set_projet "MALT"
######################################################
#test
cfg_add_enable_option --name='test' \
--on='-DENABLE_TESTS=${ON}' \
--doc='Disable unit tests' \
--invert-help
#junit xml out
cfg_add_enable_option --name='junit-output' \
--on='-DENABLE_JUNIT_OUTPUT=${ON}' \
--doc='Save test output in JUnit format (only in self-test mode)'
#valgrind
cfg_add_enable_option --name='valgrind' \
--on='-DENABLE_VALGRIND=${ON}' \
--doc='Enable running unit tests into valgrind to generate reports'
#jenkins full features
cfg_add_enable_option --name='jenkins' \
--on-enable-inherit='--enable-junit-output --enable-debug "CXXFLAGS=-Wall -fprofile-arcs -ftest-coverage"' \
--doc='Enable all checking modes (unit, valgrind, coverage...)' \
--only='enable'
#coverage
cfg_add_enable_option --name='coverage' \
--on='-DENABLE_COVERAGE=${ON}' \
--doc='Enable coverage report'
######################################################
#libfabric
cfg_add_with_option --name='libfabric' \
--doc='Define prefix to find libfabric [/usr]' \
--var='LIBFABRIC_PREFIX'
#libevent
cfg_add_with_option --name='libevent' \
--doc='Define prefix to find libevent [/usr]' \
--var='LIBEVENT_PREFIX'
######################################################
#If we want to document extra options
#CFG_CUSTOM_HELP="My custom options:"
######################################################
# here we can parse our own options if we want
# Vars available are :
# - $arg : full argument (eg. --with-gcc=gcc)
# - $val : value after first '=', egg 'gcc'
# - $ON $OFF, $ENABLE, $DISABLE, $WIDTH, $WITHOUT
#cfg_parse_custom_opts()
#{
# return 1
#}
######################################################
#pre check to ease error messages
#All cmake vars are loaded in memory as OPT_* (OPT_CMAKE_C_FLAGS)
#cfg_custom_pre_check()
#{
# return 1
#}