Upload test scripts for ots which I'm currently using. 

- test_unmalicious_fonts.sh 

Apply ots/test/idempotent to all TT/OT files under $BASEDIR in order to verify that: 

* OTS does not reject unmalicious fonts. 
* The new font OTS generates can be loaded by a system font renderer. 

- test_malicious_fonts.sh 

Apply ots/test/validator-checker to all malicious TT/OT files in order to verify that OTS can reject malicious fonts, or the "sanitized" font generated by OTS does not crash a system font renderer. 

- test/validator-checker.cc 

Add Mac support. 

- test/idempotent.cc 

Add Mac and FreeType2 support. 

Example output: 
yusukes@z-yusukes-jp:~/chromium/src/third_party/ots/test$ ./test_unmalicious_fonts.sh 
................ 
FAIL: /usr/share/fonts/truetype/ttf-oriya-fonts/Samyak-Oriya.ttf (Run ./idempotent /usr/share/fonts/truetype/ttf-oriya-fonts/Samyak-Oriya.ttf for more information.) 
........ 
yusukes@z-yusukes-jp:~/chromium/src/third_party/ots/test$ 

Review URL: http://codereview.chromium.org/408020

BUG=27139
TEST=see http://code.google.com/p/ots/wiki/HowToTestOts
TBR=jshin



git-svn-id: http://ots.googlecode.com/svn/trunk@24 a4e77c2c-9104-11de-800e-5b313e0d2bf3
6 files changed
tree: ba2f26e0db609bf7a50c2a5107fb4ebe6e83c0a6
  1. include/
  2. src/
  3. test/
  4. tools/
  5. .ignores
  6. INSTALL
  7. LICENSE
  8. ots.gyp
  9. README