From 54a336216d77501ec576e098de34b5ce62816148 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 20 Jan 2022 10:58:44 +0200 Subject: [PATCH] Minor tweaks --- README.md | 2 +- libbuild2-autoconf-tests/build/root.build | 8 ++++++-- libbuild2-autoconf-tests/module/buildfile | 4 ++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a2f4e5b..bdc8dac 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ The first line in this header file must be in the form: ``` If the name is followed by the `!` modifier, then it is *unprefixable* (see -the previous section for detail). The name can also be followed by `:` and a +the previous section for details). The name can also be followed by `:` and a list of base checks. Such checks are automatically inserted before the rest of the lines in the resulting substitution. diff --git a/libbuild2-autoconf-tests/build/root.build b/libbuild2-autoconf-tests/build/root.build index 82fe0cd..de62e39 100644 --- a/libbuild2-autoconf-tests/build/root.build +++ b/libbuild2-autoconf-tests/build/root.build @@ -7,6 +7,10 @@ using autoconf using c -# @@ Should we be able to do just test = $build.path? +# Every exe{} in this subproject is by default a test. # -testscript{*}: test = $recall($build.path) +exe{*}: test = true + +# Specify the test target for cross-testing. +# +test.target = $c.target diff --git a/libbuild2-autoconf-tests/module/buildfile b/libbuild2-autoconf-tests/module/buildfile index 328b6da..9073062 100644 --- a/libbuild2-autoconf-tests/module/buildfile +++ b/libbuild2-autoconf-tests/module/buildfile @@ -1 +1,5 @@ +# @@ Should we be able to do just test = $build.path? +# +testscript{*}: test = $recall($build.path) + ./: testscript