/
githubmirror
/
libseccomp
Обзор
Документация
Войти
/
githubmirror
/
libseccomp
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v2.5.3
tests/38-basic-pfc_coverage.sh
46 строк
758 B
Paul Moore
tests: fix some problems with 'make distcheck'
27 фев 2017, 20:27
27 фев 2017, 20:27
7d39579
Код
Авторство
О чём код?
#!/bin/bash # # libseccomp regression test automation data # # Copyright (c) 2017 Red Hat <pmoore@redhat.com> # Author: Paul Moore <paul@paul-moore.com> # #### # functions # # Dependency check # # Arguments: # 1 Dependency to check for # function check_deps() { [[ -z "$1" ]] && return which "$1" >& /dev/null return $? } # # Dependency verification # # Arguments: # 1 Dependency to check for # function verify_deps() { [[ -z "$1" ]] && return if ! check_deps "$1"; then echo "error: install \"$1\" and include it in your \$PATH" exit 1 fi } #### # functions verify_deps diff # compare output to the known good output, fail if different ./38-basic-pfc_coverage | \ diff -q ${srcdir:=.}/38-basic-pfc_coverage.pfc - > /dev/null