[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 10256f5 05/14: Use set_toolchain.sh in the co
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 10256f5 05/14: Use set_toolchain.sh in the coding rules test script |
Date: |
Sat, 10 Oct 2020 11:07:11 -0400 (EDT) |
branch: master
commit 10256f57063015a5aa8b9051713eac8493d3dade
Author: Ilya Sinitsyn <isinitsyn@tt-solutions.com>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>
Use set_toolchain.sh in the coding rules test script
Use set_toolchain.sh to correctly determine `PERFORM` variable for the
native
Linux build.
---
test_coding_rules_test.sh | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/test_coding_rules_test.sh b/test_coding_rules_test.sh
index 35ae0b2..d3fa399 100755
--- a/test_coding_rules_test.sh
+++ b/test_coding_rules_test.sh
@@ -29,6 +29,15 @@
echo "Testing 'test_coding_rules'."
+# Directory where this script resides.
+
+srcdir=$(dirname "$(readlink --canonicalize "$0")")
+
+# Cannot recursively check script on path determined at runtime, so
+# a directive like 'source="$srcdir"' doesn't work.
+# shellcheck disable=SC1090
+. "$srcdir"/set_toolchain.sh
+
rm --force eraseme*
# Boilerplate required in most files.
@@ -371,16 +380,6 @@ touch another.unexpected.file
# Compare observed to expected. Note that directory '.' is ignored.
-lmi_build_type=$(/usr/share/libtool/build-aux/config.guess)
-case "$lmi_build_type" in
- (*-*-linux*)
- PERFORM=wine
- ;;
- (*)
- PERFORM=
- ;;
-esac
-
2>&1 $PERFORM ./test_coding_rules \
. \
a_nonexistent_file \
- [lmi-commits] [lmi] master updated (866ff71 -> b615b7b), Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master a6df4f8 04/14: Don't use Wine for the native Linux build, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 44e80a2 03/14: Supress Boost.Regex compilation warning, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master b21f123 01/14: Don't link ws2_32 lib for native Linux build of XML libraries, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master faa2234 09/14: Improve GitHub CI tests build speed, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 711d483 10/14: Disable lmi building with SO attributes for the native CI build, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 10256f5 05/14: Use set_toolchain.sh in the coding rules test script,
Greg Chicares <=
- [lmi-commits] [lmi] master 628d547 07/14: Fix lmi building step in GitHub CI workflow, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master deabd16 08/14: Add native Linux build variant to GitHub CI workflows, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master b615b7b 14/14: fixup! Set PATH and LD_LIBRARY_PATH in the GitHub CI workflow, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 6164366 02/14: Fix configuring wxPdfDoc under Linux, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master bf80fc8 11/14: Use env instead of set for the native Linux build, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 86ba7a9 13/14: Set PATH and LD_LIBRARY_PATH in the GitHub CI workflow, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 1ef40dd 06/14: Handle the exit code to avoid the unused result compilation warning, Greg Chicares, 2020/10/10
- [lmi-commits] [lmi] master 4485a27 12/14: Remove the warning message for the native Linux build, Greg Chicares, 2020/10/10