diff options
author | Alexey Neyman <stilor@att.net> | 2019-03-09 18:01:30 -0800 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2019-03-09 18:01:30 -0800 |
commit | 1e25ebc7e04b610bf8324d6e428b320b3ed87009 (patch) | |
tree | c1dfad3008b064b3d029b5cf4942c71395e9defd /testing/upgrade/run.sh | |
parent | 32af07341db19d0291f962dc0ffbb49429d06358 (diff) | |
download | crosstool-ng-1e25ebc7e04b610bf8324d6e428b320b3ed87009.tar.gz crosstool-ng-1e25ebc7e04b610bf8324d6e428b320b3ed87009.tar.bz2 crosstool-ng-1e25ebc7e04b610bf8324d6e428b320b3ed87009.zip |
Move GDB build into a common backend function
... needed to create a common runtime test for an incompatible change
in glibc API.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'testing/upgrade/run.sh')
-rwxr-xr-x | testing/upgrade/run.sh | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/testing/upgrade/run.sh b/testing/upgrade/run.sh index 98da8ae7..0d3173fe 100755 --- a/testing/upgrade/run.sh +++ b/testing/upgrade/run.sh @@ -117,19 +117,28 @@ curver=`sed -n 's,export CT_CONFIG_VERSION_CURRENT=,,p' ${CTNG}` if [ -z "${curver}" ]; then echo "Cannot determine config version" >&${LOG} fail -elif [ ! -r "kconfig-list/${curver}" ]; then - echo "No saved kconfig data for version ${curver}" >&${LOG} - fail else grep -hr '^\(menu\)\?config ' "${dirs[@]}" ../../config | \ grep -v '^Binary ' | \ sed 's,^.* ,CT_,' | LANG=C sort | uniq > logs/current-kconfig-list - diff -U 10000 "kconfig-list/${curver}" logs/current-kconfig-list | \ - grep '^-CT_' > logs/current-kconfig-retired || true - nretired=`wc -l logs/current-kconfig-retired | sed 's/ .*//'` - echo "${nretired} kconfig options have been removed without bumping the config version" >&${LOG} - if [ "${nretired}" != "0" ]; then + if [ ! -r "kconfig-list/${curver}" ]; then + echo "No saved kconfig data for version ${curver}" >&${LOG} + if [ -r "kconfig-list/$[ curver - 1 ]" ]; then + echo "Comparing with previous version $[ curver - 1 ]" + echo "Verify that the following options are handled:" + diff -U 10000 "kconfig-list/$[ curver - 1 ]" logs/current-kconfig-list | \ + grep '^-CT_' || true + echo "Then rename logs/current-kconfig-list to kconfig-list/${curver}" + fi >&${LOG} fail + else + diff -U 10000 "kconfig-list/${curver}" logs/current-kconfig-list | \ + grep '^-CT_' > logs/current-kconfig-retired || true + nretired=`wc -l logs/current-kconfig-retired | sed 's/ .*//'` + if [ "${nretired}" != "0" ]; then + echo "${nretired} kconfig options have been removed without bumping the config version" >&${LOG} + fail + fi fi fi finish |