| Å×½ºÆ® :: ¿¬±â :: Èí¿¬ÀÚ Å×½ºÆ® :: ¿¬±â :: Èí¿¬ÀÚ´Â ÇϳªÀÇ ¿¬±âÁֱ⸦ ¼öÇàÇÏ´Â OO ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù. |
Áö±Ý ´Ù¿î·Îµå |
Å×½ºÆ® :: ¿¬±â :: Èí¿¬ÀÚ ¼øÀ§ ¹× ¿ä¾à
- ƯÇã:
- Perl Artistic License
- °Ô½ÃÀÚ À̸§:
- Abe Timmerman
- °Ô½ÃÀÚ À¥»çÀÌÆ®:
- http://search.cpan.org/~abeltje/WWW-CheckSite-0.018/lib/WWW/CheckSite/Spider.pm
Å×½ºÆ® :: ¿¬±â :: Èí¿¬ÀÚ Å±×
Å×½ºÆ® :: ¿¬±â :: Èí¿¬ÀÚ ¼³¸í
Å×½ºÆ® :: ¿¬±â :: Èí¿¬ÀÚ´Â ÇÑ ¿¬±âÁֱ⸦ ¼öÇàÇÏ´Â OO ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù. Test :: Smoke :: Èí¿¬ÀÚ´Â ¿¬±âÁֱ⸦ ÇϳªÀÇ ¿¬±âÁֱ⸦ÇϱâÀ§ÇÑ OO ÀÎÅÍÆäÀ̽ºÀÔ´Ï´Ù .Synopsis »ç¿ë Å×½ºÆ® :: ¿¬±â; Å×½ºÆ®¸¦ »ç¿ëÇϽʽÿÀ :: ¿¬±â :: Èí¿¬ÀÚ; ¿±â Logfile, "> mktest.out"¶Ç´Â "mktest.out ': $!"¸¦ ¸¸µé ¼ö ¾ø½À´Ï´Ù. ³» $ buildcfg = Å×½ºÆ® :: smokebuildcfg-> new ($ conf -> {cfg}); ³» $ policy = test :: smoke :: policy-> new ( '../', $ conf -> {v}); My $ Smoker = Test :: Smoke :: Smoker-> New (* Logfile, $ Conf); Foreach My $ Config ($ BULDCFG-> ±¸¼º) {$ Èí¿¬ÀÚ -> ¿¬±â ($ ±¸¼º, $ Á¤Ã¥); } methodstest :: smoke :: smoker -> new (* glob, % args) new (¿À½) ÆÄÀÏ ÇÚµé°ú ´Ù¸¥ ¿É¼ÇÀ» ÃëÇÕ´Ï´Ù : ddir ºôµå µð·ºÅ丮 fdir Æ÷¸®½ºÆ® ¼Ò½º v ÀÚ¼¼ÇÑ ·¹º§ : 0..2 defaultenv ' $ ENV°¡¾ø´Â Å×½ºÆ®¸¦ÇϽʽÿÀ. {Perlio} IS56x Perlio ¹°°ÇÀ» °Ç³Ê ¶Ý´Ï´Ù. ·ÎÄÌÀº $ ENV {lc_all} force_c_locale ¼¼Æ®¸¦ »ç¿ëÇÏ¿© ´Ù¸¥ TestRunÀ» ¼öÇàÇÕ´Ï´Ù. ¸ðµç ¿¬±â ½ÇÇàÀ»À§ÇÑ {lc_all} = 'C'is_win32´ÂÀÌ mswin32ÀԴϱî? W32CC MSWIN32 (MSVCXX Borland GCC)ÀÇ CCTYPE W32MAKE CCTYPETEST :: Smoke :: Smoker-> Config ($ Å° ±¸¼º ()¿¡ »ç¿ëÇÒ Maker´Â Config ()ÀÔ´Ï´Ù. special Å° ALL_DEFAULTS Ư¼ö Å°ÀÇ ¸ðµç ±âº»°ªÀº ¸ðµç ±âº»°ªÀ» º¸À¯ÇÏ´Â Çؽÿ¡ ´ëÇÑ ÂüÁ¶¸¦ ¹ÝȯÇÕ´Ï´Ù. $ smoker-> tty ($ message)´Â ±âº» filehandle¿¡ ¸Þ½ÃÁö¸¦ ÀμâÇÕ´Ï´Ù. $ Èí¿¬ÀÚ -> ·Î±× ($ message)´Â ¸Þ½ÃÁö¸¦ ·Î±× ÆÄÀÏ, ÆÄÀÏ Çڵ鿡 ÀμâÇÕ´Ï´Ù. $ smoker-> ttylog ($ message) ±âº»°ª°ú ·Î±× ÆÄÀÏ ÆÄÀÏÀÇ ¸Þ½ÃÁö¸¦ ÀμâÇÕ´Ï´Ù. $ ÃÔ¿µÀÚ -> ¿¬±â ($ config ) ¿¬±â () Test :: Smoke :: BuildCFG :: Config Object¸¦ ÃëÇÏ°í (°³ÀÎ) ¿ÀºêÁ§Æ® ¸Þ¼Òµå·Î ¸ðµç ±âº» ´Ü°è¸¦ ½ÇÇàÇÕ´Ï´Ù. $ smoker-> make_distclean () make_distclean () ½ÇÇà make -i distclean 2> / dev / null $ Èí¿¬ÀÚ -> extra_manicheck () extra_manicheck ()Àº $ self-> {v}> 1¿¡¸¸ ÀÛµ¿Çϸç, ¸Å´ÏÆ佺Ʈ¿Í ¼Ò½º Æ®¸®¸¦ ºñ±³ÇÏ´Â Ãß°¡ ¹«°á¼º °Ë»ç¸¦ ¼öÇàÇÕ´Ï´Ù. Ãâ·ÂÀÌ tty·Î Àü¼ÛµË´Ï´Ù. $ smoker-> handle_policy (policy, @substs); handle_policy ()´Â º¯Àü¼Ò ±ÔÄ¢À» Àû¿ëÇÑ ´ÙÀ½ file policy.sh ÆÄÀÏÀ» ÀÛ¼ºÇÏ·Á°í ½ÃµµÇÕ´Ï´Ù. $ smoker-> configure ($ config) ±¸¼º ($ config) ±¸¼º ( ) makefileÀÌ »ý¼º µÈ °æ¿ì makefileÀÌ »ý¼º µÈ °æ¿ì make_test_prep () ½ÇÇà foundmake_test_prep () ½ÇÇàÀ» make-perp·Î ¸¸µé°í test-perp¸¦ ¸¸µé°í tech-perp¸¦ ¸¸µé¸é make_test_prep () ½ÇÇàÀ» ¼öÇàÇÏ´Â °æ¿ì make_test_prep () ½ÇÇàÀ» ¼öÇàÇÏ´Â °æ¿ì make_test_prep () ½ÇÇàÀ» ¼öÇàÇÏ´Â °æ¿ì make_test_prep () ½ÇÇàÀ» ¼öÇàÇÏ´Â °æ¿ì make_test_prep () ½ÇÇàÀ» ¼öÇàÇÏ´Â °æ¿ì make_test_prep () ½ÇÇàÀ» ½ÇÇàÇϸé make_test_prep () ½ÇÇàÀ» ¼öÇàÇÏ°í tech-perpÀ» »ç¿ëÇÏ´Â °æ¿ì true¸¦ ½ÇÇàÇÏ´Â °æ¿ì make_test_prep () ½ÇÇàÀ» ¼öÇàÇÏ´Â °æ¿ì true¸¦ ½ÇÇàÇÏ´Â °æ¿ì true¸¦ ½ÇÇàÇϽʽÿÀ. / perlÀÌ Á¸ÀçÇÕ´Ï´Ù. $ smoker-> make_test () $ self-> extend_with_harness (@nok) $ moker-> make_test_harnessuse test :: harness (test_harness target) ½ÇÆÐÇÑ Å×½ºÆ® Á¤º¸¸¦ ¾ò°í Å×½ºÆ®¸¦ ±«·ÓÈ÷Áö ¸¶½Ê½Ã¿À. $ Èí¿¬ÀÚ - > _run_harness_target ($ target, $ extra)À» ½ÇÇàÇÏ´Â ¸í·ÉÀº test_harness°¡ Ç÷§ÆûÀ» ±â¹ÝÀ¸·Î ´Ù¸£¹Ç·Î Àμö¸¦ ÀÏ¹Ý ·çƾÀ¸·Î Àü´ÞÇؾßÇÕ´Ï´Ù. $ target, $ makeopt´Â make ÇÁ·Î±×·¥¿¡ ´ëÇÑ Ãß°¡ ¿É¼ÇÀ» ÁöÁ¤ÇÕ´Ï´Ù. $ self-> make_minitestmake´Â Perl ½ÇÇà ÆÄÀÏÀ» ¸¸µé ¼ö ¾øÁö¸¸ ¹Ì´ÏÆÛ¸¦ ¸¸µé ¼ö ÀÖµµ·Ï °ü¸® ÇÒ ¼ö ¾ø¾ú±â ¶§¹®¿¡ Minitest¸¦ ¸¸µé ¼ö ÀÖ½À´Ï´Ù. $ self -> _ parse_harness_output ( $ % NOTOK, $ ALL_OK, @lines) Á˼ÛÇÕ´Ï´Ù. $ self-> _ trasnaform_testnames (@NOTOK) _TRANSFORM_TESTNAMES ()´Â Å×½ºÆ® À̸§ ¸ñ·ÏÀ» °¡Á®¿É´Ï´Ù. Å×½ºÆ® (.T Á¢¹Ì»ç ¾øÀÌ´Â DOTS¿Í ÀÌÀ¯¾øÀÌ testName)¸¦ Å°¿Í ÀÌÀ¯·Î t / µð·ºÅ丮¿Í »ó´ëÀûÀÎ ÆÄÀÏ À̸§°ú ÇÔ²² Çؽø¦ Å°¿Í °ªÀ¸·Î ¹ÝȯÇÕ´Ï´Ù. $ self-> _ ½ÇÇà ($ mode ) _run () $ subÀÌ ÁöÁ¤µÇÁö ¾ÊÀº °æ¿ì qx ($ ¸í·É)¸¦ ¹ÝȯÇÕ´Ï´Ù. $ SUB°¡ Á¤ÀÇ µÈ °æ¿ì (¹× CODEREF) $ SUB -> ($ COMMAND, @ARGS)°¡ È£ÃâµË´Ï´Ù. $ self-> _ make ($ mode) _make () È£Ãâ ½ÇÇà ( "$ ¸í·É"), MSWIN32 (¿Ã¹Ù¸¥ ¸ÞÀÌÄ¿, µð·ºÅ丮)¸¦ µ½´Â ¿©ºÐÀÇ ¹°°Ç. $ smoker -> _ make_fork ($ target, $ extra) _make_fork () $ target ¹× make ¸í·É¿¡ ´ëÇÑ $ target ¹× $ Ãß°¡ Àμö¿¡ ´ëÇÑ Àбâ ÆÄÀÌÇÁ¸¦ ¿±´Ï ´Ù. $ Èí¿¬ÀÚ -> _ vms__rooted_logicalthis ÄÚµå ·çÆ®°¡ÀÖ´Â ³í¸®Àû TSP5SRC¸¦ ¼³Á¤ÇÏ°í {ddir}À» ÇØ´ç ·çÆ®·Î º¯°æÇÕ´Ï´Ù. ¿ä±¸ »çÇ× : ¡¤ Perl.
Å×½ºÆ® :: ¿¬±â :: Èí¿¬ÀÚ °ü·Ã ¼ÒÇÁÆ®¿þ¾î