You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_gcc/01-bugzilla-links.sh

28 lines
557 B

#!/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}