[PATCH] [libcxx] Allow use of ShTest in libc++ tests along with other changes.

Eric Fiselier eric at efcs.ca
Wed Jan 21 07:38:32 PST 2015


In http://reviews.llvm.org/D7073#111358, @jroelofs wrote:

> It occurs to me that we ought to have an shtest that exercises not.py. How about something like this?


Probably a good idea. We should probably have a directory that contains tests for the test suite if that makes sense. Any idea where that should live?

PS. `%run` expands to `%exec %t.exe` so you need to put `-o %t.exe` in the compile command. I'll write up some documentation on the substitutions once this patch gets through.

>   // -*- C++ -*-

>   //===----------------------------------------------------------------------===//

>   //

>   //                     The LLVM Compiler Infrastructure

>   //

>   // This file is dual licensed under the MIT and the University of Illinois Open

>   // Source Licenses. See LICENSE.TXT for details.

>   //

>   //===----------------------------------------------------------------------===//

>   

>   // RUN: %cxx -c %s %flags %compile_flags %link_flags

>   // RUN: not %run

>   

>   int main() {

>     return 1;

>   }

> 



http://reviews.llvm.org/D7073

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list