Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 3 | ### |
| 4 | # Script requirments: |
Ondrej Smola | d3c6703 | 2018-04-04 12:16:05 +0200 | [diff] [blame] | 5 | #apt-get install -y python-yaml virtualenv git |
| 6 | |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 7 | set -e |
| 8 | [ -n "$DEBUG" ] && set -x |
| 9 | |
| 10 | CURDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
| 11 | METADATA=${CURDIR}/../metadata.yml |
| 12 | FORMULA_NAME=$(cat $METADATA | python -c "import sys,yaml; print yaml.load(sys.stdin)['name']") |
Dennis Dmitriev | 5e72a35 | 2017-07-06 21:07:28 +0300 | [diff] [blame] | 13 | FORMULA_META_DIR=${CURDIR}/../${FORMULA_NAME}/meta |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 14 | |
| 15 | ## Overrideable parameters |
| 16 | PILLARDIR=${PILLARDIR:-${CURDIR}/pillar} |
| 17 | BUILDDIR=${BUILDDIR:-${CURDIR}/build} |
| 18 | VENV_DIR=${VENV_DIR:-${BUILDDIR}/virtualenv} |
Dennis Dmitriev | 5e72a35 | 2017-07-06 21:07:28 +0300 | [diff] [blame] | 19 | MOCK_BIN_DIR=${MOCK_BIN_DIR:-${CURDIR}/mock_bin} |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 20 | DEPSDIR=${BUILDDIR}/deps |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 21 | SCHEMARDIR=${SCHEMARDIR:-"${CURDIR}/../${FORMULA_NAME}/schemas/"} |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 22 | |
| 23 | SALT_FILE_DIR=${SALT_FILE_DIR:-${BUILDDIR}/file_root} |
| 24 | SALT_PILLAR_DIR=${SALT_PILLAR_DIR:-${BUILDDIR}/pillar_root} |
| 25 | SALT_CONFIG_DIR=${SALT_CONFIG_DIR:-${BUILDDIR}/salt} |
| 26 | SALT_CACHE_DIR=${SALT_CACHE_DIR:-${SALT_CONFIG_DIR}/cache} |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 27 | SALT_CACHE_EXTMODS_DIR=${SALT_CACHE_EXTMODS_DIR:-${SALT_CONFIG_DIR}/cache_master_extmods} |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 28 | |
Dennis Dmitriev | 5e72a35 | 2017-07-06 21:07:28 +0300 | [diff] [blame] | 29 | SALT_OPTS="${SALT_OPTS} --retcode-passthrough --local -c ${SALT_CONFIG_DIR} --log-file=/dev/null" |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 30 | |
azvyagintsev | 4e40470 | 2018-05-30 20:02:03 +0300 | [diff] [blame^] | 31 | IGNORE_MODELVALIDATE_MASK=${IGNORE_MODELVALIDATE_MASK:-"novalidate"} |
| 32 | |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 33 | if [ "x${SALT_VERSION}" != "x" ]; then |
| 34 | PIP_SALT_VERSION="==${SALT_VERSION}" |
| 35 | fi |
| 36 | |
| 37 | ## Functions |
| 38 | log_info() { |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 39 | echo -e "[INFO] $*" |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | log_err() { |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 43 | echo -e "[ERROR] $*" >&2 |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 44 | } |
| 45 | |
| 46 | setup_virtualenv() { |
| 47 | log_info "Setting up Python virtualenv" |
Ondrej Smola | d3c6703 | 2018-04-04 12:16:05 +0200 | [diff] [blame] | 48 | dependency_check virtualenv |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 49 | virtualenv $VENV_DIR |
| 50 | source ${VENV_DIR}/bin/activate |
Jakub Josef | 482a855 | 2018-02-08 13:22:18 +0100 | [diff] [blame] | 51 | python -m pip install salt${PIP_SALT_VERSION} |
Ondrej Smola | d3c6703 | 2018-04-04 12:16:05 +0200 | [diff] [blame] | 52 | if [[ -f ${CURDIR}/test-requirements.txt ]]; then |
| 53 | python -m pip install -r ${CURDIR}/test-requirements.txt |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 54 | fi |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 55 | } |
| 56 | |
Dennis Dmitriev | 5e72a35 | 2017-07-06 21:07:28 +0300 | [diff] [blame] | 57 | setup_mock_bin() { |
| 58 | # If some state requires a binary, a lightweight replacement for |
| 59 | # such binary can be put into MOCK_BIN_DIR for test purposes |
| 60 | if [ -d "${MOCK_BIN_DIR}" ]; then |
| 61 | PATH="${MOCK_BIN_DIR}:$PATH" |
| 62 | export PATH |
| 63 | fi |
| 64 | } |
| 65 | |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 66 | setup_pillar() { |
| 67 | [ ! -d ${SALT_PILLAR_DIR} ] && mkdir -p ${SALT_PILLAR_DIR} |
| 68 | echo "base:" > ${SALT_PILLAR_DIR}/top.sls |
| 69 | for pillar in ${PILLARDIR}/*; do |
Dennis Dmitriev | 5e72a35 | 2017-07-06 21:07:28 +0300 | [diff] [blame] | 70 | grep ${FORMULA_NAME}: ${pillar} &>/dev/null || continue |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 71 | state_name=$(basename ${pillar%.sls}) |
| 72 | echo -e " ${state_name}:\n - ${state_name}" >> ${SALT_PILLAR_DIR}/top.sls |
| 73 | done |
| 74 | } |
| 75 | |
| 76 | setup_salt() { |
| 77 | [ ! -d ${SALT_FILE_DIR} ] && mkdir -p ${SALT_FILE_DIR} |
| 78 | [ ! -d ${SALT_CONFIG_DIR} ] && mkdir -p ${SALT_CONFIG_DIR} |
| 79 | [ ! -d ${SALT_CACHE_DIR} ] && mkdir -p ${SALT_CACHE_DIR} |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 80 | [ ! -d ${SALT_CACHE_EXTMODS_DIR} ] && mkdir -p ${SALT_CACHE_EXTMODS_DIR} |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 81 | |
| 82 | echo "base:" > ${SALT_FILE_DIR}/top.sls |
| 83 | for pillar in ${PILLARDIR}/*.sls; do |
Dennis Dmitriev | 5e72a35 | 2017-07-06 21:07:28 +0300 | [diff] [blame] | 84 | grep ${FORMULA_NAME}: ${pillar} &>/dev/null || continue |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 85 | state_name=$(basename ${pillar%.sls}) |
| 86 | echo -e " ${state_name}:\n - ${FORMULA_NAME}" >> ${SALT_FILE_DIR}/top.sls |
| 87 | done |
| 88 | |
| 89 | cat << EOF > ${SALT_CONFIG_DIR}/minion |
| 90 | file_client: local |
| 91 | cachedir: ${SALT_CACHE_DIR} |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 92 | extension_modules: ${SALT_CACHE_EXTMODS_DIR} |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 93 | verify_env: False |
Dennis Dmitriev | 5e72a35 | 2017-07-06 21:07:28 +0300 | [diff] [blame] | 94 | minion_id_caching: False |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 95 | |
| 96 | file_roots: |
| 97 | base: |
| 98 | - ${SALT_FILE_DIR} |
| 99 | - ${CURDIR}/.. |
| 100 | |
| 101 | pillar_roots: |
| 102 | base: |
| 103 | - ${SALT_PILLAR_DIR} |
| 104 | - ${PILLARDIR} |
| 105 | EOF |
| 106 | } |
| 107 | |
| 108 | fetch_dependency() { |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 109 | # example: fetch_dependency "linux:https://github.com/salt-formulas/salt-formula-linux" |
Filip Pytloun | 4ebe36d | 2016-04-14 11:51:09 +0200 | [diff] [blame] | 110 | dep_name="$(echo $1|cut -d : -f 1)" |
Filip Pytloun | 9bf88cc | 2016-04-14 16:39:28 +0200 | [diff] [blame] | 111 | dep_source="$(echo $1|cut -d : -f 2-)" |
Filip Pytloun | 4ebe36d | 2016-04-14 11:51:09 +0200 | [diff] [blame] | 112 | dep_root="${DEPSDIR}/$(basename $dep_source .git)" |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 113 | dep_metadata="${dep_root}/metadata.yml" |
| 114 | |
Ondrej Smola | d3c6703 | 2018-04-04 12:16:05 +0200 | [diff] [blame] | 115 | dependency_check git |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 116 | [ -d $dep_root ] && { log_info "Dependency $dep_name already fetched"; return 0; } |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 117 | |
Filip Pytloun | 4ebe36d | 2016-04-14 11:51:09 +0200 | [diff] [blame] | 118 | log_info "Fetching dependency $dep_name" |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 119 | [ ! -d ${DEPSDIR} ] && mkdir -p ${DEPSDIR} |
Filip Pytloun | 445dde3 | 2016-04-14 12:46:30 +0200 | [diff] [blame] | 120 | git clone $dep_source ${DEPSDIR}/$(basename $dep_source .git) |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 121 | ln -s ${dep_root}/${dep_name} ${SALT_FILE_DIR}/${dep_name} |
| 122 | |
| 123 | METADATA="${dep_metadata}" install_dependencies |
| 124 | } |
| 125 | |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 126 | link_modules(){ |
| 127 | # Link modules *.py files to temporary salt-root |
| 128 | local SALT_ROOT=${1:-$SALT_FILE_DIR} |
| 129 | local SALT_ENV=${2:-$DEPSDIR} |
| 130 | |
| 131 | mkdir -p "${SALT_ROOT}/_modules/" |
| 132 | # from git, development versions |
| 133 | find ${SALT_ENV} -maxdepth 3 -mindepth 3 -path '*_modules*' -iname "*.py" -type f -print0 | while read -d $'\0' file; do |
| 134 | ln -fs $(readlink -e ${file}) "$SALT_ROOT"/_modules/$(basename ${file}) ; |
| 135 | done |
| 136 | salt_run saltutil.sync_all |
| 137 | } |
| 138 | |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 139 | install_dependencies() { |
| 140 | grep -E "^dependencies:" ${METADATA} >/dev/null || return 0 |
| 141 | (python - | while read dep; do fetch_dependency "$dep"; done) << EOF |
| 142 | import sys,yaml |
| 143 | for dep in yaml.load(open('${METADATA}', 'ro'))['dependencies']: |
Filip Pytloun | 4ebe36d | 2016-04-14 11:51:09 +0200 | [diff] [blame] | 144 | print '%s:%s' % (dep["name"], dep["source"]) |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 145 | EOF |
| 146 | } |
| 147 | |
| 148 | clean() { |
| 149 | log_info "Cleaning up ${BUILDDIR}" |
| 150 | [ -d ${BUILDDIR} ] && rm -rf ${BUILDDIR} || exit 0 |
| 151 | } |
| 152 | |
| 153 | salt_run() { |
Jakub Josef | e7fc6ab | 2017-12-15 16:58:30 +0100 | [diff] [blame] | 154 | [ -e ${VENV_DIR}/bin/activate ] && source ${VENV_DIR}/bin/activate |
Jakub Josef | 482a855 | 2018-02-08 13:22:18 +0100 | [diff] [blame] | 155 | python $(which salt-call) ${SALT_OPTS} $* |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 156 | } |
| 157 | |
| 158 | prepare() { |
azvyagintsev | 4e40470 | 2018-05-30 20:02:03 +0300 | [diff] [blame^] | 159 | if [[ -f ${BUILDDIR}/.prepare_done ]]; then |
| 160 | log_info "${BUILDDIR}/.prepare_done exist, not rebuilding BUILDDIR" |
| 161 | return |
| 162 | fi |
| 163 | [[ -d ${BUILDDIR} ]] && mkdir -p ${BUILDDIR} |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 164 | |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 165 | [[ ! -f "${VENV_DIR}/bin/activate" ]] && setup_virtualenv |
Dennis Dmitriev | 5e72a35 | 2017-07-06 21:07:28 +0300 | [diff] [blame] | 166 | setup_mock_bin |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 167 | setup_pillar |
| 168 | setup_salt |
| 169 | install_dependencies |
Ondrej Smola | d3c6703 | 2018-04-04 12:16:05 +0200 | [diff] [blame] | 170 | link_modules |
azvyagintsev | 4e40470 | 2018-05-30 20:02:03 +0300 | [diff] [blame^] | 171 | touch ${BUILDDIR}/.prepare_done |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 172 | } |
| 173 | |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 174 | lint_releasenotes() { |
| 175 | [[ ! -f "${VENV_DIR}/bin/activate" ]] && setup_virtualenv |
Ondrej Smola | d3c6703 | 2018-04-04 12:16:05 +0200 | [diff] [blame] | 176 | source ${VENV_DIR}/bin/activate |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 177 | reno lint ${CURDIR}/../ |
| 178 | } |
| 179 | |
| 180 | lint() { |
| 181 | # lint_releasenotes |
| 182 | log_err "TODO: lint_releasenotes" |
| 183 | } |
| 184 | |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 185 | run() { |
| 186 | for pillar in ${PILLARDIR}/*.sls; do |
Dennis Dmitriev | 5e72a35 | 2017-07-06 21:07:28 +0300 | [diff] [blame] | 187 | grep ${FORMULA_NAME}: ${pillar} &>/dev/null || continue |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 188 | state_name=$(basename ${pillar%.sls}) |
Dennis Dmitriev | 5e72a35 | 2017-07-06 21:07:28 +0300 | [diff] [blame] | 189 | salt_run grains.set 'noservices' False force=True |
| 190 | |
| 191 | echo "Checking state ${FORMULA_NAME}.${state_name} ..." |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 192 | salt_run --id=${state_name} state.show_sls ${FORMULA_NAME} || (log_err "Execution of ${FORMULA_NAME}.${state_name} failed"; exit 1) |
Dennis Dmitriev | 5e72a35 | 2017-07-06 21:07:28 +0300 | [diff] [blame] | 193 | |
| 194 | # Check that all files in 'meta' folder can be rendered using any valid pillar |
| 195 | for meta in `find ${FORMULA_META_DIR} -type f`; do |
| 196 | meta_name=$(basename ${meta}) |
| 197 | echo "Checking meta ${meta_name} ..." |
| 198 | salt_run --out=quiet --id=${state_name} cp.get_template ${meta} ${SALT_CACHE_DIR}/${meta_name} \ |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 199 | || { log_err "Failed to render meta ${meta} using pillar ${FORMULA_NAME}.${state_name}"; exit 1; } |
Dennis Dmitriev | 5e72a35 | 2017-07-06 21:07:28 +0300 | [diff] [blame] | 200 | cat ${SALT_CACHE_DIR}/${meta_name} |
| 201 | done |
| 202 | done |
| 203 | } |
| 204 | |
| 205 | real_run() { |
| 206 | for pillar in ${PILLARDIR}/*.sls; do |
| 207 | state_name=$(basename ${pillar%.sls}) |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 208 | salt_run --id=${state_name} state.sls ${FORMULA_NAME} || { log_err "Execution of ${FORMULA_NAME}.${state_name} failed"; exit 1; } |
| 209 | done |
| 210 | } |
| 211 | |
| 212 | run_model_validate(){ |
Ondrej Smola | d3c6703 | 2018-04-04 12:16:05 +0200 | [diff] [blame] | 213 | # Run modelschema.model_validate validation. |
| 214 | # TEST iterateble, run for `each formula ROLE against each ROLE_PILLARNAME` |
| 215 | # Pillars should be named in conviend ROLE_XXX.sls or ROLE.sls |
| 216 | # Example: |
| 217 | # client.sls client_auth.sls server.sls server_auth.sls |
| 218 | if [ -d ${SCHEMARDIR} ]; then |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 219 | # model validator require py modules |
| 220 | fetch_dependency "salt:https://github.com/salt-formulas/salt-formula-salt" |
| 221 | link_modules |
Ondrej Smola | d3c6703 | 2018-04-04 12:16:05 +0200 | [diff] [blame] | 222 | salt_run saltutil.clear_cache; salt_run saltutil.refresh_pillar; salt_run saltutil.sync_all; |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 223 | for role in ${SCHEMARDIR}/*.yaml; do |
Ondrej Smola | d3c6703 | 2018-04-04 12:16:05 +0200 | [diff] [blame] | 224 | role_name=$(basename "${role%*.yaml}") |
azvyagintsev | 4e40470 | 2018-05-30 20:02:03 +0300 | [diff] [blame^] | 225 | for pillar in $(ls pillar/${role_name}*.sls | grep -v ${IGNORE_MODELVALIDATE_MASK} ); do |
Ondrej Smola | d3c6703 | 2018-04-04 12:16:05 +0200 | [diff] [blame] | 226 | pillar_name=$(basename "${pillar%*.sls}") |
| 227 | local _message="FORMULA:${FORMULA_NAME} ROLE:${role_name} against PILLAR:${pillar_name}" |
| 228 | log_info "model_validate ${_message}" |
| 229 | # Rendered Example: |
| 230 | # python $(which salt-call) --local -c /test1/maas/tests/build/salt --id=maas_cluster modelschema.model_validate maas cluster |
| 231 | salt_run -m ${DEPSDIR}/salt-formula-salt --id=${pillar_name} modelschema.model_validate ${FORMULA_NAME} ${role_name} || { log_err "Execution of model_validate ${_message} failed"; exit 1 ; } |
| 232 | done |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 233 | done |
Ondrej Smola | d3c6703 | 2018-04-04 12:16:05 +0200 | [diff] [blame] | 234 | else |
| 235 | log_info "${SCHEMARDIR} not found!"; |
| 236 | fi |
| 237 | } |
| 238 | |
| 239 | dependency_check() { |
| 240 | local DEPENDENCY_COMMANDS=$* |
| 241 | |
| 242 | for DEPENDENCY_COMMAND in $DEPENDENCY_COMMANDS; do |
| 243 | which $DEPENDENCY_COMMAND > /dev/null || ( log_err "Command \"$DEPENDENCY_COMMAND\" can not be found in default path."; exit 1; ) |
| 244 | done |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 245 | } |
| 246 | |
| 247 | _atexit() { |
| 248 | RETVAL=$? |
| 249 | trap true INT TERM EXIT |
| 250 | |
| 251 | if [ $RETVAL -ne 0 ]; then |
| 252 | log_err "Execution failed" |
| 253 | else |
| 254 | log_info "Execution successful" |
| 255 | fi |
| 256 | return $RETVAL |
| 257 | } |
| 258 | |
| 259 | ## Main |
| 260 | trap _atexit INT TERM EXIT |
| 261 | |
| 262 | case $1 in |
| 263 | clean) |
| 264 | clean |
| 265 | ;; |
| 266 | prepare) |
| 267 | prepare |
| 268 | ;; |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 269 | lint) |
| 270 | lint |
| 271 | ;; |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 272 | run) |
| 273 | run |
| 274 | ;; |
Dennis Dmitriev | 5e72a35 | 2017-07-06 21:07:28 +0300 | [diff] [blame] | 275 | real-run) |
| 276 | real_run |
| 277 | ;; |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 278 | model-validate) |
| 279 | prepare |
| 280 | run_model_validate |
| 281 | ;; |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 282 | *) |
| 283 | prepare |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 284 | # lint |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 285 | run |
azvyagintsev | bee57b9 | 2017-12-08 16:46:09 +0200 | [diff] [blame] | 286 | run_model_validate |
Adam Tengler | d98367f | 2016-01-26 11:56:27 +0100 | [diff] [blame] | 287 | ;; |
| 288 | esac |