#!/bin/bash -x echo "Тест наличия bugzilla ссылок" source ../../library/sh_lib.sh check=0 test_gcc_v(){ echo "INFO: Testing bugzilla URL in gcc -v" gcc -v 2>&1 | grep "\-\-with\-bugurl=https://bugs.msvsphere.ru/" check=$(eq_is_success ${check} 0) } test_gcc_man_page(){ echo "INFO: Testing bugzilla URL in man gcc" /bin/man -P /bin/cat gcc | /bin/grep https://bugs.msvsphere.ru/ check=$(eq_is_success ${check} 0) } ############ # Run tests test_gcc_v test_gcc_man_page check_test_status ${check} "$0" exit ${check}