zoukankan      html  css  js  c++  java
  • CUnit 安装

    测试系统:Fedora 11

    最新版的CUnit-2.1.2不能编译过去,貌似需要Ubuntu才行

    下载CUnit-2.1.0,2006年更新的那个版本,解压,然后:

    $ (autoreconf --install) 应该有这步,但是我看有configure文件,就没做这一步

    $ ./configure

    $ make

    # make install #需要root权限

    # vi /etc/ld.so.conf  

    # 最后面加 /usr/local/lib

    # ldconfig

    测试安装是否正确:

    将 http://cunit.sourceforge.net/example.html 页面的例子复制下来,保存为 t.c 文件

    编译: gcc -o t t.c -lcunit

    运行: ./t

    结果:


         CUnit - A Unit testing framework for C - Version 2.1-0
         http://cunit.sourceforge.net/


    Suite: Suite_1
      Test: test of fprintf() ... passed
      Test: test of fread() ... passed

    --Run Summary: Type      Total     Ran  Passed  Failed
                   suites        1       1     n/a       0
                   tests         2       2       2       0
                   asserts       5       5       5       0

    本文参考: http://www.55gps.com/html/6/3/20080109/2821.html

  • 相关阅读:
    airodump-ng的使用及显示
    bash shell 遍历一个数组
    cisco 交换机 IOS命令
    apt-key Debian packages密钥管理命令
    find命令的用法
    bash的快捷键
    groff编写man页
    tcpdump软件使用
    vue 项目常见功能(搜索 时间戳转换 过滤器)
    vue2.0 常见功能 (v-for 配置路由 组件渲染)
  • 原文地址:https://www.cnblogs.com/windtail/p/2623223.html
Copyright © 2011-2022 走看看