[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 50cf746 2/3: Run nychthemeral test for all su
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 50cf746 2/3: Run nychthemeral test for all supported toolchains |
Date: |
Fri, 24 Jul 2020 18:32:25 -0400 (EDT) |
branch: master
commit 50cf746d75f2c5f430fdd6070ccb35b582a8802c
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Run nychthemeral test for all supported toolchains
Failing to indent a loop body is regrettable, but indenting this one
would seem excessive. Perhaps a shell function would be better.
---
nychthemeral_test.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/nychthemeral_test.sh b/nychthemeral_test.sh
index 0d61a28..d1b0349 100755
--- a/nychthemeral_test.sh
+++ b/nychthemeral_test.sh
@@ -133,6 +133,13 @@ nychthemeral_clutter='
/^$/d
'
+# This for-loop can iterate over as many toolchains as desired.
+# Make sure the current production architecture is built last, so that
+# it's the one installed to /opt/lmi/bin/ when this script ends.
+export LMI_COMPILER=gcc
+export LMI_TRIPLET
+for LMI_TRIPLET in x86_64-w64-mingw32 i686-w64-mingw32 ;
+do
# Directory for test logs.
#
# It seems redundant to construct yet another $prefix and $exec_prefix here;
@@ -141,7 +148,6 @@ prefix=/opt/lmi
exec_prefix="$prefix/${LMI_COMPILER}_${LMI_TRIPLET}"
log_dir="$exec_prefix"/logs
mkdir --parents "$log_dir"
-
{
cd /opt/lmi/src/lmi
@@ -254,3 +260,4 @@ for z in "$throwaway_dir"/*(N); do rm "$z"; done
# Therefore, it is deliberately excluded from this script.
printf "\nDo not forget to run the 'gui_test.sh' script.\n"
} 2>&1 | tee "$log_dir"/nychthemeral_test | sed -e "$nychthemeral_clutter"
+done