Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Cov++ÔÚLinuxϼòµ¥Ê¹Óà Èí¼þ¸²¸ÇÂʹ¤¾ß


Covtool
ÊÇÒ»¸öÓöÔ
C++
´úÂë½øÐÐÔËÐÐʱ¸²¸ÇÂʼì²éµÄ¹¤¾ß£¬¿ÉÒÔÒÔÐÐΪµ¥Î»¼ì²é³öÄÇЩ´úÂëÔÚÔËÐÐÖб»Ê¹Óã¬ÄÇЩûÓÐʹÓá£
1.      
°²×°
make
make tests
make install
½«
/usr/local/covtool
Ìí¼Óµ½
PATH
½«
/usr/local/covtools
Ìí¼Óµ½
MANPATH£¨´Ë²½ºÜÖØÒª£¬ËüµÄman±ÈÎĵµ¿¿Æ׵öࣩ
ÎÒÒ»°ãÊÇÌí¼ÓÔÚ/etc/profileÖÐ
 
2.      
ʹÓÃ
Èç¹ûÊÇʹÓÃ
makefile
£º
(1).
½«
g++
Ì滻Ϊ
cov++
¼´¿É¡£
(2).
ÖØÐÂ
build
(3).
ÔËÐÐËùÓеIJâÊÔ£¨Ç뾡Á¿È«µÄ²âÊÔ¸÷ÖÖÇé¿ö£©
(4).
ºÏ²¢
*.covexp
Îļþ£¨
cov++
ϵͳÉè¼ÆΪ¿ÉÒÔÔËÐжà´Î²âÊÔ³ÌÐòµÄ¸÷ÖÖÇé¿öÉú³É¶à¸ö
*.covexp
£¬È»ºó½«¶à´Î½á¹ûͳºÏÆðÀ´ÐγÉÒ»¸ö±¨¸æ£©£º
       
covmerge.exe find * -name ‘*.covexp’ –print
‘\
       
>merged.db
Í˳ö¡£
(5).
ÓÃ
*.db
ÎļþÉú³É
html
Îĵµ¡£
       
gen_html merged.db
(6).
Éú³ÉµÄÎĵµÔÚ
coverage_html
Ŀ¼ÏÂ
,
ÓÃä¯ÀÀÆ÷²é¿´
index.html
ÀýÈ磺
Files in
directory /home/lboggs/covtool/cov++_test
Percent
Coverged
Instrumented
Lines
Executed
Lines
Directory
Name
40
5
2
/home/lboggs/covtool/cov++_test/test1.c
40
5
2
/home/lboggs/covtool/cov++_test/test2.cxx
 
#include
<stdio.h>
 
 
    
void
function(int count)
+    
{
+    
  
if(count < 10)
-     
    
printf("too low\n");
 
    
  
else
+    
    
printf("ok!\n");
 
    
}
+
±íʾ´ËÐÐÔÚ²âÊÔÖб»Ö´ÐУ¬
-
±íʾ´ËÐÐÔÚ²âÊÔÖÐδִÐС£
 
3.
×¢Òâ
£º
      
(1).cov++
ĬÈϵÄ
c++
ÎļþÊÇ
*.c,
Èç¹ûÊÇ
*.cpp
µÄ»°Ê¹ÓÃÑ¡Ïî
-EXT:
             
À


Ïà¹ØÎĵµ£º

linuxÉ豸Çý¶¯¿ª·¢Ïê½â——globalmem



 
linuxÉ豸Çý¶¯¿ª·¢Ïê½â——globalmem
ÊÕ²Ø



³£¼ûµÄÁ½ÖÖ´íÎó£º
1.ÔÚ²åÈëÄ£¿éµÄʱºò³öÏÖÈçÏÂÎÊÌ⣺
# insmod globalmem.ko insmod: error inserting 'globalmem.ko': -1
Device or res ......

linuxÉ豸Çý¶¯ IO Port

1. I/O Port
¡¡¡¡ºÍÓ²¼þ
´ò½»µÀÀë²»¿ªI/O Port
£¬ÀϵÄ
ISA
É豸¾­³£ÊÇÕ¼ÓÃʵ¼ÊµÄ
I/O
¶Ë¿Ú£¬ÔÚ
linux
Ï£¬²Ù×÷
ϵͳûÓжÔ
I/O
¿ÚÆÁ±Î£¬Ò²¾ÍÊÇ˵£¬ÈκÎÇý¶¯³ÌÐò¶¼¿É¶ÔÈÎÒâµÄ
I/O
¿Ú²Ù×÷£¬ÕâÑù
¾ÍºÜÈÝÒ×ÒýÆð»ìÂÒ¡£Ã¿¸öÇý¶¯³ÌÐòÓ¦¸Ã×Ô¼º±ÜÃâÎóÓö˿ڡ£ 
¡¡¡¡ÓÐÁ½¸ö
ÖØÒªµÄkernel
º¯Êý ......

cygwin Ààlinux¿ª·¢»·¾³µÄÅäÖÃ


»¨ÁË°ëÌìÅäÖúÃÁËcygwinµÄ½çÃ棬 ÏÂÃæ×öÒ»¼Í¼£¬ÒÔ±¸Ï´βéÔÄ
1. ¹ØÓÚtermµÄÎÊÌ⣬ Èç¹ûÏÓ°²×°µÄterm²»¹»pp£¬¿ÉÒÔʹÓÃputty£¬ÄǾÍÐèÒª°²×°openssh°ü£¬ÒÔ±ã¿ÉÒÔʹÓÃputty£¬
opensshµÄ°²×°¹ý³Ì²ÎÔÄhttp://pigtail.net/LRP/printsrv/cygwin-sshd.html ÀïÃæ½éÉܵĺÜÏêϸ¡£ÏÂÃæÌô¼¸¸ö¹Ø¼üµã¼Ç¼ÈçÏ£º
(2b) Download ......

linuxϲ鿴Óû§×éµÄÐÅÏ¢


groups ²é¿´µ±Ç°µÇ¼Óû§µÄ×éÄÚ³ÉÔ±
groups gliethttp ²é¿´gliethttpÓû§ËùÔÚµÄ×é,ÒÔ¼°×éÄÚ³ÉÔ±
whoami ²é¿´µ±Ç°µÇ¼Óû§Ãû
/etc/groupÎļþ°üº¬ËùÓÐ×é
/etc/shadowºÍ/etc/passwdϵͳ´æÔÚµÄËùÓÐÓû§Ãû
Ìí¼ÓÓû§abcµ½rootȺ×飺
gpasswd -a abc root ......

LinuxÖÕ¶Ë×ÖÌåÑÕÉ«ÉèÖÃ_zz


   LinuxÖն˻·¾³Ï£¬ÀûÓÃÖÕ¶ËÃüÁîÐòÁпÉÒÔÉèÖÃ×ÖÌåµÄÑÕÉ«£¬Æä¸ñʽÈçÏ£º 
                       <ESC>[<C1>;<C2>;<C3>m 
ÆäÖÐ<ESC>µÄֵΪ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ