-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* The link verification change * Include the option to exclude urls, add in tests for it * Add in more tests, and info about them in the readme ---------
- Loading branch information
Showing
12 changed files
with
175 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
https://dummy-url.com/ota.bin | ||
https://dummy-url.com/ota.com | ||
https://dummy-url-three.com/ota.bin |
11 changes: 11 additions & 0 deletions
11
link-verifier/fileTests/badFiles/fileWithLowercasemdIntheNameAndABrokenLink.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# I am a test file to make sure the regex name replacement only replaces files | ||
# that end in .md, not all files with md in their name. | ||
# I also exit to make sure we skip files that don't end in .[c, h, dox, md, html] | ||
# When using the default input | ||
# Here are two links that exist | ||
[verify-links.py](../../verify-links.py) | ||
[CI-CD-Github-Actions](https://github.com/FreeRTOS/CI-CD-Github-Actions] | ||
|
||
# Here's a link that doesn't exist that should cause us to fail if searched | ||
# But since we aren't searched by default this broken link should not cause an error | ||
[Incredible link](https://github.com/FreeRTOS/A-Repo-That-Wins-You-The-Lottery) |
11 changes: 11 additions & 0 deletions
11
link-verifier/fileTests/badFiles/fileWithMDIntheNameAndABrokenLink.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# I am a test file to make sure the regex name replacement only replaces files | ||
# that end in .md, not all files with md in their name. | ||
# I also exit to make sure we skip files that don't end in .[c, h, dox, md, html] | ||
# When using the default input | ||
# Here are two links that exist | ||
[verify-links.py](../../verify-links.py) | ||
[CI-CD-Github-Actions](https://github.com/FreeRTOS/CI-CD-Github-Actions] | ||
|
||
# Here's a link that doesn't exist that should cause us to fail if searched | ||
# But since we aren't searched by default this broken link should not cause an error | ||
[Incredible link](https://github.com/FreeRTOS/A-Repo-That-Wins-You-The-Lottery) |
11 changes: 11 additions & 0 deletions
11
link-verifier/fileTests/badFiles/fileWithMDIntheNameAndABrokenLink.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# I am a test file to make sure the regex name replacement only replaces files | ||
# that end in .md, not all files with md in their name. | ||
# I also exit to make sure we skip files that don't end in .[c, h, dox, md, html] | ||
# When using the default input | ||
# Here are two links that exist | ||
[verify-links.py](../../verify-links.py) | ||
[CI-CD-Github-Actions](https://github.com/FreeRTOS/CI-CD-Github-Actions] | ||
|
||
# Here's a link that doesn't exist that should cause us to fail if searched | ||
# But since we aren't searched by default this broken link should not cause an error | ||
[Incredible link](https://github.com/FreeRTOS/A-Repo-That-Wins-You-The-Lottery) |
5 changes: 5 additions & 0 deletions
5
link-verifier/fileTests/goodFiles/fileWithLowercasemdIntheName.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# I am a test file to make sure the regex name replacement only | ||
# replaces files that end in .md, not all files with md in their name. | ||
# Here's a random link for it to test as well | ||
[verify-links.py](../../verify-links.py) | ||
[CI-CD-Github-Actions](https://github.com/FreeRTOS/CI-CD-Github-Actions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# I am a test file to make sure the regex name replacement only | ||
# replaces files that end in .md, not all files with md in their name. | ||
# Here's a random link for it to test as well | ||
[verify-links.py](../../verify-links.py) | ||
[CI-CD-Github-Actions](https://github.com/FreeRTOS/CI-CD-Github-Actions) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# I am a test file to make sure the regex name replacement only replaces files | ||
# that end in .md, not all files with md in their name. | ||
# As this would cause the python script to fail | ||
|
||
# When using the default input | ||
# Here are two links that exist | ||
[verify-links.py](../../verify-links.py) | ||
[CI-CD-Github-Actions](https://github.com/FreeRTOS/CI-CD-Github-Actions] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters