ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Validate External Links/validate_external_links.command
(Generate patch)

Comparing Validate External Links/validate_external_links.command (file contents):
Revision 1139 by iritscen, Wed Aug 26 18:33:35 2020 UTC vs.
Revision 1182 by iritscen, Sun May 7 19:53:19 2023 UTC

# Line 2 | Line 2
2  
3   # Runs the Validate External Links script
4   # Arguments: --help, --links URL, --exceptions URL, --output DIR, --record-ok-links, --show-added-slashes,
5 < # --show-https-upgrades, --show-yt-redirects, --suggest-snapshots, --skip-archive-links, --take-screenshots FILE,
6 < # --timeout NUM, --start-url NUM, --end-url NUM, --upload FILE
5 > # --show-https-upgrades, --show-yt-redirects, --suggest-snapshots-ng, --suggest-snapshots-ok,
6 > # --check-archive-links, --take-screenshots FILE, --timeout NUM, --start-url NUM, --end-url NUM, --upload FILE
7   # Recommended rule:
8   # |----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ----- ---|
9  
# Line 18 | Line 18 | UPLOAD_INFO="/path/to/Validate External
18   CHROME="/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
19  
20  
21 # Run with end URL, record OK codes, and don't upload
22 #bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --end-url 70
23
21   # Run with start/end URLs, record OK codes, and don't upload
22 < #bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --start-url 1920 --end-url 1930
22 > #bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots-ng --timeout 10 --show-https-upgrades --show-added-slashes --show-yt-redirects --start-url 445 --end-url 451
23 >
24 > # Run with start/end URLs, record OK codes, suggest OK snapshots, and don't upload
25 > #bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots-ng --suggest-snapshots-ok --timeout 10 --show-https-upgrades --show-added-slashes --show-yt-redirects --start-url 445 --end-url 451
26  
27   # Run with local extlinks and exceptions, start/end URLs, record OK codes, and don't upload
28 < #bash "$VALEXTLINKS" --links "$LINKS_LOCAL" --exceptions "$EXCEPT_LOCAL" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots --skip-archive-links --start-url 1 --end-url 25
28 > #bash "$VALEXTLINKS" --links "$LINKS_LOCAL" --exceptions "$EXCEPT_LOCAL" --output "$REPORT_DIR" --record-ok-links --suggest-snapshots-ng --start-url 1810 --end-url 1815
29  
30   # Run with unfinished screenshot feature, no upload
31   #bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --record-ok-links --take-screenshots "$CHROME"
32  
33 + # Normal run with no upload, snapshot suggestions, https upgrades or added slashes
34 + #bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --timeout 10
35 +
36   # Normal run with no upload
37 < #bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --suggest-snapshots --skip-archive-links --timeout 20
37 > #bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --suggest-snapshots-ng --timeout 10 --show-https-upgrades --show-added-slashes
38  
39   # Normal run
40 < bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --suggest-snapshots --skip-archive-links --timeout 20 --upload "$UPLOAD_INFO"
40 > bash "$VALEXTLINKS" --links "$LINKS_ONLINE" --exceptions "$EXCEPT_ONLINE" --output "$REPORT_DIR" --suggest-snapshots-ng --timeout 10 --show-https-upgrades --show-added-slashes --show-yt-redirects --upload "$UPLOAD_INFO"

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)