mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
Replaced some invalid urls
This commit is contained in:
parent
bc59cf6a93
commit
b94d0e35d3
@ -23,5 +23,6 @@ export/examples/he/splash_pdf5
|
||||
export/examples/hu/example_lyxified_pdf5
|
||||
export/examples/hu/example_raw_pdf5
|
||||
export/examples/hu/splash_pdf5
|
||||
export/examples/id/splash_pdf5
|
||||
export/examples/id/splash_pdf5 # HAHA
|
||||
# my test
|
||||
export/examples/ru/splash_pdf5
|
||||
|
@ -20,12 +20,13 @@ endforeach()
|
||||
# Define the perl-script running the actual test
|
||||
set(SEARCH_URL_SCRIPT "${CMAKE_CURRENT_SOURCE_DIR}/search_url.pl")
|
||||
|
||||
# Test all but inaccessible
|
||||
# Test used and as accessible expected urls
|
||||
add_test(NAME "check_accessible_urls"
|
||||
WORKING_DIRECTORY "${TOP_SEARCH_PATH}"
|
||||
COMMAND ${PERL_EXECUTABLE} "${SEARCH_URL_SCRIPT}"
|
||||
"filesToScan=${LYXFILES_FILE}"
|
||||
"ignoredURLS=${CMAKE_CURRENT_SOURCE_DIR}/inaccessibleURLS")
|
||||
"ignoredURLS=${CMAKE_CURRENT_SOURCE_DIR}/inaccessibleURLS"
|
||||
"ignoredURLS=${CMAKE_CURRENT_SOURCE_DIR}/knownInvalidURLS")
|
||||
|
||||
# Test inaccessible, but revert the error marker (failed <=> passed)
|
||||
# if this fails, then some url is accessible and does not belong
|
||||
@ -38,7 +39,8 @@ add_test(NAME "check_inaccessible_urls"
|
||||
"revertedURLS=${CMAKE_CURRENT_SOURCE_DIR}/inaccessibleURLS")
|
||||
|
||||
#
|
||||
# Test our own bad URLs
|
||||
# Test our own bad urls
|
||||
# and urls used in examples which should not match valid urls
|
||||
# if this test fails, then our testtool contains errors
|
||||
add_test(NAME "check_invalid_urls"
|
||||
WORKING_DIRECTORY "${TOP_SEARCH_PATH}"
|
||||
|
@ -1,32 +1,9 @@
|
||||
# "Login incorrect."
|
||||
# permission denied
|
||||
ftp://ftp.aas.org/pubs
|
||||
ftp://ftp.springer.de/pub/tex/latex/aa
|
||||
# Cannot connect to trick.ntp.springer.de
|
||||
ftp://trick.ntp.springer.de/pub/tex/latex/llncs/latex2e
|
||||
# file/directory not found
|
||||
ftp://www.ctan.org/pub/tex-archive/macros/latex2e/contrib/fancyhdr/fancyhdr.pdf
|
||||
ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/caption/caption.pdf
|
||||
# What protocol is 'htp'
|
||||
htp://www.lyx.org
|
||||
# Net::HTTP: connect: timeout
|
||||
http://www.educat.hu-berlin.de/~voss/lyx
|
||||
#Net::HTTP: Bad hostname 'math.tulane.edu'
|
||||
http://math.tulane.edu/~entcs/
|
||||
# Net::HTTP: Bad hostname 'media.texample.net'
|
||||
http://media.texample.net/tikz/examples/TEX/free-body-diagrams.tex
|
||||
# Net::HTTP: Bad hostname 'shelob.ce.ttu.edu'
|
||||
http://shelob.ce.ttu.edu/daves/faq.html
|
||||
http://shelob.ce.ttu.edu/daves/lpfaq/faq.html
|
||||
# Net::HTTP: Bad hostname 'www.devel.lyx.org'
|
||||
http://www.devel.lyx.org
|
||||
http://www.devel.lyx.org/
|
||||
# Net::HTTP: Bad hostname 'www.euskalgnu.org'
|
||||
http://www.euskalgnu.org
|
||||
http://www.uon.edu/doe
|
||||
# Net::HTTP: Bad hostname 'www.it.lyx.org'
|
||||
http://www.it.lyx.org
|
||||
# Net::HTTP: Bad hostname 'www.mx.lyx.org'
|
||||
http://www.mx.lyx.org
|
||||
# Net::HTTP: Bad hostname 'www.no.lyx.org'
|
||||
http://www.no.lyx.org
|
@ -1 +1,2 @@
|
||||
http://www.uon.edu/doe
|
||||
proto://host.xx.ab/abcd
|
||||
|
@ -87,8 +87,14 @@ my $errorcount = 0;
|
||||
my $URLScount = 0;
|
||||
|
||||
for my $u (@urls) {
|
||||
next if (defined($ignoredURLS{$u}));
|
||||
if (defined($ignoredURLS{$u})) {
|
||||
$ignoredURLS{$u} += 1;
|
||||
next;
|
||||
}
|
||||
next if ($checkSelectedOnly && ! defined(${selectedURLS}{$u}));
|
||||
if (defined(${selectedURLS}{$u})) {
|
||||
${selectedURLS}{$u} += 1;
|
||||
}
|
||||
$URLScount++;
|
||||
print "Checking '$u'";
|
||||
my $res = &check_url($u);
|
||||
@ -123,11 +129,28 @@ for my $u (@urls) {
|
||||
}
|
||||
}
|
||||
|
||||
&printNotUsedURLS("Ignored", \%ignoredURLS);
|
||||
&printNotUsedURLS("Selected", \%selectedURLS);
|
||||
|
||||
print "\n$errorcount URL-tests failed out of $URLScount\n\n";
|
||||
exit($errorcount);
|
||||
|
||||
###############################################################################
|
||||
|
||||
sub printNotUsedURLS($$)
|
||||
{
|
||||
my ($txt, $rURLS) = @_;
|
||||
my @msg = ();
|
||||
for my $u ( sort keys %{$rURLS}) {
|
||||
if ($rURLS->{$u} < 2) {
|
||||
push(@msg, $u);
|
||||
}
|
||||
}
|
||||
if (@msg) {
|
||||
print "\n$txt URLs not found in sources: " . join(' ',@msg) . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
sub readUrls($$)
|
||||
{
|
||||
my ($file, $rUrls) = @_;
|
||||
|
@ -23393,7 +23393,7 @@ status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
http://shelob.ce.ttu.edu/daves/faq.html
|
||||
http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/faq.html
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
@ -2891,7 +2891,7 @@ status open
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
http://www.devel.lyx.org
|
||||
http://www.lyx.org/Translation
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
@ -23508,7 +23508,7 @@ status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
http://shelob.ce.ttu.edu/daves/lpfaq/faq.html
|
||||
http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
@ -23145,7 +23145,7 @@ status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
http://shelob.ce.ttu.edu/daves/lpfaq/faq.html
|
||||
http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
@ -2708,7 +2708,7 @@ status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
http://www.devel.lyx.org/
|
||||
http://www.lyx.org/Translation/
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
@ -20165,7 +20165,7 @@ status collapsed
|
||||
|
||||
\begin_layout Plain Layout
|
||||
|
||||
http://shelob.ce.ttu.edu/daves/lpfaq/faq.html
|
||||
http://www.xmarks.com/site/shelob.ce.ttu.edu/daves/lpfaq/faq.html
|
||||
\end_layout
|
||||
|
||||
\end_inset
|
||||
|
Loading…
Reference in New Issue
Block a user