1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-28 18:53:20 +02:00
cdt/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb
Simon Marchi 184747164d Various enhancements to download-build-gdb.sh
I ran shellcheck [1] on the script and it found various minor things to
improve.

 - Use $(...) instead of `...` to run commands in a subshell.
 - Wrap all variables in quotes, in case there are spaces.

At the same time, I noticed a few other things:

 - Use "#!/usr/bin/env bash" instead of "#!/bin/bash", in case the user
   uses a bash not at /bin/bash.
 - Use "set -o errexit" instead of "set -e" for better readability.
 - Use "set -o nounset" to generate errors if trying to read unset
   variables.
 - Pass CXXFLAGS in addition to CFLAGS, since GDB is now in C++.
 - Use ${CFLAGS:-} instead of ${CFLAGS}, in case CFLAGS is not set
   (because of "set -o nounset").
 - Don't check for result of getopt.  If it fails, the script ends
   immediatly due to errexit.

[1] http://www.shellcheck.net/

Change-Id: If73f3510e46ca80d542d47c29c55b48b8b0bc697
Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
2017-03-23 13:33:45 -04:00
..
.externalToolBuilders Flattening rest of gdb tests 2016-03-18 09:39:45 -04:00
.settings parameterized tests gdb tests 2016-03-16 16:51:17 -04:00
data/launch Use line tags in MIExpressionsTest.testUpdateOfPointer 2017-03-06 10:44:15 -05:00
META-INF Flattening rest of gdb tests 2016-03-18 09:39:45 -04:00
scripts Various enhancements to download-build-gdb.sh 2017-03-23 13:33:45 -04:00
src/org/eclipse/cdt Bug 512180: Ensure previous launch is fully terminated 2017-03-07 09:21:15 -05:00
.classpath parameterized tests gdb tests 2016-03-16 16:51:17 -04:00
.options [303828] Instrument ServiceEventWaitor 2010-02-25 23:00:21 +00:00
.project
about.html
build.properties Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair 2014-07-14 12:34:41 -04:00
dsf.debug.options Add a default file to enable/disable tracing for the debug tests 2017-02-15 17:29:38 -04:00
plugin.xml Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair 2014-07-14 12:34:41 -04:00
pom.xml Add a default file to enable/disable tracing for the debug tests 2017-02-15 17:29:38 -04:00
TestAppBuilder.xml Bug 444196 - [tests] dsf-gdb tests fail the build when 'make' is not installed 2014-09-16 15:42:57 -04:00