diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2020-01-26 13:43:14 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2020-01-26 13:43:14 +0000 |
commit | 5ce9c530743552c7ffdc331a2f36e566bfb3b33a (patch) | |
tree | 09db9ef898eb1ea0c4b572dda512d71712ba453b | |
parent | gcc-config: distinguish errors between bad profile and bad compiler (diff) | |
download | gcc-config-5ce9c530743552c7ffdc331a2f36e566bfb3b33a.tar.gz gcc-config-5ce9c530743552c7ffdc331a2f36e566bfb3b33a.tar.bz2 gcc-config-5ce9c530743552c7ffdc331a2f36e566bfb3b33a.zip |
tests: add a test for bug #706318v2.2.1
Bug: https://bugs.gentoo.org/706318
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
9 files changed, 15 insertions, 0 deletions
diff --git a/tests/multi-configs/test.numbered b/tests/multi-configs/test.numbered new file mode 100644 index 0000000..c8d8e40 --- /dev/null +++ b/tests/multi-configs/test.numbered @@ -0,0 +1,7 @@ +#!/bin/bash +# make sure we get numbering right, try to access gcc-10 +# to make sure number version ordering is right: +# https://bugs.gentoo.org/706318 +for i in {1..8}; do + gcc-config -C -B $i +done diff --git a/tests/multi-configs/test.numbered.exp b/tests/multi-configs/test.numbered.exp new file mode 100644 index 0000000..fe72c0d --- /dev/null +++ b/tests/multi-configs/test.numbered.exp @@ -0,0 +1,8 @@ +/usr/x86_64-pc-linux-gnu/arm-none-eabi/gcc-bin/4.5.3 +/usr/x86_64-pc-linux-gnu/arm-unknown-linux-gnu/gcc-bin/4.5.3 +/usr/x86_64-pc-linux-gnu/arm-unknown-linux-gnueabi/gcc-bin/4.5.3 +/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.0 +/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.1 +/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.2 +/usr/x86_64-pc-linux-gnu/gcc-bin/10.0.0 +/usr/x86_64-pc-linux-gnu/gcc-bin/11.0.0-pre9999 diff --git a/tests/multi-configs/usr/lib/gcc/arm-none-eabi/4.5.3/.keep b/tests/multi-configs/usr/lib/gcc/arm-none-eabi/4.5.3/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/multi-configs/usr/lib/gcc/arm-none-eabi/4.5.3/.keep diff --git a/tests/multi-configs/usr/lib/gcc/arm-unknown-linux-gnu/4.5.3/.keep b/tests/multi-configs/usr/lib/gcc/arm-unknown-linux-gnu/4.5.3/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/multi-configs/usr/lib/gcc/arm-unknown-linux-gnu/4.5.3/.keep diff --git a/tests/multi-configs/usr/lib/gcc/arm-unknown-linux-gnueabi/4.5.3/.keep b/tests/multi-configs/usr/lib/gcc/arm-unknown-linux-gnueabi/4.5.3/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/multi-configs/usr/lib/gcc/arm-unknown-linux-gnueabi/4.5.3/.keep diff --git a/tests/multi-configs/usr/lib/gcc/x86_64-pc-linux-gnu/10.0.0/.keep b/tests/multi-configs/usr/lib/gcc/x86_64-pc-linux-gnu/10.0.0/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/multi-configs/usr/lib/gcc/x86_64-pc-linux-gnu/10.0.0/.keep diff --git a/tests/multi-configs/usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/.keep b/tests/multi-configs/usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/multi-configs/usr/lib/gcc/x86_64-pc-linux-gnu/11.0.0/.keep diff --git a/tests/multi-configs/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/.keep b/tests/multi-configs/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/multi-configs/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0/.keep diff --git a/tests/multi-configs/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1/.keep b/tests/multi-configs/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/multi-configs/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1/.keep |