From 6f79ed889f6fc0c20b18640f2ba1df06119a466b Mon Sep 17 00:00:00 2001 From: Kushal K S V S Date: Thu, 22 Mar 2018 16:31:55 +0530 Subject: [PATCH] Generating files based on new file structure --- .DS_Store | Bin 10244 -> 10244 bytes tests/html/.DS_Store | Bin 6148 -> 6148 bytes tests/html/source/.DS_Store | Bin 6148 -> 6148 bytes tests/html/source/scripts/top.js | 18 ++++--- tests/runme.sh | 89 ++++++++++++++++--------------- 5 files changed, 57 insertions(+), 50 deletions(-) diff --git a/.DS_Store b/.DS_Store index 4b65ed6a26b05037b686b8e07af639b487466012..c279271a4bba100651422df66d8f0f23f5296e56 100644 GIT binary patch delta 482 zcmZn(XbIS0D8{&NvXPjYiiD(;luW#Ua8hD&c6w2MXf~0jT?X+2{KXmh<(@#XfTGm0%+&Je^rFm^;DW^D%)E4E`wt9YpzII;VN8w_7q3@# zs8j%RL-O+TQaL%59lRm33>*yF42}$548aT;4CM@c46_*4FzjGB%5aO}4Z}A^7Dh2f zB}Q#V6GmG`dqxjNPeyOX5XMNxD8^`rekMk!IkHe1N-?GY8LSK?45?T+8wtMUU??sNF3QWv2LRsLY4rdA delta 472 zcmZn(XbIS0D8{&XvXPjYuBe2Nlytm+a8hD&c6w2MX*TCA$j?EsX)m9h?ug2H&l{?L7TymA($bCp^%}0VLHQNhOG<-8O||0X86kRpOKeQ zj8TbEn^A|+l+m2gfzgps-I>vY(UUOB)qu~2NHo+2ar#DLw4KQJ;fvQOq=w5d-jFD^*R$xmWnU^tOfkds+l zVqkEck%^gwm5rT)gNuWUmn$|nBfmVjB(bEl*eS6n8pI1oEXhcMvP1IobKva6q_E7? z@^}Fe=lr~q#LT?ZBCzJnlvJRSnDETJl>Bn1{L;LXVz4>Ep%57k4o(ivcmeV1YFz^z z1ye)QS{;RI3u8+V+qkxtlS5q9(AF~{x3a3brnYVd(6KB`mu~2NHo+2aL#DLw5Y?FDIY&PpK-)7l-f%ysJW_AvK4xp0F2bsS! VPv#e~g1?m;r3)5aIv; diff --git a/tests/html/source/.DS_Store b/tests/html/source/.DS_Store index e946f9b8afaa4be4b6a0c195ac67d07622531de1..5622a87a0547fbae0f220842ae06829794972253 100644 GIT binary patch delta 326 zcmZoMXfc=|#>B)qu~2NHo+2ab#DLw4H!w0XvQFkgVIzdX1kv81%vDX}OT#0y9) z$w-2-L-O-;;OxYtu*}r*cmWaT{JfIH%)Hbhu;$E^RG^ZW@XWmWl>Bn1{L;LXVz5EM z5E%{*P7cm^0rBc;T>~8jQ$y2Q9ffKOV@nX*xVDy)LtNF+)-xfuvZ}hKwr&Q{u|UAc z2%#DHp)`z|31pyovn;qMFDE}Qoq-vsZ*vagbe7HR9Q+)>P};nZ@jLTmei2I!pmAUm KHwTDpVFm!z-&K47 delta 67 zcmZoMXfc=|#>B`mu~2NHo+2aj#DLw5%#(STk~bGKPhr`-ftiJAGdl-A2T;l8h0NcX VC-aL~axee^BLf4|<^Yi`%m7Z=599y< diff --git a/tests/html/source/scripts/top.js b/tests/html/source/scripts/top.js index dc9c9772c..a308f7fbd 100644 --- a/tests/html/source/scripts/top.js +++ b/tests/html/source/scripts/top.js @@ -1,12 +1,14 @@ // If any value in the 'select' list(s) changes, the corresponding // HTML document is loaded in frame_1. function change() { - var dpi = document.getElementById('dpi').value; - var font = document.getElementById('font').value; - var mode = document.getElementById('mode').value; - var size = document.getElementById('size').value; - var frame = document.getElementById('frame_1'); - var string = "pages/"+dpi+"/"+font+"/"+mode+"/"+size+"/index.html"; + var dpi = document.getElementById('dpi').value; + var font = document.getElementById('font').value; + var mode = document.getElementById('mode').value; + var size = document.getElementById('size').value; + var frame = document.getElementById('frame_1'); + var font_type = font.substring(font.indexOf('.')+1) // Font file extension + var font_name = font.split('.')[0] // Font name without extension + var string = "pages/"+dpi+"/"+font_type+"/"+font_name+"/"+mode+"/"+size+"/index.html"; frame.src = string; } // Function to sort the columns of the table when you click on the header @@ -113,6 +115,6 @@ function topFunction() { } // Function to pause/play the animation function pause_play() { - var div = frame_2.document.getElementById('animation'); - div.classList.toggle('pause'); + var div = frame_2.document.getElementById('animation'); + div.classList.toggle('pause'); } \ No newline at end of file diff --git a/tests/runme.sh b/tests/runme.sh index 6b4e35980..22d660382 100755 --- a/tests/runme.sh +++ b/tests/runme.sh @@ -21,78 +21,83 @@ touch ./html/top.html # Generating top.html file echo " - - FreeType Test Framework - - - - - -
-

Base Version: $FT_TEST_BASE_DLL
- Test Version: $FT_TEST_TEST_DLL -

-
- - ">./html/top.html + + FreeType Test Framework + + + + + +
+

Base Version: $FT_TEST_BASE_DLL
+Test Version: $FT_TEST_TEST_DLL +

+
+ +">./html/top.html ##################################################################### # Filling html/top.html file with links to all the index.html files. +x=""; +y=""; for i in $FT_TEST_DPI; do - mkdir ./html/pages/$i - for j in $FT_TEST_FONT_FILE; do - mkdir ./html/pages/$i/$j - for k in $FT_TEST_RENDER_MODE; do - mkdir ./html/pages/$i/$j/$k - for l in $FT_TEST_PT_SIZE; do - mkdir ./html/pages/$i/$j/$k/$l - mkdir ./html/pages/$i/$j/$k/$l/images - ./tests $FT_TEST_BASE_DLL $FT_TEST_TEST_DLL $j $l $k $i - done - done - done +mkdir ./html/pages/$i +for j in $FT_TEST_FONT_FILE; do +eval x="$( cut -d '.' -f 2- <<< "$j" )"; #Font file type / extension +eval y="$( cut -d '.' -f 1 <<< "$j" )"; #Font file name +mkdir ./html/pages/$i/$x +mkdir ./html/pages/$i/$x/$y +for k in $FT_TEST_RENDER_MODE; do +mkdir ./html/pages/$i/$x/$y/$k +for l in $FT_TEST_PT_SIZE; do +mkdir ./html/pages/$i/$x/$y/$k/$l +mkdir ./html/pages/$i/$x/$y/$k/$l/images +./tests $FT_TEST_BASE_DLL $FT_TEST_TEST_DLL $j $l $k $i +done +done +done done ##################################################################### # Buttons for animation selection echo '
- - -    - -
-
'>>./html/top.html + + +   + +
+
'>>./html/top.html ##################################################################### # Populating the selection lists with options echo '
'>>./html/top.html +
'>>./html/top.html ##################################################################### echo '
'>>./html/top.html +
'>>./html/top.html ##################################################################### echo '
'>>./html/top.html +
'>>./html/top.html ##################################################################### echo '
'>>./html/top.html +
'>>./html/top.html ##################################################################### echo '
- - '>>./html/top.html + +'>>./html/top.html ##################################################################### echo "Font : " $FT_TEST_FONT_FILE echo "Point Size : " $FT_TEST_PT_SIZE