[cfe-dev] [libc++] Running tests from cmake?

Howard Hinnant hhinnant at apple.com
Mon Sep 19 06:13:38 PDT 2011


On Sep 19, 2011, at 7:49 AM, David Chisnall wrote:

> Hi,
> 
> I've been working on the FreeBSD port of libc++, and have now finished implementing all of the xlocale APIs that libc++ requires, but I haven't been able to run the test suite.  There doesn't seem to be any documentation on building with cmake, but I presumed that make check would work after the build.  It definitely does something, but it dies with:
> 
> import pkgutil # precompiled from /usr/local/lib/python2.7/pkgutil.pyc
> /usr/local/bin/python2.7: can't find '__main__' module in '/root/libcxx/build/test'
> 
> Has anyone else ever tried this, and if so (how) did you make it work?
> 
> David
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

Hi David,

Great news about your porting work!

I don't know anything about the cmake build system.  But since make check obviously isn't doing what you want it to, I thought it might be helpful to tell you how the test system works outside of cmake so that you might better be able to get make check working.

There's a shell script in the test directory called testit.  Running this shell script should recursively walk through the test directory running all tests it finds.  Tests that end in *.pass.cpp are expected to pass.   Tests that end in *.fail.cpp are expected to fail.  You can run testit from any subdirectory under test/ to run a subset of the suite.

Howard




More information about the cfe-dev mailing list