[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master e35ff020 7/8: Suggest a workaround for a pote
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master e35ff020 7/8: Suggest a workaround for a potential problem |
Date: |
Fri, 24 Jun 2022 19:56:24 -0400 (EDT) |
branch: master
commit e35ff0205b5653de821df975c4350d6ba3203b64
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Suggest a workaround for a potential problem
Overriding $(test_dir) in a command such as this:
make $coefficiency test_dir=/opt/lmi/test_clang system_test
causes an (empty) directory to be created, which leads to failure with
a "No testdecks" message.
Elaborated that message, suggesting a (manual) workaround.
Alternative not pursued: instead of echoing a command, run it. That
would not always be correct: the test and touchstone directories may
deliberately contain different sets of files, or different versions of
the same files. This problem occurs rarely, and only when $(test_dir)
is deliberately overridden; but there may be no reason ever to do that,
because all architectures supported now, or soon:
LMI_COMPILER=gcc ; LMI_TRIPLET=x86_64-pc-linux-gnu
LMI_COMPILER=clang ; LMI_TRIPLET=x86_64-pc-linux-gnu
LMI_COMPILER=gcc ; LMI_TRIPLET=x86_64-w64-mingw32
produce exactly the same output for all 1485 tests.
---
workhorse.make | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/workhorse.make b/workhorse.make
index e692c6a5..1c679413 100644
--- a/workhorse.make
+++ b/workhorse.make
@@ -974,7 +974,12 @@ $(testdecks):
system_test: $(datadir)/configurable_settings.xml $(touchstone_md5sums) install
@$(ECHO) System test:
@$(RM) --force $(addprefix $(test_dir)/*., $(test_result_suffixes))
- @[ "$(strip $(testdecks))" != "" ] || ( $(ECHO) No testdecks. && false )
+ @[ "$(strip $(testdecks))" != "" ] \
+ || ( \
+ $(ECHO) "No testdecks. Do something like this:\\n \
+ cp -aiu $(touchstone_dir)/*.{cns,ill,ini,inix,mec,gpt}
$(test_dir)" \
+ && false \
+ )
@testdecks=`$(LS) --sort=size $(testdecks) || $(ECHO) $(testdecks)` \
&& $(MAKE) --file=$(this_makefile) --directory=$(test_dir) $$testdecks
@$(SORT) --output=$(system_test_analysis) $(system_test_analysis)
- [lmi-commits] [lmi] master updated (6030d119 -> ee23febb), Greg Chicares, 2022/06/24
- [lmi-commits] [lmi] master 2d81c4f7 5/8: Simplify, Greg Chicares, 2022/06/24
- [lmi-commits] [lmi] master ee23febb 8/8: Raze clang as gcc is razed, Greg Chicares, 2022/06/24
- [lmi-commits] [lmi] master c850f2bc 4/8: Augment $LD_LIBRARY_PATH for clang, Greg Chicares, 2022/06/24
- [lmi-commits] [lmi] master e35ff020 7/8: Suggest a workaround for a potential problem,
Greg Chicares <=
- [lmi-commits] [lmi] master fb4d6416 3/8: Rename a local variable, Greg Chicares, 2022/06/24
- [lmi-commits] [lmi] master 346f3037 6/8: Don't show a flag that's used only elsewhere, internally, Greg Chicares, 2022/06/24
- [lmi-commits] [lmi] master 601f829a 2/8: Find '*-config' scripts in gcc directories for clang, Greg Chicares, 2022/06/24
- [lmi-commits] [lmi] master d0c1f2c8 1/8: Localize a script variable, Greg Chicares, 2022/06/24