[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] odd/multiarch 84ef873 02/16: Document some architect
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] odd/multiarch 84ef873 02/16: Document some architecture-selection alternatives |
Date: |
Wed, 10 Apr 2019 22:15:07 -0400 (EDT) |
branch: odd/multiarch
commit 84ef873a7fa71556af97387666a4f41a72c45864
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Document some architecture-selection alternatives
---
gui_test.sh | 11 ++++++++++-
nychthemeral_test.sh | 11 ++++++++---
2 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/gui_test.sh b/gui_test.sh
index 4481f99..7862816 100755
--- a/gui_test.sh
+++ b/gui_test.sh
@@ -142,6 +142,15 @@ mkdir --parents /tmp/lmi/logs
cd /opt/lmi/src/lmi
# NOT! "$PERFORM" /opt/lmi/"$LMI_HOST"/bin/wx_test --ash_nazg
--data_path=/opt/lmi/data 2>&1 | tee /tmp/lmi/logs/gui-test | sed -e
"$gui_test_clutter"
+#
# Specifying the "true" path to a binary too often requires setting
-# $PATH and $WINEPATH, which is complex and fragile; symlinks are much better.
+# $PATH and $WINEPATH, which is complex and fragile; symlinks are much
+# better. Alternatively, sourcing 'set_arch.sh' here:
+# . ./set_arch.sh
+# would be sure to do something reliably, though perhaps not quite
+# what was intended--e.g., if the 'set_arch.sh' environment is for
+# one architecture, but a GUI test of another architecture is wanted.
+# Perhaps best of all would be to source a 'test_arch.sh' script here
+# that would return nonzero if the environment doesn't consistently
+# designate a single architecture.
"$PERFORM" /opt/lmi/bin/wx_test --ash_nazg --data_path=/opt/lmi/data 2>&1 |
tee /tmp/lmi/logs/gui-test | sed -e "$gui_test_clutter"
diff --git a/nychthemeral_test.sh b/nychthemeral_test.sh
index 656532c..cb783f9 100755
--- a/nychthemeral_test.sh
+++ b/nychthemeral_test.sh
@@ -23,9 +23,14 @@
# Suggested use:
# [It seems moderately distasteful to insert "$(LMI_HOST)/" here,
-# and maybe some bad thing would happen if $LMI_HOST is not defined;
-# but is there any cleaner way to do this? Would it be worthwhile
-# to set up a symlink for /tmp/lmi/$(LMI_HOST) ?
+# but is there any cleaner way to do this? Adding something like
+# export NYCHTHEMERAL_TEST_DIR="/tmp/lmi/$(LMI_HOST)"
+# to 'set_arch.sh' can't be right; setting up a symlink can't be
+# any better. Perhaps a subdirectory of 'prefix' should be used
+# instead of 'tmp'? Or should this script instead be...
+# - called only through a driver that sets "$logdir"?
+# - refactored as a script function, invoked after setting "$logdir"?
+# - used preferably as a makefile target that sets "$logdir"?
# $make clobber; ./nychthemeral_test.sh 2>&1 | tee
/tmp/lmi/$(LMI_HOST)/logs/log | sed -f errors.sed
# Omitting the 'clobber' step when it's known to be unnecessary makes
# that command take two minutes instead of five on a dual E5-2630 v3
- [lmi-commits] [lmi] odd/multiarch updated (b2c1994 -> 11efcd0), Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch f6dd4d2 04/16: Record, in a comment, an idea for a "DO" variable, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 84ef873 02/16: Document some architecture-selection alternatives,
Greg Chicares <=
- [lmi-commits] [lmi] odd/multiarch 97b368a 03/16: Document that "$("this is a quoted string")", Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 6535919 05/16: Broaden the scope of the 'clobber' target, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch a70b3bc 10/16: Let 'set_arch.sh' set $PERFORM, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 60db190 01/16: Restore whitespace concinnity, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch daee5d2 06/16: Remove commentary that is no longer useful, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 354d7ce 07/16: Remove redundant extra 'gcc' in wx 'vendor' string, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 3b7638d 12/16: Add a more radical alternative to 'clobber', Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 923023d 09/16: Use 'set_arch.sh' instead of commented-out blocks of code, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 943d5b8 14/16: Install surrogates for proprietary graphics, Greg Chicares, 2019/04/10
- [lmi-commits] [lmi] odd/multiarch 341f8c5 08/16: Move a documentation stanza, Greg Chicares, 2019/04/10