forked from OSchip/llvm-project
Revised per review comments to rename test files and rearrange input files.
llvm-svn: 178047
This commit is contained in:
parent
4a44e556cc
commit
81450dfff9
|
@ -32,7 +32,7 @@ execute_external = (platform.system() != 'Windows'
|
|||
config.test_format = lit.formats.ShTest(execute_external)
|
||||
|
||||
# suffixes: A list of file extensions to treat as test files.
|
||||
config.suffixes = ['.c', '.cpp', '.m', '.mm', '.cu', '.ll', '.cl', '.s']
|
||||
config.suffixes = ['.c', '.cpp', '.m', '.mm', '.cu', '.ll', '.cl', '.s', '.modularize']
|
||||
|
||||
# test_source_root: The root path where tests are located.
|
||||
config.test_source_root = os.path.dirname(__file__)
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
// Same decl as in Header2.h.
|
||||
typedef int TypeInt;
|
|
@ -1,2 +0,0 @@
|
|||
// Same decl as in Header1.h.
|
||||
typedef int TypeInt;
|
|
@ -1,4 +0,0 @@
|
|||
// Define symbol such that a declaration exists when this header
|
||||
// is included, but not when Header2.h is included.
|
||||
#define SYMBOL1 1
|
||||
#include "SubHeader.h"
|
|
@ -1,3 +0,0 @@
|
|||
// Set up so the declaration in SubHeader.h is not defined.
|
||||
#define SYMBOL2 1
|
||||
#include "SubHeader.h"
|
|
@ -0,0 +1,2 @@
|
|||
// Same decl as in DuplicateHeader2.h.
|
||||
typedef int TypeInt;
|
|
@ -0,0 +1,2 @@
|
|||
// Same decl as in DuplicateHeader1.h.
|
||||
typedef int TypeInt;
|
|
@ -0,0 +1,4 @@
|
|||
// Define symbol such that a declaration exists when this header
|
||||
// is included, but not when InconsistentHeader2.h is included.
|
||||
#define SYMBOL1 1
|
||||
#include "InconsistentSubHeader.h"
|
|
@ -0,0 +1,3 @@
|
|||
// Set up so the declaration in InconsistentSubHeader.h is not defined.
|
||||
#define SYMBOL2 1
|
||||
#include "InconsistentSubHeader.h"
|
|
@ -1,4 +1,4 @@
|
|||
// Set up so TypeInt only defined during Header1.h include.
|
||||
// Set up so TypeInt only defined during InconsistentHeader1.h include.
|
||||
#ifdef SYMBOL1
|
||||
#define SYMBOL 1
|
||||
#endif
|
|
@ -1,5 +1,5 @@
|
|||
# RUN: modularize %s -x c++
|
||||
# RUN: modularize -prefix=%p %s -x c++
|
||||
|
||||
InputNoProblems/SomeTypes.h
|
||||
InputNoProblems/SomeDecls.h
|
||||
Inputs/SomeTypes.h
|
||||
Inputs/SomeDecls.h
|
|
@ -1,6 +0,0 @@
|
|||
# RUN: modularize %s -x c++ 2>&1 | FileCheck %s
|
||||
|
||||
InputProblemsDuplicate/Header1.h
|
||||
InputProblemsDuplicate/Header2.h
|
||||
|
||||
# CHECK: error: 'TypeInt' defined at both {{.*}}{{[/\\]}}InputProblemsDuplicate{{[/\\]}}Header1.h:2:13 and {{.*}}{{[/\\]}}InputProblemsDuplicate{{[/\\]}}Header2.h:2:13
|
|
@ -0,0 +1,6 @@
|
|||
# RUN: modularize %s -x c++ 2>&1 | FileCheck %s
|
||||
|
||||
Inputs/DuplicateHeader1.h
|
||||
Inputs/DuplicateHeader2.h
|
||||
|
||||
# CHECK: error: 'TypeInt' defined at both {{.*}}{{[/\\]}}Inputs{{[/\\]}}DuplicateHeader1.h:2:13 and {{.*}}{{[/\\]}}Inputs{{[/\\]}}DuplicateHeader2.h:2:13
|
|
@ -1,10 +0,0 @@
|
|||
# RUN: modularize %s -x c++ 2>&1 | FileCheck %s
|
||||
|
||||
InputProblemsInconsistent/Header1.h
|
||||
InputProblemsInconsistent/Header2.h
|
||||
|
||||
# CHECK: error: 'SYMBOL' defined at both {{.*}}{{[/\\]}}InputProblemsInconsistent{{[/\\]}}SubHeader.h:3:9 and {{.*}}{{[/\\]}}InputProblemsInconsistent/SubHeader.h:6:9
|
||||
# CHECK-NEXT: error: header '{{.*}}{{[/\\]}}InputProblemsInconsistent{{[/\\]}}SubHeader.h' has different contents dependening on how it was included
|
||||
# CHECK-NEXT: note: 'SYMBOL' in {{.*}}{{[/\\]}}InputProblemsInconsistent{{[/\\]}}SubHeader.h at 3:9 not always provided
|
||||
# CHECK-NEXT: note: 'SYMBOL' in {{.*}}{{[/\\]}}InputProblemsInconsistent{{[/\\]}}SubHeader.h at 6:9 not always provided
|
||||
# CHECK-NEXT: note: 'TypeInt' in {{.*}}{{[/\\]}}InputProblemsInconsistent{{[/\\]}}SubHeader.h at 10:13 not always provided
|
|
@ -0,0 +1,10 @@
|
|||
# RUN: modularize %s -x c++ 2>&1 | FileCheck %s
|
||||
|
||||
Inputs/InconsistentHeader1.h
|
||||
Inputs/InconsistentHeader2.h
|
||||
|
||||
# CHECK: error: 'SYMBOL' defined at both {{.*}}{{[/\\]}}Inputs{{[/\\]}}InconsistentSubHeader.h:3:9 and {{.*}}{{[/\\]}}Inputs/InconsistentSubHeader.h:6:9
|
||||
# CHECK-NEXT: error: header '{{.*}}{{[/\\]}}Inputs{{[/\\]}}InconsistentSubHeader.h' has different contents dependening on how it was included
|
||||
# CHECK-NEXT: note: 'SYMBOL' in {{.*}}{{[/\\]}}Inputs{{[/\\]}}InconsistentSubHeader.h at 3:9 not always provided
|
||||
# CHECK-NEXT: note: 'SYMBOL' in {{.*}}{{[/\\]}}Inputs{{[/\\]}}InconsistentSubHeader.h at 6:9 not always provided
|
||||
# CHECK-NEXT: note: 'TypeInt' in {{.*}}{{[/\\]}}Inputs{{[/\\]}}InconsistentSubHeader.h at 10:13 not always provided
|
Loading…
Reference in New Issue