aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-08-06 21:23:00 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2018-08-19 12:39:46 +0300
commit6c84f48ccd6266799b7cd0d69acd024308b14d18 (patch)
tree0d2b0e60410d217fbdca163023876ec88fca327f
parent15243e0acc4c00bf0e3ac3421712d51a7c1221e8 (diff)
downloadmeson-6c84f48ccd6266799b7cd0d69acd024308b14d18.zip
meson-6c84f48ccd6266799b7cd0d69acd024308b14d18.tar.gz
meson-6c84f48ccd6266799b7cd0d69acd024308b14d18.tar.bz2
Consolidated all PCH tests in one test project.
-rw-r--r--test cases/common/13 pch/c/meson.build8
-rw-r--r--test cases/common/13 pch/c/pch/prog.h (renamed from test cases/common/13 pch/pch/prog.h)0
-rw-r--r--test cases/common/13 pch/c/pch/prog_pch.c (renamed from test cases/common/13 pch/pch/prog_pch.c)0
-rw-r--r--test cases/common/13 pch/c/prog.c (renamed from test cases/common/13 pch/prog.c)0
-rw-r--r--test cases/common/13 pch/cpp/meson.build (renamed from test cases/common/14 cpp pch/meson.build)1
-rw-r--r--test cases/common/13 pch/cpp/pch/prog.hh (renamed from test cases/common/14 cpp pch/pch/prog.hh)0
-rw-r--r--test cases/common/13 pch/cpp/pch/prog_pch.cc (renamed from test cases/common/14 cpp pch/pch/prog_pch.cc)0
-rw-r--r--test cases/common/13 pch/cpp/prog.cc (renamed from test cases/common/14 cpp pch/prog.cc)0
-rw-r--r--test cases/common/13 pch/meson.build13
-rw-r--r--test cases/common/13 pch/mixed/func.c (renamed from test cases/common/15 mixed pch/func.c)0
-rw-r--r--test cases/common/13 pch/mixed/main.cc (renamed from test cases/common/15 mixed pch/main.cc)0
-rw-r--r--test cases/common/13 pch/mixed/meson.build (renamed from test cases/common/15 mixed pch/meson.build)3
-rw-r--r--test cases/common/13 pch/mixed/pch/func.h (renamed from test cases/common/15 mixed pch/pch/func.h)0
-rw-r--r--test cases/common/13 pch/mixed/pch/func_pch.c (renamed from test cases/common/15 mixed pch/pch/func_pch.c)0
-rw-r--r--test cases/common/13 pch/mixed/pch/main.h (renamed from test cases/common/15 mixed pch/pch/main.h)0
-rw-r--r--test cases/common/13 pch/mixed/pch/main_pch.cc (renamed from test cases/common/15 mixed pch/pch/main_pch.cc)0
16 files changed, 12 insertions, 13 deletions
diff --git a/test cases/common/13 pch/c/meson.build b/test cases/common/13 pch/c/meson.build
new file mode 100644
index 0000000..cb8349d
--- /dev/null
+++ b/test cases/common/13 pch/c/meson.build
@@ -0,0 +1,8 @@
+cc = meson.get_compiler('c')
+cc_id = cc.get_id()
+if cc_id == 'lcc'
+ error('MESON_SKIP_TEST: Elbrus compiler does not support PCH.')
+endif
+
+exe = executable('prog', 'prog.c',
+c_pch : ['pch/prog_pch.c', 'pch/prog.h'])
diff --git a/test cases/common/13 pch/pch/prog.h b/test cases/common/13 pch/c/pch/prog.h
index 354499a..354499a 100644
--- a/test cases/common/13 pch/pch/prog.h
+++ b/test cases/common/13 pch/c/pch/prog.h
diff --git a/test cases/common/13 pch/pch/prog_pch.c b/test cases/common/13 pch/c/pch/prog_pch.c
index 4960505..4960505 100644
--- a/test cases/common/13 pch/pch/prog_pch.c
+++ b/test cases/common/13 pch/c/pch/prog_pch.c
diff --git a/test cases/common/13 pch/prog.c b/test cases/common/13 pch/c/prog.c
index 0ce3d0a..0ce3d0a 100644
--- a/test cases/common/13 pch/prog.c
+++ b/test cases/common/13 pch/c/prog.c
diff --git a/test cases/common/14 cpp pch/meson.build b/test cases/common/13 pch/cpp/meson.build
index 6922fd7..802c3e1 100644
--- a/test cases/common/14 cpp pch/meson.build
+++ b/test cases/common/13 pch/cpp/meson.build
@@ -1,2 +1 @@
-project('c++ pch test', 'cpp')
exe = executable('prog', 'prog.cc', cpp_pch : ['pch/prog.hh', 'pch/prog_pch.cc'])
diff --git a/test cases/common/14 cpp pch/pch/prog.hh b/test cases/common/13 pch/cpp/pch/prog.hh
index 751cc4a..751cc4a 100644
--- a/test cases/common/14 cpp pch/pch/prog.hh
+++ b/test cases/common/13 pch/cpp/pch/prog.hh
diff --git a/test cases/common/14 cpp pch/pch/prog_pch.cc b/test cases/common/13 pch/cpp/pch/prog_pch.cc
index aff1225..aff1225 100644
--- a/test cases/common/14 cpp pch/pch/prog_pch.cc
+++ b/test cases/common/13 pch/cpp/pch/prog_pch.cc
diff --git a/test cases/common/14 cpp pch/prog.cc b/test cases/common/13 pch/cpp/prog.cc
index 629d880..629d880 100644
--- a/test cases/common/14 cpp pch/prog.cc
+++ b/test cases/common/13 pch/cpp/prog.cc
diff --git a/test cases/common/13 pch/meson.build b/test cases/common/13 pch/meson.build
index e144aa5..05b4037 100644
--- a/test cases/common/13 pch/meson.build
+++ b/test cases/common/13 pch/meson.build
@@ -1,10 +1,5 @@
-project('pch test', 'c')
+project('pch test', 'c', 'cpp')
-cc = meson.get_compiler('c')
-cc_id = cc.get_id()
-if cc_id == 'lcc'
- error('MESON_SKIP_TEST: Elbrus compiler does not support PCH.')
-endif
-
-exe = executable('prog', 'prog.c',
-c_pch : ['pch/prog_pch.c', 'pch/prog.h'])
+subdir('c')
+subdir('cpp')
+subdir('mixed')
diff --git a/test cases/common/15 mixed pch/func.c b/test cases/common/13 pch/mixed/func.c
index c02722e..c02722e 100644
--- a/test cases/common/15 mixed pch/func.c
+++ b/test cases/common/13 pch/mixed/func.c
diff --git a/test cases/common/15 mixed pch/main.cc b/test cases/common/13 pch/mixed/main.cc
index 44d049e..44d049e 100644
--- a/test cases/common/15 mixed pch/main.cc
+++ b/test cases/common/13 pch/mixed/main.cc
diff --git a/test cases/common/15 mixed pch/meson.build b/test cases/common/13 pch/mixed/meson.build
index 8e9da93..7f6033d 100644
--- a/test cases/common/15 mixed pch/meson.build
+++ b/test cases/common/13 pch/mixed/meson.build
@@ -1,6 +1,3 @@
-project('mixed C and C++ pch test', 'cpp', 'c')
-
-
exe = executable(
'prog',
files('main.cc', 'func.c'),
diff --git a/test cases/common/15 mixed pch/pch/func.h b/test cases/common/13 pch/mixed/pch/func.h
index 354499a..354499a 100644
--- a/test cases/common/15 mixed pch/pch/func.h
+++ b/test cases/common/13 pch/mixed/pch/func.h
diff --git a/test cases/common/15 mixed pch/pch/func_pch.c b/test cases/common/13 pch/mixed/pch/func_pch.c
index 5566739..5566739 100644
--- a/test cases/common/15 mixed pch/pch/func_pch.c
+++ b/test cases/common/13 pch/mixed/pch/func_pch.c
diff --git a/test cases/common/15 mixed pch/pch/main.h b/test cases/common/13 pch/mixed/pch/main.h
index 751cc4a..751cc4a 100644
--- a/test cases/common/15 mixed pch/pch/main.h
+++ b/test cases/common/13 pch/mixed/pch/main.h
diff --git a/test cases/common/15 mixed pch/pch/main_pch.cc b/test cases/common/13 pch/mixed/pch/main_pch.cc
index acd3f57..acd3f57 100644
--- a/test cases/common/15 mixed pch/pch/main_pch.cc
+++ b/test cases/common/13 pch/mixed/pch/main_pch.cc