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.
28 lines
557 B
28 lines
557 B
1 year ago
|
#!/bin/bash -x
|
||
|
|
||
|
echo "Тест наличия bugzilla ссылок"
|
||
|
|
||
12 months ago
|
source library/sh_lib.sh
|
||
1 year ago
|
|
||
|
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}
|