clang: Cleanup style/security issues in the test.sh script.
clang: Cleanup style/security issues in the test.sh script.

- Function names:
Lower-case, with underscores to separate words. Parentheses are required after
the function name. The keyword function is disallowed.

- Use "$(...)" for commands.

- Test:
[ ... ] is preferred over [[, test and /usr/bin/[.

[[ ... ]] is not available in POSIX shell or dash. For testing string equality use =, as == is not in POSIX.

BUG=None
TEST=./test.sh ../../../../third_party/llvm-build/Release+Asserts/

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

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@77409 0039d316-1c4b-4281-b951-d872f2087c98

hgl888/chromium-crosswalk-efl,markYoungH/chromium.src,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,hgl888/chromium-crosswalk,patrickm/chromium.src,rogerwang/chromium,anirudhSK/chromium,patrickm/chromium.src,zcbenz/cefode-chromium,anirudhSK/chromium,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,hgl888/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,zcbenz/cefode-chromium,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,nacl-webkit/chrome_deps,mogoweb/chromium-crosswalk,ChromiumWebApps/chromium,hgl888/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,Chilledheart/chromium,krieger-od/nwjs_chromium.src,Chilledheart/chromium,dednal/chromium.src,Fireblend/chromium-crosswalk,dushu1203/chromium.src,keishi/chromium,Jonekee/chromium.src,ondra-novak/chromium.src,hgl888/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,zcbenz/cefode-chromium,patrickm/chromium.src,markYoungH/chromium.src,hujiajie/pa-chromium,junmin-zhu/chromium-rivertrail,dednal/chromium.src,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl,timopulkkinen/BubbleFish,keishi/chromium,Chilledheart/chromium,bright-sparks/chromium-spacewalk,anirudhSK/chromium,zcbenz/cefode-chromium,M4sse/chromium.src,ChromiumWebApps/chromium,nacl-webkit/chrome_deps,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,jaruba/chromium.src,Fireblend/chromium-crosswalk,anirudhSK/chromium,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,Jonekee/chromium.src,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,keishi/chromium,krieger-od/nwjs_chromium.src,ondra-novak/chromium.src,ltilve/chromium,crosswalk-project/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.src,fujunwei/chromium-crosswalk,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,keishi/chromium,crosswalk-project/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,rogerwang/chromium,Just-D/chromium-1,ltilve/chromium,rogerwang/chromium,ltilve/chromium,mogoweb/chromium-crosswalk,rogerwang/chromium,PeterWangIntel/chromium-crosswalk,dushu1203/chromium.src,TheTypoMaster/chromium-crosswalk,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,ondra-novak/chromium.src,fujunwei/chromium-crosswalk,timopulkkinen/BubbleFish,mohamed--abdel-maksoud/chromium.src,markYoungH/chromium.src,TheTypoMaster/chromium-crosswalk,dednal/chromium.src,hgl888/chromium-crosswalk,mogoweb/chromium-crosswalk,Just-D/chromium-1,krieger-od/nwjs_chromium.src,M4sse/chromium.src,axinging/chromium-crosswalk,keishi/chromium,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,bright-sparks/chromium-spacewalk,hgl888/chromium-crosswalk,chuan9/chromium-crosswalk,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,littlstar/chromium.src,M4sse/chromium.src,dushu1203/chromium.src,Fireblend/chromium-crosswalk,patrickm/chromium.src,anirudhSK/chromium,robclark/chromium,Jonekee/chromium.src,hgl888/chromium-crosswalk-efl,rogerwang/chromium,ltilve/chromium,Fireblend/chromium-crosswalk,ChromiumWebApps/chromium,dushu1203/chromium.src,ondra-novak/chromium.src,PeterWangIntel/chromium-crosswalk,axinging/chromium-crosswalk,junmin-zhu/chromium-rivertrail,littlstar/chromium.src,mogoweb/chromium-crosswalk,pozdnyakov/chromium-crosswalk,robclark/chromium,crosswalk-project/chromium-crosswalk-efl,Pluto-tv/chromium-crosswalk,ltilve/chromium,timopulkkinen/BubbleFish,bright-sparks/chromium-spacewalk,nacl-webkit/chrome_deps,crosswalk-project/chromium-crosswalk-efl,Jonekee/chromium.src,nacl-webkit/chrome_deps,ondra-novak/chromium.src,pozdnyakov/chromium-crosswalk,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,littlstar/chromium.src,jaruba/chromium.src,Just-D/chromium-1,zcbenz/cefode-chromium,PeterWangIntel/chromium-crosswalk,bright-sparks/chromium-spacewalk,Chilledheart/chromium,dednal/chromium.src,Jonekee/chromium.src,rogerwang/chromium,junmin-zhu/chromium-rivertrail,jaruba/chromium.src,nacl-webkit/chrome_deps,Just-D/chromium-1,hujiajie/pa-chromium,chuan9/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Jonekee/chromium.src,timopulkkinen/BubbleFish,hujiajie/pa-chromium,bright-sparks/chromium-spacewalk,ChromiumWebApps/chromium,zcbenz/cefode-chromium,M4sse/chromium.src,dednal/chromium.src,hujiajie/pa-chromium,Fireblend/chromium-crosswalk,bright-sparks/chromium-spacewalk,littlstar/chromium.src,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,axinging/chromium-crosswalk,dushu1203/chromium.src,dushu1203/chromium.src,axinging/chromium-crosswalk,jaruba/chromium.src,nacl-webkit/chrome_deps,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,Just-D/chromium-1,pozdnyakov/chromium-crosswalk,jaruba/chromium.src,axinging/chromium-crosswalk,Jonekee/chromium.src,littlstar/chromium.src,littlstar/chromium.src,crosswalk-project/chromium-crosswalk-efl,jaruba/chromium.src,robclark/chromium,timopulkkinen/BubbleFish,robclark/chromium,crosswalk-project/chromium-crosswalk-efl,hujiajie/pa-chromium,robclark/chromium,pozdnyakov/chromium-crosswalk,markYoungH/chromium.src,jaruba/chromium.src,TheTypoMaster/chromium-crosswalk,patrickm/chromium.src,timopulkkinen/BubbleFish,ondra-novak/chromium.src,markYoungH/chromium.src,nacl-webkit/chrome_deps,Pluto-tv/chromium-crosswalk,M4sse/chromium.src,ChromiumWebApps/chromium,crosswalk-project/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,nacl-webkit/chrome_deps,timopulkkinen/BubbleFish,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,Chilledheart/chromium,anirudhSK/chromium,axinging/chromium-crosswalk,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,Just-D/chromium-1,Fireblend/chromium-crosswalk,jaruba/chromium.src,ChromiumWebApps/chromium,mogoweb/chromium-crosswalk,dushu1203/chromium.src,hgl888/chromium-crosswalk,ChromiumWebApps/chromium,Jonekee/chromium.src,markYoungH/chromium.src,Jonekee/chromium.src,junmin-zhu/chromium-rivertrail,ltilve/chromium,robclark/chromium,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,zcbenz/cefode-chromium,Fireblend/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,fujunwei/chromium-crosswalk,Jonekee/chromium.src,dushu1203/chromium.src,zcbenz/cefode-chromium,junmin-zhu/chromium-rivertrail,pozdnyakov/chromium-crosswalk,Chilledheart/chromium,M4sse/chromium.src,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,dednal/chromium.src,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,Just-D/chromium-1,anirudhSK/chromium,keishi/chromium,hgl888/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,nacl-webkit/chrome_deps,rogerwang/chromium,TheTypoMaster/chromium-crosswalk,dednal/chromium.src,mogoweb/chromium-crosswalk,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,ondra-novak/chromium.src,hgl888/chromium-crosswalk,rogerwang/chromium,patrickm/chromium.src,anirudhSK/chromium,TheTypoMaster/chromium-crosswalk,pozdnyakov/chromium-crosswalk,chuan9/chromium-crosswalk,patrickm/chromium.src,rogerwang/chromium,robclark/chromium,littlstar/chromium.src,Just-D/chromium-1,Pluto-tv/chromium-crosswalk,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,M4sse/chromium.src,dednal/chromium.src,keishi/chromium,markYoungH/chromium.src,dednal/chromium.src,chuan9/chromium-crosswalk,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,junmin-zhu/chromium-rivertrail,dushu1203/chromium.src,keishi/chromium,krieger-od/nwjs_chromium.src,bright-sparks/chromium-spacewalk,timopulkkinen/BubbleFish,TheTypoMaster/chromium-crosswalk,hujiajie/pa-chromium,Chilledheart/chromium,junmin-zhu/chromium-rivertrail,hujiajie/pa-chromium,keishi/chromium,ChromiumWebApps/chromium,chuan9/chromium-crosswalk,junmin-zhu/chromium-rivertrail,Pluto-tv/chromium-crosswalk,hujiajie/pa-chromium,rogerwang/chromium,ChromiumWebApps/chromium,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,axinging/chromium-crosswalk,Chilledheart/chromium,M4sse/chromium.src,patrickm/chromium.src,dednal/chromium.src,fujunwei/chromium-crosswalk,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.src,ltilve/chromium,M4sse/chromium.src,ltilve/chromium,chuan9/chromium-crosswalk,littlstar/chromium.src,robclark/chromium,ondra-novak/chromium.src,mogoweb/chromium-crosswalk,hujiajie/pa-chromium,chuan9/chromium-crosswalk,Chilledheart/chromium,axinging/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Jonekee/chromium.src,zcbenz/cefode-chromium,ChromiumWebApps/chromium,robclark/chromium,hgl888/chromium-crosswalk,ltilve/chromium,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk,markYoungH/chromium.src,dushu1203/chromium.src,anirudhSK/chromium,anirudhSK/chromium,crosswalk-project/chromium-crosswalk-efl,timopulkkinen/BubbleFish,TheTypoMaster/chromium-crosswalk,keishi/chromium,fujunwei/chromium-crosswalk,junmin-zhu/chromium-rivertrail,M4sse/chromium.src,markYoungH/chromium.src,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,keishi/chromium,jaruba/chromium.src,hgl888/chromium-crosswalk-efl,robclark/chromium,bright-sparks/chromium-spacewalk