Commit Graph

37 Commits

Author SHA1 Message Date
Kornel Benko
5d91fb81f9 URL Tests: add some only manually accessible urls 2024-10-19 14:42:44 +02:00
Kornel Benko
36bde673db Cmake url tests: For each http url check (and mark) also the https
variant
2024-10-18 18:28:13 +02:00
Kornel Benko
dfd84f6b8f Cmake url tests: Expand list of invalid urls
These urls will not be tested
2024-10-15 10:50:27 +02:00
Kornel Benko
fdd314e25e Cmake tests urls: Changed log-output for easier parsing 2024-10-15 10:48:26 +02:00
Kornel Benko
5598946335 Amend(10) of c0ee28a7
Hopefully the last one
2024-10-10 20:34:50 +02:00
Kornel Benko
271d4397bb Cosmetics in writing and parsing log-file after test
'check_accessible_urls'
2024-10-09 19:17:16 +02:00
Kornel Benko
4063951ded Amend 341410a5: Change log-output to better parse urls 2024-10-08 11:38:35 +02:00
Kornel Benko
341410a512 Small modifications
Continued changes for commit 3f48486a
2024-10-07 12:35:10 +02:00
Kornel Benko
3f48486a5c Cmake build tests: check urls optimized
The original test took about ~50 minutes. Making the checks in parallel,
now it takes about 150 seconds.
2024-10-06 18:04:00 +02:00
Kornel Benko
5680a4d3be Cmake build: Check for perl before use
(Define PERL_EXCUTABLE to be used while calling perl scripts)
2020-11-14 00:34:20 +01:00
Kornel Benko
0b29581905 Fix some non-accessible URLS
Also don't check attic, devel or obsolete files
Not found good replacements for
        http://texcatalogue.ctan.org/bytopic.html
        http://www.tiresias.org/research/reports/braille_cell.htm
2019-03-31 00:15:52 +01:00
Kornel Benko
7b4064bbcb Cmake url tests: Add special handling for some ftp-urls 2016-01-05 17:27:49 +01:00
Kornel Benko
7c26af67be Typo 2016-01-04 13:45:11 +01:00
Kornel Benko
8b45fa9159 Cmake url tests: Some more http pages needs login. 2016-01-04 13:25:57 +01:00
Kornel Benko
7ac12294dc Correct some more broken URLs 2016-01-04 12:45:41 +01:00
Kornel Benko
f81abaefa8 Cmake url tests: Expand knownToRegisterURLS with an ftp entry
This entry 'ftp://ftp.edpsciences.org/pub/aa/readme.html' is special.
Although there are no problems with firefox, using ftp client is
problematic.
2016-01-04 10:20:44 +01:00
Kornel Benko
689a144824 Cmake url tests: Use more sophiticated check for urls. 2016-01-03 15:25:09 +01:00
Kornel Benko
d2ec79beac Cmake tests for translators: Added check for required program phantomjs 2016-01-03 13:02:08 +01:00
Kornel Benko
99a2647fd2 Cmake URL tests: Better search for error 404, in received html snippet. 2016-01-02 22:18:13 +01:00
Kornel Benko
4b49a59e71 Cmake URL tests: Interpret 'Error 404' in received data as error. 2016-01-02 11:29:11 +01:00
Kornel Benko
548a7ac364 Cmake tests: Rename label 'reverted' to 'inverted'. 2015-12-03 00:23:07 +01:00
Kornel Benko
f3989f1e3a Cmake url tests: Handle some special chars in urls. 2015-11-26 14:31:15 +01:00
Kornel Benko
270df24246 Typo 2015-11-23 13:41:29 +01:00
Kornel Benko
c0290039ad Cmake url tests: Added summary files.
The files will be locatet in the build-directory "Testing/Temporary" as
  LastFailedAccessibleURLS.log
  LastFailedInaccessibleURLS.log
  LastFailedKnownInvalidURLS.log
2015-11-23 13:07:53 +01:00
Kornel Benko
5439f4e554 Cmake tests: Combine "text" field to extract translators name
While extracting names of a translator from the html page it can happen
that the perl's HTML::Parser module splits the "text".
2015-10-25 16:23:59 +01:00
Kornel Benko
b07c8292f6 Cmake test: Cmake tests: Check for consistency between po-files and lyx-trunk translations page.
This time with the correct CMakeLists.txt.
2015-10-25 11:18:30 +01:00
Kornel Benko
0f7ebe9ae4 Revert "Cmake tests: Check for consistency between po-files and lyx-trunk translations page."
This reverts commit 0a4fbe4836.
2015-10-25 11:17:02 +01:00
Kornel Benko
0a4fbe4836 Cmake tests: Check for consistency between po-files and lyx-trunk translations page. 2015-10-25 11:10:14 +01:00
Kornel Benko
30b6c83164 Use prototypes in perl scripts 2014-01-24 11:00:07 +01:00
Scott Kostyshak
2ddf66a71d Ctests: fix "read failed" errors for the URL tests
This patch changes the user agent and results in the openoffice.org
tests correctly passing. Before, they would give the following error:

  Failed, caught error: Status read failed: Connection reset by peer

All the other tests work as before.
Kornel and I are not sure why this change works.
2014-01-23 11:14:31 -05:00
Kornel Benko
037d474360 Cmake url tests: Use try - catch mechanism while testing urls.
If a perl-submodule exits with 'die()', the process would stop
and the following urls would not be tested.
The bug detection and idea how to solve it: Scott Kostyshak.
2014-01-08 13:36:30 +01:00
Kornel Benko
f2553ebf6c Cmake build tests: Threadsafety and test-labeling
The tests are now more robust if ctest uses '-j' (number of threads) parameter.
a.) keytests are running in sequence and in one thread only, no other thread running
b.) tex2lyx tests are locking in respect to each other
c.) Test gets one or more labels, so that we can select
        ctest -L url
  to run tests labeled url
d.) New macro settestlabel() to add labels to a test
2013-09-07 09:25:02 +02:00
Kornel Benko
abe7eef13c Replace the remaining bad urls with accsessible ones
Now all urls we use in our provided lyx-files
(doc, examples, templates)
use urls which really exist.

(If a url was meant merely as an example,
it was not touched, but added to file 'knownInvalidURLS'.)
2013-08-30 17:28:46 +02:00
Kornel Benko
4f043fba4d Cmake build tests: href entries checked
Our lyx-files are referencing urls also with
a href inset. We check now also these.

search_url.pl: Added check for href
*.lyx: Corrected href
2013-08-28 19:51:19 +02:00
Kornel Benko
73e03bb7d8 Replaced some more invalid urls 2013-08-28 18:07:28 +02:00
Kornel Benko
b94d0e35d3 Replaced some invalid urls 2013-08-28 16:50:23 +02:00
Kornel Benko
8286411c81 ctests for broken URLs in URL insets of LyX docs
These tests check for broken URLs in the URL insets of
the manuals, examples, and templates.

The tests are disabled by default because the Perl interpreter
is needed.

Later on they can be activated with a flag, as follows:

  cmake ... -DLYX_ENABLE_URLTESTS=ON

but for now the connection from the TOP-CMakeLists.txt is left out.

Missing part:
        1.) Declaring an setting the option
                LYX_OPTION(ENABLE_URLTESTS  "Enable for URL tests" OFF ALL)
        2.) make the connection
                if(LYX_ENABLE_URLTESTS)
                        add_subdirectory(development/checkurls "${TOP_BINARY_DIR}/checkurls")
                endif()
2013-08-28 12:17:40 +02:00