summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2018-04-06 19:49:20 +0000
committerNiels Thykier <niels@thykier.net>2018-04-06 20:08:16 +0000
commitd3bc4c31453aabea565f8991dcbe1d9e1a0fc737 (patch)
treea6846983ad19e742e514a1e65d81aee15ab1ddad /t
parentbb48336053662478f55732010c1c8f9b79b8a87a (diff)
downloaddebhelper-d3bc4c31453aabea565f8991dcbe1d9e1a0fc737.tar.gz
Rewrite build system to support a "target build system"
Several of the build systems consists of a configure step that generates a buildscript for another build tool. Notable examples being "cmake" and "meson", which even supports multiple backend tools. This change makes it natively possible for debhelper to support such build systems with multiple backends. Note that only build systems with multiple backends have been rewritten. Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 't')
-rwxr-xr-xt/buildsystems/03-bs-auto-buildable.t14
1 files changed, 7 insertions, 7 deletions
diff --git a/t/buildsystems/03-bs-auto-buildable.t b/t/buildsystems/03-bs-auto-buildable.t
index c1229dc9..082e38bf 100755
--- a/t/buildsystems/03-bs-auto-buildable.t
+++ b/t/buildsystems/03-bs-auto-buildable.t
@@ -90,7 +90,7 @@ sub run_auto_buildable_tests {
rm_files("${sourcedir}/configure");
create_empty_file("${sourcedir}/CMakeLists.txt");
- test_check_auto_buildable($bs{cmake}, "CMakeLists.txt", { configure => 1, clean => 1 });
+ test_check_auto_buildable($bs{'cmake+makefile'}, "CMakeLists.txt", { configure => 1, clean => 1 });
rm_files("${sourcedir}/CMakeLists.txt");
create_empty_file("${sourcedir}/Makefile.PL");
@@ -98,7 +98,7 @@ sub run_auto_buildable_tests {
rm_files("${sourcedir}/Makefile.PL");
create_empty_file("${sourcedir}/meson.build");
- test_check_auto_buildable($bs{meson}, "meson.build", { configure => 1, clean => 1 });
+ test_check_auto_buildable($bs{'meson+ninja'}, "meson.build", { configure => 1, clean => 1 });
# Leave meson.build
create_empty_file("${builddir}/build.ninja");
@@ -106,7 +106,7 @@ sub run_auto_buildable_tests {
# Leave ninja.build
# Meson + ninja
- test_check_auto_buildable($bs{meson}, "meson.build+build.ninja", { configure => 1, build => 1, clean => 1, install => 1, test => 1 });
+ test_check_auto_buildable($bs{'meson+ninja'}, "meson.build+build.ninja", { configure => 1, build => 1, clean => 1, install => 1, test => 1 });
rm_files("${sourcedir}/meson.build", "${builddir}/build.ninja");
# With Makefile
@@ -120,9 +120,9 @@ sub run_auto_buildable_tests {
# ... +cmake
create_empty_file("${sourcedir}/CMakeLists.txt");
- test_check_auto_buildable($bs{cmake}, "CMakeLists.txt+Makefile", 1);
+ test_check_auto_buildable($bs{'cmake+makefile'}, "CMakeLists.txt+Makefile", 1);
create_empty_file("$builddir/CMakeCache.txt"); # strong evidence that cmake was run
- test_check_auto_buildable($bs{cmake}, "CMakeCache.txt+Makefile", 2);
+ test_check_auto_buildable($bs{'cmake+makefile'}, "CMakeCache.txt+Makefile", 2);
rm_files("${builddir}/Makefile", "${sourcedir}/CMakeLists.txt");
# Makefile.PL forces in-source
@@ -189,7 +189,7 @@ sub run_autoselection_tests {
# CMake
create_empty_file("${sourcedir}/CMakeLists.txt");
test_autoselection("cmake without CMakeCache.txt",
- { configure => "cmake", build => "makefile",
+ { configure => "cmake+makefile", build => "makefile",
test => "makefile", install => "makefile",
clean => "makefile"
},
@@ -201,7 +201,7 @@ sub run_autoselection_tests {
create_empty_file("${sourcedir}/CMakeLists.txt");
test_autoselection("cmake with CMakeCache.txt",
- "cmake",
+ "cmake+makefile",
%options,
code_configure => sub {
create_empty_file("$builddir/Makefile");