ããã¯ã³ãã³ã lit-3.5 ã§ãUbuntu OnlineãFedora OnlineãWindows ãªã³ã©ã€ã³ ãšãã¥ã¬ãŒã¿ãŒãMAC OS ãªã³ã©ã€ã³ ãšãã¥ã¬ãŒã¿ãŒãªã©ã®è€æ°ã®ç¡æãªã³ã©ã€ã³ ã¯ãŒã¯ã¹ããŒã·ã§ã³ã® XNUMX ã€ã䜿çšããŠãOnWorks ç¡æãã¹ãã£ã³ã° ãããã€ããŒã§å®è¡ã§ããŸãã
ããã°ã©ã ïŒ
NAME
ç¹ç¯ - LLVMçµ±åãã¹ã¿ãŒ
SYNOPSIS
ãªãã [ãªãã·ã§ã³] [ãã¹ã]
DESCRIPTION
ãªãã ã¯ãLLVM ããã³ Clang ã¹ã¿ã€ã«ã®ãã¹ã ã¹ã€ãŒããå®è¡ããããã®ããŒã¿ãã« ããŒã«ã§ããããããã®ãã¹ã ã¹ã€ãŒããèŠçŽãããã®ã§ãã
çµæã衚瀺ãã倱æã®å åãæäŸããŸãã ãªãã 軜éã«ãªãããã«èšèšãããŠããŸã
å¯èœãªéãã·ã³ãã«ãªãŠãŒã¶ãŒ ã€ã³ã¿ãŒãã§ã€ã¹ãåãããã¹ã ããŒã«ã
ãªãã XNUMX ã€ä»¥äžã§å®è¡ããå¿ èŠããããŸã ãã¹ã ã³ãã³ãã©ã€ã³ã§æå®ããŠå®è¡ããŸãã ãã¹ãã§ã§ããããš
ãã¹ããæ€çŽ¢ããããã®åå¥ã®ãã¹ã ãã¡ã€ã«ãŸãã¯ãã£ã¬ã¯ããªã®ããããã«ãªããŸã (ã ãã¹ã çºèŠ).
æå®ãããåãã¹ã㯠(å Žåã«ãã£ãŠã¯äžŠè¡ããŠ) å®è¡ããããã¹ãŠã®ãã¹ããå®äºãããšã
å®è¡ãããŸãã ãªãã æåãŸãã¯å€±æãããã¹ãã®æ°ã«é¢ããæŠèŠæ å ±ãåºåããŸãã
ïŒåç §ããŠãã ãã ãã¹ã ã¹ããŒã¿ã¹ çµæïŒã 㶠ãªãã ããã°ã©ã ã¯ããŒã以å€ã®çµäºã³ãŒããããã°å®è¡ãããŸãã
ãã¹ãã¯å€±æããŸãã
ããã©ã«ãã§ã¯ ãªãã ç°¡æœãªé²è¡ç¶æ³è¡šç€ºã䜿çšããæŠèŠã®ã¿ãåºåããŸãã
ãã¹ãã®å€±æã«é¢ããæ å ±ã èŠã åºå OPTIONS ãå¶åŸ¡ãããªãã·ã§ã³ã«ã€ããŠã¯ã ãªãã
é²è¡ç¶æ³ã®è¡šç€ºãšåºåã
ãªãã ãã¹ãã®å®è¡æ¹æ³ãå¶åŸ¡ããããã®ãªãã·ã§ã³ãå€æ°å«ãŸããŠããŸã (ç¹å®ã®
æ©èœã¯ç¹å®ã®ãã¹ã圢åŒã«äŸåããå ŽåããããŸã)ã èŠã å®è¡ OPTIONS 詳现ã«ã€ããŠã¯ã
æ å ±ã衚瀺ããŸãã
æåŸã«ã ãªãã ãªãã·ã§ã³ã®ãµãã»ããã®ã¿ãå®è¡ããããã®è¿œå ãªãã·ã§ã³ããµããŒãããŸã
ã³ãã³ãã©ã€ã³ã§æå®ããŸãããåç §ããŠãã ããã SELECTION OPTIONS ãã芧ãã ããã
ã«èå³ã®ãããŠãŒã¶ãŒã¯ã ãªãã 建ç¯ãšãèšèšãšã ãªãã ãã¹ãã®å®è£ ã¯æ¬¡ã®ãšããã§ã
LIT ã€ã³ãã©.
å šè¬ç㪠OPTIONS
-NSã - å©ããŠ
衚瀺ããŸã ãªãã ãã«ãã¡ãã»ãŒãžã
-j N, --ã¹ã¬ãã=N
ã©ã³ N 䞊è¡ããŠãã¹ãããŸãã ããã©ã«ãã§ã¯ãããã¯ã
æ€åºããã䜿çšå¯èœãª CPU ã®æ°ã
--config-prefix=åå
æ€çŽ¢ãã NAME.cfgã® ãš NAME.site.cfg ã〠æ€çŽ¢ for test ã¹ã€ãŒãã ãååŸããå¿ èŠãããè of
ç¹ç¯.cfg ãš lit.site.cfg.
--ãã©ã¡ãŒã¿ ååã --ãã©ã¡ãŒã¿ åå=å€
ãŠãŒã¶ãŒå®çŸ©ãã©ã¡ãŒã¿ãè¿œå ãã NAME äžãããã VALUE (ããã§ãªãå Žåã¯ç©ºã®æåå
äžããããŸããïŒã ãããã®ãã©ã¡ãŒã¿ã®æå³ãšäœ¿çšæ³ã¯ãã¹ã ã¹ã€ãŒãã«ãã£ãŠç°ãªããŸãã
åºå OPTIONS
-NSã - éããª
ãã¹ã倱æ以å€ã®åºåãæå¶ããŸãã
-sã --ç°¡æœãª
衚瀺ããåºåãæžãããŸããããšãã°ãåæ Œãããã¹ãã«é¢ããæ å ±ã衚瀺ããŸããã
-vã -詳现
ãã¹ãã®å€±æã«é¢ãã詳现æ å ±ã衚瀺ããŸããããšãã°ã代ããã«ãã¹ãåºåå šäœã衚瀺ããŸãã
ãã¹ãçµæã ãã§ãã
--é²è¡ç¶æ³ããŒãªã
Curses ããŒã¹ã®ããã°ã¬ã¹ããŒã䜿çšããªãã§ãã ããã
å®è¡ OPTIONS
--path=ãã¹
è¿œå ã®æå® ãã¹ ãã¹ãã§å®è¡å¯èœãã¡ã€ã«ãæ€çŽ¢ãããšãã«äœ¿çšããŸãã
--vg valgrind ã§åå¥ã®ãã¹ããå®è¡ããŸã (memcheck ããŒã«ã䜿çš)ã ã®
--ãšã©ãŒçµäºã³ãŒã valgrind ã®åŒæ°ã¯ãvalgrind ã®å€±æãåå ã§äœ¿çšãããããã«äœ¿çšãããŸãã
ããã°ã©ã ã¯ãŒã以å€ã®ã¹ããŒã¿ã¹ã§çµäºããŸãã
ãã®ãªãã·ã§ã³ãæå¹ã«ãããšã ãªãã ãèªåçã«æäŸãããŸãããã«ã°ã©ã€ã³ã"
ç¹å®ã®æ©èœãæ¡ä»¶ä»ãã§ç¡å¹ã«ãã (ãŸãã¯å€±æãäºæãã) ããã«äœ¿çšã§ããæ©èœ
ãã¹ãã
--vg-arg=ARG
æ¥æ --vg ã䜿çšããå Žåã¯ãæž¡ãè¿œå ã®åŒæ°ãæå®ããŸã ãã«ã°ã©ã€ã³ã ãã®ãã®ã
--vg-leak
æ¥æ --vg ã䜿çšããå Žåã¯ãã¡ã¢ãª ãªãŒã¯ ãã§ãã¯ãæå¹ã«ããŸãã ãã®ãªãã·ã§ã³ãæå¹ã«ãããšã ãªãã
ãèªåçã«æäŸãããŸããvg_leakãã«äœ¿çšã§ããæ©èœ
ç¹å®ã®ãã¹ããæ¡ä»¶ä»ãã§ç¡å¹ã«ãã (ãŸãã¯å€±æãäºæãã)ã
--time-tests
åã ã®ãã¹ãã®å®è¡ã«ããã£ãæéã远跡ããçµæãå«ããŸãã
æŠèŠåºåã ããã¯ããã¹ã ã¹ã€ãŒãå ã®ã©ã®ãã¹ãã決å®ããã®ã«åœ¹ç«ã¡ãŸã
å®è¡ã«æãæéãããããŸãã ãã®ãªãã·ã§ã³ã¯æ¬¡ã®å Žåã«æã圹ç«ã¡ãŸãã -j 1.
SELECTION OPTIONS
--max-tests=N
ããããå®è¡ãã N ãã¹ãããŠããçµäºããŸãã
--max-time=N
ããããæ¯åºãã N (ããã) ç§ã§ãã¹ããå®è¡ããŠããçµäºããŸãã
- ã·ã£ããã«
ãã¹ããã©ã³ãã ãªé åºã§å®è¡ããŸãã
ä»å OPTIONS
- ãããã°
ã©ã³ ãªãã ãããã° ã¢ãŒãã§ã¯ãèšå®ã®åé¡ããããã°ããããã ãªãã ãã®ãã®ã
--ã·ã§ãŒã¹ã€ãŒã
æ€åºããããã¹ã ã¹ã€ãŒããäžèŠ§è¡šç€ºããŠçµäºããŸãã
--show-tests
æ€åºããããã¹ãŠã®ãã¹ãããªã¹ãããŠçµäºããŸãã
EXIT ã¹ããŒã¿ã¹
ãªãã çµæã FAIL ãŸã㯠XPASS ã®å Žåãçµäºã³ãŒã 1 ã§çµäºããŸãã ãããªããšã
ã¹ããŒã¿ã¹ 0 ã§çµäºããŸããä»ã®çµäºã³ãŒãã¯ããã¹ãã«é¢é£ããªã倱æã«äœ¿çšãããŸãã
(ãŠãŒã¶ãŒãšã©ãŒãå éšããã°ã©ã ãšã©ãŒãªã©)ã
ãã¹ã çºèŠ
ã«æž¡ãããå ¥å ãªãã åã ã®ãã¹ãããã£ã¬ã¯ããªå šäœããŸãã¯
å®è¡ãããã¹ãã®éå±€ã ã〠ãªãã èµ·åãããšãæåã«å€æãããŸãã
ã®äžéšãšããŠå®è¡ãããã¹ãã®å®å šãªãªã¹ããžã®å ¥å test çºèŠ.
ãªãã ã¢ãã«ã§ã¯ããã¹ãŠã®ãã¹ããäœããã®å éšã«ååšããå¿ èŠããããŸãã test ã¹ã€ãŒã. ãªãã å ¥åã解決ããŸã
ã³ãã³ãã©ã€ã³ã§æå®ããŠãå ¥åãã¹ããäžåãã«æ€çŽ¢ããŠã¹ã€ãŒãããã¹ãããŸã
ãèŠã€ãããŸã§ ç¹ç¯.cfg or lit.site.cfg ãã¡ã€ã«ã ãããã®ãã¡ã€ã«ã¯ãã¹ãã®ããŒã«ãŒãšããŠæ©èœããŸã
ã¹ã€ãŒãããã³æ§æãã¡ã€ã«ãšã㊠ãªãã æ€çŽ¢æ¹æ³ãç解ããããã«ããŒãããŸãã
ãã¹ã ã¹ã€ãŒãå ã§ãã¹ããå®è¡ããŸãã
Once ãªãã å ¥åããã¹ã ã¹ã€ãŒãã«ãããã³ã°ããŸãããè¿œå ããå ¥åã®ãªã¹ããèµ°æ»ããŸãã
åã ã®ãã¡ã€ã«ããã¹ããããã£ã¬ã¯ããªå ã®ãã¹ããååž°çã«æ€çŽ¢ããŸãã
ãã®åäœã«ãããå®è¡ãããã¹ãã®ãµãã»ãããç°¡åã«æå®ã§ãããšåæã«ã
ãã¹ã ã¹ã€ãŒãã®æ§æã䜿çšããŠããã¹ãã®è§£éæ¹æ³ãæ£ç¢ºã«å¶åŸ¡ããŸãã å ããŠã ãªãã
ãã¹ãã¯åžžã«ããã¹ããå«ãŸãããã¹ã ã¹ã€ãŒããšããã¹ãå ã®çžå¯Ÿãã¹ã«ãã£ãŠèå¥ãããŸãã
ãã¹ãã¹ã€ãŒãã é©åã«æ§æããããããžã§ã¯ãã®å Žåãããã«ããã ãªãã 䟿å©ãªãã®ãæäŸãã
ããªãŒå€ã®ãã«ãã«å¯Ÿããæè»ãªãµããŒãã
ãã¹ã ã¹ããŒã¿ã¹ çµæ
åãã¹ãã¯æçµçã«æ¬¡ã® XNUMX ã€ã®çµæã®ãããããçæããŸãã
ãã¹
ãã¹ãã¯æåããŸããã
XFAIL
ãã¹ãã¯å€±æããŸããããããã¯æ³å®å ã®ããšã§ãã ããã¯ã次ã®ããšãå¯èœã«ãããã¹ã圢åŒã«äœ¿çšãããŸãã
ãã¹ããçŸåšæ©èœããŠããªããããã¹ã ã¹ã€ãŒãã«æ®ããŠããããããšãæå®ããŸãã
XPASS
ãã¹ãã¯æåããŸãããã倱æããããšãäºæ³ãããŠããŸããã ããã¯ã次ã®ãã¹ãã«äœ¿çšãããŸãã
倱æããããšãäºæ³ãããããã«æå®ãããŠããŸããããçŸåšã¯æåããŠããŸã (éåžžãæ©èœ
ãã¹ãã¯å£ããŠããã®ã§ä¿®æ£ãããŸãã)ã
ãã§ã€ã«
ãã¹ãã¯å€±æããŸããã
æªè§£æ±º
ãã¹ãçµæã¯å€å®ã§ããŸããã§ããã ããšãã°ãããã¯ãã¹ãã次ã®ãããªå Žåã«çºçããŸãã
å®è¡ã§ããªããããã¹ãèªäœãç¡å¹ã§ãããããã¹ããäžæãããŸããã
ãµããŒããããŠããŸãã
ãã®ç°å¢ã§ã¯ãã¹ãã¯ãµããŒããããŠããŸããã ããã¯ã次ã®ãããªãã¹ã圢åŒã§äœ¿çšãããŸãã
ãµããŒããããŠããªããã¹ããå ±åããŸãã
ãã¹ã圢åŒã«ãã£ãŠã¯ããã¹ãã«ãã£ãŠã¹ããŒã¿ã¹ã«é¢ããè¿œå æ å ±ãçæãããå ŽåããããŸãã
(éåžžã¯å€±æã®ã¿)ã ãåç §ããŠãã ããã åºå OPTIONS 詳现ã«ã€ããŠã¯ãã»ã¯ã·ã§ã³ãåç §ããŠãã ããã
LIT ã€ã³ãã©
ãã®ã»ã¯ã·ã§ã³ã§ã¯ã ãªãã æ°ãããã®ãäœæããããšã«èå³ããããŠãŒã¶ãŒåãã®ãã¹ã ã¢ãŒããã¯ãã£
ãªãã å®è£ ããã¹ãããããæ¢åã®å®è£ ãæ¡åŒµããŸãã
ãªãã proper ã¯äž»ã«ãä»»æã®ãã¹ããæ€åºããŠå®è¡ããããã®ã€ã³ãã©ã¹ãã©ã¯ãã£ã§ãã
ãããã®ãã¹ãã«åäžã®äŸ¿å©ãªã€ã³ã¿ãŒãã§ã€ã¹ãå ¬éããŸãã ãªãã ããèªäœãèµ°ãæ¹ãç¥ããŸãã
ãã¹ãã§ã¯ãªãããã®ããžãã¯ã¯æ¬¡ã®ããã«å®çŸ©ãããŸãã test ã¹ã€ãŒãã«ãŒã .
ãã¹ã ã¹ã€ãŒã
ã«èšèŒã®ããã« ãã¹ã çºèŠããã¹ãã¯åžžã« test ã¹ã€ãŒãã ãã¹ãã¹ã€ãŒã
å«ãŸãããã¹ãã®åœ¢åŒããããã®ãã¹ããèŠã€ããããã®ããžãã¯ãå®çŸ©ããã®ã«åœ¹ç«ã¡ãŸãã
ããã³ãã¹ããå®è¡ããããã®è¿œå æ å ±ã
ãªãã ãã¹ã ã¹ã€ãŒãã以äžãå«ããã£ã¬ã¯ããªãšããŠèå¥ããŸãã ç¹ç¯.cfg or lit.site.cfg ãã¡ã€ã«ïŒãåç §ïŒ
ãŸã --config-prefixïŒã ãã¹ã ã¹ã€ãŒãã¯æåã«ååž°çã«æ€çŽ¢ããŠæ€åºãããŸãã
ã³ãã³ãã©ã€ã³ã§æž¡ããããã¹ãŠã®å ¥åãã¡ã€ã«ã®ãã£ã¬ã¯ããªéå±€ã 䜿çšã§ããŸã
--ã·ã§ãŒã¹ã€ãŒã èµ·åæã«æ€åºããããã¹ã ã¹ã€ãŒãã衚瀺ããŸãã
ãã¹ã ã¹ã€ãŒããæ€åºããããšããã®æ§æãã¡ã€ã«ãããŒããããŸãã èšå®ãã¡ã€ã«èªäœã¯
å®è¡ããã Python ã¢ãžã¥ãŒã«ã æ§æãã¡ã€ã«ãå®è¡ãããšãXNUMX ã€ã®éèŠãªããšãè¡ãããŸãã
ã°ããŒãã«å€æ°ã¯äºåã«å®çŸ©ãããŠããŸãã
ãªãã
ã°ããŒãã« ãªãã æ§æãªããžã§ã¯ã ( LitConfig ã€ã³ã¹ã¿ã³ã¹)ãçµã¿èŸŒã¿ãå®çŸ©ããŸã
ãã¹ã圢åŒãã°ããŒãã«æ§æãã©ã¡ãŒã¿ãããã³ãã®ä»ã®ãã«ã㌠ã«ãŒãã³
ãã¹ãæ§æãå®è£ ããŸãã
èšå®
ããã¯æ§æãªããžã§ã¯ã ( ãã¹ãæ§æ ã€ã³ã¹ã¿ã³ã¹ïŒãã¹ã ã¹ã€ãŒãã®å Žåã
config ãã¡ã€ã«ã«ããŒã¿ãåã蟌ãŸããããšãæåŸ ãããŸãã 次ã®å€æ°ã䜿çšã§ããŸãã
èšå® ãªããžã§ã¯ãããã®äžéšã¯æ§æã«ãã£ãŠèšå®ããå¿ èŠãããããã®ä»ã¯ãªãã·ã§ã³ã§ãã
äºåå®çŸ©:
å [å¿ èŠ] ã¬ããŒããšèšºæã§äœ¿çšãããã¹ã ã¹ã€ãŒãã®ååã
ãã¹ãåœ¢åŒ [å¿ èŠ] æ€åºããã³å®è¡ã«äœ¿çšããããã¹ã圢åŒãªããžã§ã¯ã
ãã¹ãã¹ã€ãŒãå ã®ãã¹ãã éåžžãããã¯æ¬¡ããå ¥æå¯èœãªçµã¿èŸŒã¿ã®ãã¹ã圢åŒã«ãªããŸãã
ã ç¹ç¯ãã©ãŒããã ã¢ãžã¥ãŒã«ãéããŸãã
ãã¹ããœãŒã¹ã«ãŒã ãã¹ã ã¹ã€ãŒã ã«ãŒããžã®ãã¡ã€ã« ã·ã¹ãã ãã¹ã ãã£ã¬ã¯ããªå€ã®ãã«ãã®å Žå
ããã¯ããã¹ãã®ããã«ã¹ãã£ã³ããããã£ã¬ã¯ããªã§ãã
ãã¹ãå®è¡ã«ãŒã ãã£ã¬ã¯ããªå€ãã«ãã®å Žåããªããžã§ã¯ãå ã®ãã¹ã ã¹ã€ãŒã ã«ãŒããžã®ãã¹
ãã£ã¬ã¯ããªã ããã§ãã¹ããå®è¡ãããäžæåºåãã¡ã€ã«ãé 眮ãããŸãã
ç°å¢ ãã¹ããå®è¡ãããšãã«äœ¿çšããç°å¢ãè¡šãèŸæžã
ã¹ã€ãŒãã
æ¥å°ŸèŸ ãªãã ãã¹ãçšã«ãã£ã¬ã¯ããªãã¹ãã£ã³ãããã¹ã圢åŒããã®å€æ°ã¯ãªã¹ãã§ã
ãã¹ããã¡ã€ã«ãèå¥ããããã®ãµãã£ãã¯ã¹ã ã«ãã£ãŠäœ¿ãããïŒ ShTest.
眮æ ãªãã ãã¹ã ã¹ã¯ãªããã«å€æ°ãä»£å ¥ãããã¹ã圢åŒã
å®è¡ãã眮æã®ãªã¹ãã ã«ãã£ãŠäœ¿ãããïŒ ShTest.
ãµããŒããããŠããªã ãµããŒããããŠããªããã£ã¬ã¯ããªãããŒã¯ãããšããã®ãã£ã¬ã¯ããªå ã®ãã¹ãŠã®ãã¹ãã次ã®ããã«ã¬ããŒããããŸãã
ãµããŒããããŠããŸããã ã«ãã£ãŠäœ¿ãããïŒ ShTest.
芪 芪æ§æãããã¯ã以äžãå«ããã£ã¬ã¯ããªã®æ§æãªããžã§ã¯ãã§ãã
ãã¹ãã¹ã€ãŒãããŸãã¯ããªããã
ã«ãŒã ã«ãŒãæ§æã ãããäžçªäžã§ã ãªãã ãããžã§ã¯ãå ã®èšå®ã
ã¯ããŒã³ èšå®ã¯å®éã«ã¯ãã¹ãã¹ã€ãŒãå ã®ãµããã£ã¬ã¯ããªããšã«è€è£œããã
ãã£ã¬ã¯ããªããšã«ããŒã«ã«èšå®ãèš±å¯ããŸãã ã¯ããŒã³ å€æ°ãèšå®ã§ãã
èšå®ãè€è£œããããã³ã«åŒã³åºãããPythoné¢æ°ïŒ
ãµããã£ã¬ã¯ããªïŒãé¢æ°ã¯1ã€ã®åŒæ°ãåãïŒïŒXNUMXïŒèŠª
ïŒïŒïŒæ°ããæ§æïŒ ã¯ããŒã³ æ©èœã¯äžè¬çã«
ïŒ3ïŒã¹ãã£ã³å¯Ÿè±¡ã®æ°ãããã£ã¬ã¯ããªãžã®ãã¹ããã¹ã
ãã€ãã®å€±æ éåžžãã·ã§ã« ãã€ãã䜿çšãããã¹ãã¯ããã€ãäžã®ã³ãã³ãã®ãããããå®è¡ãããå Žåã«å€±æããŸãã
倱æã ãããæãŸãããªãå Žåã¯ããã®å€æ°ã false ã«èšå®ãããšããã¹ãã¯å€±æããã ãã«ãªããŸã
ãã€ãå ã®æåŸã®ã³ãã³ãã倱æããå Žåã
ãã¹ã çºèŠ
ãã¹ãã¹ã€ãŒããèŠã€ãã£ããã ãªãã ãœãŒã¹ãã£ã¬ã¯ããªãååž°çã«èµ°æ»ããŸãïŒä»¥äžã«ç¶ããŸãïŒ
ãã¹ããœãŒã¹ã«ãŒã) ãã¹ããæ¢ããŠããŸãã ã〠ãªãã ãµããã£ã¬ã¯ããªã«å ¥ããšãæåã«æ¬¡ã®ããšããã§ãã¯ãããŸãã
ãã¹ãããããã¹ã ã¹ã€ãŒãããã®ãã£ã¬ã¯ããªã«å®çŸ©ãããŠãããã©ããã確èªããŸãã ããã§ããã°ããã®ãã¹ãã¹ã€ãŒããããŒãããŸã
ååž°çã«ããã以å€ã®å Žåã¯ããã£ã¬ã¯ããªã®ããŒã«ã« ãã¹ãæ§æãã€ã³ã¹ã¿ã³ã¹åããŸã (ã LOCAL
CONFIGURATION ãã¡ã€ã«).
ãã¹ãã¯ããã¹ããå«ãŸãããã¹ã ã¹ã€ãŒããšçžå¯Ÿãã¹ã«ãã£ãŠèå¥ãããŸãã
ãã®ã¹ã€ãŒãã®äžã çžå¯Ÿãã¹ã¯ãã£ã¹ã¯äžã®å®éã®ãã¡ã€ã«ãåç §ããªãå Žåãããããšã«æ³šæããŠãã ããã
äžéšã®ãã¹ãåœ¢åŒ (äŸ: Google ãã¹ã) ãã¹ãæã€ãä»®æ³ãã¹ãããå®çŸ©ããŸãã
å®éã®ãã¹ã ãã¡ã€ã«ãžã®ãã¹ãšãä»®æ³ãã¹ããèå¥ããããã®ãµããã¹ã®äž¡æ¹ãå«ãŸããŸãã
LOCAL CONFIGURATION ãã¡ã€ã«
æ¥æ ãªãã ãã¹ã ã¹ã€ãŒãå ã®ãµããã£ã¬ã¯ããªãããŒãããããŒã«ã« ãã¹ãæ§æãã€ã³ã¹ã¿ã³ã¹åããŸãã
芪æ¹åã®èšå®ãè€è£œããããšã«ãã --- ãã®èšå®ã®ã«ãŒã
ãã§ãŒã³ã¯åžžã«ãã¹ã ã¹ã€ãŒãã«ãªããŸãã ãã¹ãæ§æã®è€è£œãå®äºããã ãªãã ããã§ãã¯ããŸã
lit.local.cfg ãµããã£ã¬ã¯ããªå ã®ãã¡ã€ã«ã ååšããå Žåããã®ãã¡ã€ã«ã¯ããŒãããã
åã ã®ãã£ã¬ã¯ããªããšã«æ§æãç¹æ®åããããã«äœ¿çšãããŸãã ãã®æœèšã¯ã
ãªãã·ã§ã³ã®ãã¹ãã®ãµããã£ã¬ã¯ããªãå®çŸ©ããããä»ã®æ§æãå€æŽãããããããã«äœ¿çšãããŸã
ãã©ã¡ãŒã¿ --- ããšãã°ããã¹ã圢åŒããã¹ããèå¥ãããµãã£ãã¯ã¹ãå€æŽããŸãã
ãã¡ã€ã«ã
ãã¹ã RUN åºå FORMAT
ãã® ãªãã ãã¹ãå®è¡ã®åºåã¯ãç°¡æœããã³è©³çŽ°ã®äž¡æ¹ã§æ¬¡ã®ã¹ããŒãã«æºæ ããŸãã
(ãã ããã·ã§ãŒã ã¢ãŒãã§ã¯ PASS ã©ã€ã³ã¯è¡šç€ºãããŸãã)ã ãã®ã¹ããŒããéžæãããŸãã
ãã·ã³ã«ãã確å®ãªè§£æãæ¯èŒçç°¡åã§ããããš (ããšãã°ãbuildbot ãã°)
ã¹ã¯ã¬ã€ãã³ã°)ãããã³çæããä»ã®ããŒã«çšã
åãã¹ãçµæã¯ã以äžã«äžèŽããè¡ã«è¡šç€ºãããããšãæåŸ ãããŸãã
: ( )
ã³ã©ãã¬ãŒ PASSãFAILãXFAILãXPASS ãªã©ã®æšæºçãªãã¹ãçµæã§ãã
æªè§£æ±ºããŸãã¯æªãµããŒãã IMPROVED ãš REGRESSED ã®ããã©ãŒãã³ã¹çµæã³ãŒãã¯æ¬¡ã®ãšããã§ãã
ãèš±å¯ãããŸãã
ãã® <ãã¹ã åå> ãã£ãŒã«ãã«ã¯ãæ¹è¡ãå«ãŸãªãä»»æã®æååãå«ããããšãã§ããŸãã
ãã® <é²æç¶æ³ æ å ±> ãã£ãŒã«ãã¯ã(1/300) ã
空ã«ããããšãã§ããŸããã空ã®å Žåã§ãæ¬åŒ§ãå¿ èŠã§ãã
åãã¹ãçµæã«ã¯ã次ã®è¿œå ã® (è€æ°è¡ã®) ãã°æ å ±ãå«ãŸããå ŽåããããŸãã
ãã©ãŒãããïŒ
ãã¹ã 'ïŒ ïŒã
...ãã°ã¡ãã»ãŒãž ...
ã³ã©ãã¬ãŒ <ãã¹ã åå> åã«å ±åããããã¹ãã®ååã§ããå¿ èŠããããŸãã <ãã° ããªããšãŒã¿ãŒ> ã
ã*ãæåã®æåå at æäœ é·ã㯠20 æå (æšå¥šãããé·ã㯠XNUMX)ãããã³
<æ«å°Ÿ ããªããšãŒã¿ãŒ> ã¯ä»»æã® (解æãããŠããªã) æååã§ãã
以äžã¯ãXNUMX ã€ã®ãã¹ã AãBãCãããã³ãã¹ãã§æ§æããããã¹ãå®è¡åºåã®äŸã§ãã
Dãããã³å€±æãããã¹ãã®ãã° ã¡ãã»ãŒãž C:
ãã¹: A (1/4)
ãã¹: B (2/4)
äžåæ Œ: C (3/4)
******************** ãã¹ã 'C' ã倱æããŸãã ********************
ãã¹ããCãã¯çµäºã³ãŒã 1 ã®çµæ倱æããŸããã
********************
ãã¹: D (4/4)
LIT å®æœäŸ TESTS
ãã® ãªãã ãã£ã¹ããªãã¥ãŒã·ã§ã³ã«ã¯ããã¹ã ã¹ã€ãŒãã®å®è£ äŸãããã€ãå«ãŸããŠããŸãã
äŸãã¹ã ãã£ã¬ã¯ããªã«ãããŸãã
onworks.net ãµãŒãã¹ã䜿çšããŠãªã³ã©ã€ã³ã§ lit-3.5 ã䜿çšãã