Skip to content

Commit 03ee262

Browse files
update library function check script
1 parent ec1629a commit 03ee262

File tree

3 files changed

+80
-17
lines changed

3 files changed

+80
-17
lines changed

tools/funcs_tested/gen_list.sh renamed to test/check_tested.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,17 @@ set -ex
99
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
1010

1111
# Let's go back to the root of the toolchain
12-
cd $DIR/../../
12+
cd $DIR/../
1313

1414
# All header files we want to extract prototypes from
15-
libraries="fileioc graphx keypadc"
15+
libraries="fileioc fontlibc graphx keypadc"
1616

1717
# The destination markdown file
18-
outfile=$DIR/tested-functions-list.md
18+
outfile=$DIR/tested-list.md
1919

2020
# Find once the example sources we'll be searching in
2121
exampleFiles=$(find ./examples -type f \( -iname '*.c' -o -iname '*.cpp' -o -iname '*.h' -o -iname '*.hpp' -o -iname '*.asm' \))
22+
testFiles=$(find ./test -type f \( -iname '*.c' -o -iname '*.cpp' -o -iname '*.h' -o -iname '*.hpp' -o -iname '*.asm' \))
2223

2324
echo "## List of tested functions" > $outfile
2425

@@ -37,7 +38,7 @@ do
3738
: $((totalFuncs++))
3839
func=${funcAndLine%:*}
3940
line=${funcAndLine##*:}
40-
count=$(grep -l "\b${func}\s*(" ${exampleFiles} | wc -l | tr -d ' ')
41+
count=$(grep -l "\b${func}\s*(" ${exampleFiles} ${testFiles} | wc -l | tr -d ' ')
4142
if [[ $count -eq 0 ]]
4243
then
4344
foundStr=""
@@ -52,6 +53,6 @@ do
5253
echo -e "\n**Total: ${totalTested}/${totalFuncs} tested.**" >> $outfile
5354
done
5455

55-
echo -e "\n\n---\n*Generated by [gen_list.sh](/tools/funcs_tested/gen_list.sh)*" >> $outfile
56+
echo -e "\n\n---\n*Generated by [check.sh](/test/check.sh)*" >> $outfile
5657

5758
cat $outfile

test/fileioc/resize/readme.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

tools/funcs_tested/tested-functions-list.md renamed to test/tested-list.md

Lines changed: 74 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@
44
| Function | Tested? | Occurrences |
55
| -------- | ------- | ----------- |
66
| [`ti_CloseAll`](/#L14) ||
7-
| [`ti_Open`](/#L15) | YES | [in 5 files](https://github.com/search?q=ti_Open+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
7+
| [`ti_Open`](/#L15) | YES | [in 4 files](https://github.com/search?q=ti_Open+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
88
| [`ti_OpenVar`](/#L16) | YES | [in 1 file](https://github.com/search?q=ti_OpenVar+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
9-
| [`ti_Close`](/#L17) | YES | [in 3 files](https://github.com/search?q=ti_Close+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
9+
| [`ti_Close`](/#L17) | YES | [in 5 files](https://github.com/search?q=ti_Close+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
1010
| [`ti_Write`](/#L18) | YES | [in 1 file](https://github.com/search?q=ti_Write+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
1111
| [`ti_Read`](/#L19) | YES | [in 1 file](https://github.com/search?q=ti_Read+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
1212
| [`ti_GetC`](/#L20) | YES | [in 1 file](https://github.com/search?q=ti_GetC+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
1313
| [`ti_PutC`](/#L21) | YES | [in 1 file](https://github.com/search?q=ti_PutC+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
14-
| [`ti_Delete`](/#L22) | YES | [in 1 file](https://github.com/search?q=ti_Delete+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
14+
| [`ti_Delete`](/#L22) | YES | [in 3 files](https://github.com/search?q=ti_Delete+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
1515
| [`ti_DeleteVar`](/#L23) ||
1616
| [`ti_Seek`](/#L24) ||
17-
| [`ti_Resize`](/#L25) | |
17+
| [`ti_Resize`](/#L25) | YES | [in 2 files](https://github.com/search?q=ti_Resize+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
1818
| [`ti_IsArchived`](/#L26) ||
1919
| [`ti_SetArchiveStatus`](/#L27) ||
2020
| [`ti_Tell`](/#L28) ||
2121
| [`ti_Rewind`](/#L29) | YES | [in 1 file](https://github.com/search?q=ti_Rewind+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
22-
| [`ti_GetSize`](/#L30) | YES | [in 1 file](https://github.com/search?q=ti_GetSize+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
22+
| [`ti_GetSize`](/#L30) | YES | [in 3 files](https://github.com/search?q=ti_GetSize+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
2323
| [`ti_GetTokenString`](/#L34) | YES | [in 1 file](https://github.com/search?q=ti_GetTokenString+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
24-
| [`ti_GetDataPtr`](/#L35) | YES | [in 4 files](https://github.com/search?q=ti_GetDataPtr+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
24+
| [`ti_GetDataPtr`](/#L35) | YES | [in 1 file](https://github.com/search?q=ti_GetDataPtr+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
2525
| [`ti_Detect`](/#L36) | YES | [in 1 file](https://github.com/search?q=ti_Detect+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
2626
| [`ti_DetectVar`](/#L37) ||
2727
| [`ti_SetVar`](/#L41) | YES | [in 2 files](https://github.com/search?q=ti_SetVar+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
@@ -40,7 +40,72 @@
4040
| [`ti_ArchiveHasRoom`](/#L60) ||
4141
| [`ti_SetGCBehavior`](/#L65) ||
4242

43-
**Total: 21/36 tested.**
43+
**Total: 22/36 tested.**
44+
45+
### fontlibc
46+
| Function | Tested? | Occurrences |
47+
| -------- | ------- | ----------- |
48+
| [`fontlib_SetWindow`](/#L16) | YES | [in 1 file](https://github.com/search?q=fontlib_SetWindow+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
49+
| [`fontlib_SetWindowFullScreen`](/#L17) | YES | [in 2 files](https://github.com/search?q=fontlib_SetWindowFullScreen+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
50+
| [`fontlib_GetWindowXMin`](/#L18) | YES | [in 1 file](https://github.com/search?q=fontlib_GetWindowXMin+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
51+
| [`fontlib_GetWindowYMin`](/#L19) | YES | [in 1 file](https://github.com/search?q=fontlib_GetWindowYMin+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
52+
| [`fontlib_GetWindowWidth`](/#L20) | YES | [in 1 file](https://github.com/search?q=fontlib_GetWindowWidth+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
53+
| [`fontlib_GetWindowHeight`](/#L21) | YES | [in 1 file](https://github.com/search?q=fontlib_GetWindowHeight+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
54+
| [`fontlib_SetCursorPosition`](/#L22) | YES | [in 2 files](https://github.com/search?q=fontlib_SetCursorPosition+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
55+
| [`fontlib_GetCursorX`](/#L23) ||
56+
| [`fontlib_GetCursorY`](/#L24) | YES | [in 1 file](https://github.com/search?q=fontlib_GetCursorY+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
57+
| [`fontlib_ShiftCursorPosition`](/#L25) | YES | [in 1 file](https://github.com/search?q=fontlib_ShiftCursorPosition+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
58+
| [`fontlib_SetFont`](/#L26) | YES | [in 2 files](https://github.com/search?q=fontlib_SetFont+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
59+
| [`fontlib_SetForegroundColor`](/#L27) ||
60+
| [`fontlib_SetBackgroundColor`](/#L28) ||
61+
| [`fontlib_SetColors`](/#L29) | YES | [in 2 files](https://github.com/search?q=fontlib_SetColors+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
62+
| [`fontlib_GetForegroundColor`](/#L30) ||
63+
| [`fontlib_GetBackgroundColor`](/#L31) ||
64+
| [`fontlib_SetTransparency`](/#L32) | YES | [in 2 files](https://github.com/search?q=fontlib_SetTransparency+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
65+
| [`fontlib_GetTransparency`](/#L33) ||
66+
| [`fontlib_SetLineSpacing`](/#L34) | YES | [in 1 file](https://github.com/search?q=fontlib_SetLineSpacing+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
67+
| [`fontlib_GetSpaceAbove`](/#L35) ||
68+
| [`fontlib_GetSpaceBelow`](/#L36) ||
69+
| [`fontlib_SetItalicSpacingAdjustment`](/#L37) ||
70+
| [`fontlib_GetItalicSpacingAdjustment`](/#L38) ||
71+
| [`fontlib_GetCurrentFontHeight`](/#L39) | YES | [in 1 file](https://github.com/search?q=fontlib_GetCurrentFontHeight+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
72+
| [`fontlib_ValidateCodePoint`](/#L40) ||
73+
| [`fontlib_GetTotalGlyphs`](/#L41) ||
74+
| [`fontlib_GetFirstGlyph`](/#L42) ||
75+
| [`fontlib_SetNewlineCode`](/#L43) ||
76+
| [`fontlib_GetNewlineCode`](/#L44) ||
77+
| [`fontlib_SetAlternateStopCode`](/#L45) ||
78+
| [`fontlib_GetAlternateStopCode`](/#L46) ||
79+
| [`fontlib_SetFirstPrintableCodePoint`](/#L47) ||
80+
| [`fontlib_GetFirstPrintableCodePoint`](/#L48) ||
81+
| [`fontlib_SetDrawIntCodePoints`](/#L49) ||
82+
| [`fontlib_GetDrawIntMinus`](/#L50) ||
83+
| [`fontlib_GetDrawIntZero`](/#L51) ||
84+
| [`fontlib_GetGlyphWidth`](/#L52) ||
85+
| [`fontlib_GetStringWidth`](/#L53) | YES | [in 1 file](https://github.com/search?q=fontlib_GetStringWidth+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
86+
| [`fontlib_GetStringWidthL`](/#L54) ||
87+
| [`fontlib_GetLastCharacterRead`](/#L55) ||
88+
| [`fontlib_DrawGlyph`](/#L56) | YES | [in 1 file](https://github.com/search?q=fontlib_DrawGlyph+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
89+
| [`fontlib_DrawString`](/#L57) | YES | [in 2 files](https://github.com/search?q=fontlib_DrawString+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
90+
| [`fontlib_DrawStringL`](/#L58) ||
91+
| [`fontlib_DrawInt`](/#L59) ||
92+
| [`fontlib_DrawUInt`](/#L60) ||
93+
| [`fontlib_ClearEOL`](/#L61) | YES | [in 1 file](https://github.com/search?q=fontlib_ClearEOL+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
94+
| [`fontlib_ClearWindow`](/#L62) | YES | [in 1 file](https://github.com/search?q=fontlib_ClearWindow+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
95+
| [`fontlib_Newline`](/#L63) | YES | [in 1 file](https://github.com/search?q=fontlib_Newline+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
96+
| [`fontlib_SetNewlineOptions`](/#L64) | YES | [in 2 files](https://github.com/search?q=fontlib_SetNewlineOptions+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
97+
| [`fontlib_GetNewlineOptions`](/#L65) ||
98+
| [`fontlib_GetFontPackName`](/#L69) ||
99+
| [`fontlib_GetFontByIndex`](/#L70) | YES | [in 1 file](https://github.com/search?q=fontlib_GetFontByIndex+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
100+
| [`fontlib_GetFontByIndexRaw`](/#L71) ||
101+
| [`fontlib_GetFontByStyle`](/#L72) | YES | [in 1 file](https://github.com/search?q=fontlib_GetFontByStyle+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
102+
| [`fontlib_GetFontByStyleRaw`](/#L73) ||
103+
| [`fontlib_ScrollWindowDown`](/#L77) ||
104+
| [`fontlib_ScrollWindowUp`](/#L78) ||
105+
| [`fontlib_Home`](/#L79) ||
106+
| [`fontlib_HomeUp`](/#L80) | YES | [in 1 file](https://github.com/search?q=fontlib_HomeUp+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
107+
108+
**Total: 24/59 tested.**
44109

45110
### graphx
46111
| Function | Tested? | Occurrences |
@@ -146,7 +211,7 @@
146211
### keypadc
147212
| Function | Tested? | Occurrences |
148213
| -------- | ------- | ----------- |
149-
| [`kb_Scan`](/#L14) | YES | [in 4 files](https://github.com/search?q=kb_Scan+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
214+
| [`kb_Scan`](/#L14) | YES | [in 3 files](https://github.com/search?q=kb_Scan+repo%3ACE-Programming%2Ftoolchain+path%3Aexamples&type=Code)
150215
| [`kb_ScanGroup`](/#L15) ||
151216
| [`kb_AnyKey`](/#L16) ||
152217
| [`kb_Reset`](/#L17) ||
@@ -155,4 +220,4 @@
155220

156221

157222
---
158-
*Generated by [gen_list.sh](/tools/funcs_tested/gen_list.sh)*
223+
*Generated by [check.sh](/test/check.sh)*

0 commit comments

Comments
 (0)