Xmake provide a builtin-plugin for generating VisualStudio project file (vs2002 - 2015) now.
.e.g
We need enter the project directory first and run the following command if we want to generate vs2013 project.
bash
$ xmake project -k vs2013
It will generate a directory(vs2013) in the current project and the direct继续阅读 »
content
{:toc}
Note: This documents is only a mirror, if you want to see newest documents please goto: http://xmake.io/#/plugins
Plugin Development
Introduction
XMake supports the plugin module and we can develop ourself plugin module conveniently.
We can run command xmake -h to look over some builtin plugins of xm继续阅读 »
Compile Mesos UT cases without running them
make check -j8 GTEST_FILTER=-"*"
Run compiled Mesos UT cases
cd build
src/mesos-tests --gtest_filter=FetcherTest.OSNetUriTest继续阅读 »
什么是Check
Check是C语言的一个单元测试框架。它提供一个小巧的单元测试接口。测试案例运行在各自独立的地址空间,所以断言失败和代码错误造成的段错误或者其他的信号可以被捕捉到。另外,测试的结果显示也兼容以下这些格式:Subunit、TAP、XML和通用的日志格式。
Check is a unit testing framework for C. It features a simple interface for defining unit tests, putting little in the way of the developer. Tests are run in a separate address space继续阅读 »
也许你会偶然发现Python的多线程程序使用Ctrl-C杀不掉,必须拿到pid用kill -9才能干掉,研究这个问题的原因可以使得对Python多线程的信号处理及线程的退出机制有更好的理解。
假如有一个Python写成的用多线程模拟生产者-消费者的程序,代码如下:
class Producer(threading.Thread):
def run(self):
global count
while True:
if cond.acquire():
if count > 1000:
cond.wa继续阅读 »