diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-03-21 19:32:39 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-03-21 19:32:39 -0400 |
commit | bed527f2ff330bdf49e46bf351d069a310bff102 (patch) | |
tree | 3dcb8d4ccc83bd275c332495f095805ee8e229c0 /tests/multi-configs | |
parent | gcc-config: tweak usage() help and message (diff) | |
download | gcc-config-bed527f2ff330bdf49e46bf351d069a310bff102.tar.gz gcc-config-bed527f2ff330bdf49e46bf351d069a310bff102.tar.bz2 gcc-config-bed527f2ff330bdf49e46bf351d069a310bff102.zip |
tests: add some!
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests/multi-configs')
12 files changed, 55 insertions, 0 deletions
diff --git a/tests/multi-configs/etc/env.d/gcc/arm-none-eabi-4.5.3 b/tests/multi-configs/etc/env.d/gcc/arm-none-eabi-4.5.3 new file mode 100644 index 0000000..89ec41c --- /dev/null +++ b/tests/multi-configs/etc/env.d/gcc/arm-none-eabi-4.5.3 @@ -0,0 +1,6 @@ +LDPATH="/usr/lib/gcc/arm-none-eabi/4.5.3" +MANPATH="/usr/share/gcc-data/arm-none-eabi/4.5.3/man" +INFOPATH="/usr/share/gcc-data/arm-none-eabi/4.5.3/info" +STDCXX_INCDIR="g++-v4" +CTARGET=arm-none-eabi +GCC_PATH="/usr/x86_64-pc-linux-gnu/arm-none-eabi/gcc-bin/4.5.3" diff --git a/tests/multi-configs/etc/env.d/gcc/arm-unknown-linux-gnu-4.5.3 b/tests/multi-configs/etc/env.d/gcc/arm-unknown-linux-gnu-4.5.3 new file mode 100644 index 0000000..b7a140e --- /dev/null +++ b/tests/multi-configs/etc/env.d/gcc/arm-unknown-linux-gnu-4.5.3 @@ -0,0 +1,6 @@ +LDPATH="/usr/lib/gcc/arm-unknown-linux-gnu/4.5.3" +MANPATH="/usr/share/gcc-data/arm-unknown-linux-gnu/4.5.3/man" +INFOPATH="/usr/share/gcc-data/arm-unknown-linux-gnu/4.5.3/info" +STDCXX_INCDIR="g++-v4" +CTARGET=arm-unknown-linux-gnu +GCC_PATH="/usr/x86_64-pc-linux-gnu/arm-unknown-linux-gnu/gcc-bin/4.5.3" diff --git a/tests/multi-configs/etc/env.d/gcc/arm-unknown-linux-gnueabi-4.5.3 b/tests/multi-configs/etc/env.d/gcc/arm-unknown-linux-gnueabi-4.5.3 new file mode 100644 index 0000000..e4eb06f --- /dev/null +++ b/tests/multi-configs/etc/env.d/gcc/arm-unknown-linux-gnueabi-4.5.3 @@ -0,0 +1,6 @@ +LDPATH="/usr/lib/gcc/arm-unknown-linux-gnueabi/4.5.3" +MANPATH="/usr/share/gcc-data/arm-unknown-linux-gnueabi/4.5.3/man" +INFOPATH="/usr/share/gcc-data/arm-unknown-linux-gnueabi/4.5.3/info" +STDCXX_INCDIR="g++-v4" +CTARGET=arm-unknown-linux-gnueabi +GCC_PATH="/usr/x86_64-pc-linux-gnu/arm-unknown-linux-gnueabi/gcc-bin/4.5.3" diff --git a/tests/multi-configs/etc/env.d/gcc/config-x86_64-pc-linux-gnu b/tests/multi-configs/etc/env.d/gcc/config-x86_64-pc-linux-gnu new file mode 100644 index 0000000..fc02d33 --- /dev/null +++ b/tests/multi-configs/etc/env.d/gcc/config-x86_64-pc-linux-gnu @@ -0,0 +1 @@ +CURRENT=x86_64-pc-linux-gnu-4.6.2 diff --git a/tests/multi-configs/etc/env.d/gcc/x86_64-pc-linux-gnu-4.6.0 b/tests/multi-configs/etc/env.d/gcc/x86_64-pc-linux-gnu-4.6.0 new file mode 100644 index 0000000..58188f6 --- /dev/null +++ b/tests/multi-configs/etc/env.d/gcc/x86_64-pc-linux-gnu-4.6.0 @@ -0,0 +1,5 @@ +LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.0" +MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.0/man" +INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.0/info" +STDCXX_INCDIR="g++-v4" +GCC_PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.0" diff --git a/tests/multi-configs/etc/env.d/gcc/x86_64-pc-linux-gnu-4.6.1 b/tests/multi-configs/etc/env.d/gcc/x86_64-pc-linux-gnu-4.6.1 new file mode 100644 index 0000000..d096389 --- /dev/null +++ b/tests/multi-configs/etc/env.d/gcc/x86_64-pc-linux-gnu-4.6.1 @@ -0,0 +1,5 @@ +LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1:/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.1/32" +MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.1/man" +INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.1/info" +STDCXX_INCDIR="g++-v4" +GCC_PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.1" diff --git a/tests/multi-configs/etc/env.d/gcc/x86_64-pc-linux-gnu-4.6.2 b/tests/multi-configs/etc/env.d/gcc/x86_64-pc-linux-gnu-4.6.2 new file mode 100644 index 0000000..51657e5 --- /dev/null +++ b/tests/multi-configs/etc/env.d/gcc/x86_64-pc-linux-gnu-4.6.2 @@ -0,0 +1,5 @@ +LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2:/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/32" +MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.2/man" +INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.2/info" +STDCXX_INCDIR="g++-v4" +GCC_PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.2" diff --git a/tests/multi-configs/test.current b/tests/multi-configs/test.current new file mode 100644 index 0000000..0241a70 --- /dev/null +++ b/tests/multi-configs/test.current @@ -0,0 +1,5 @@ +#!/bin/bash +gcc-config -c || exit 1 +gcc-config -c x86_64-pc-linux-gnu || exit 1 +gcc-config -c arm-none-eabi +[[ $? -ne 0 ]] diff --git a/tests/multi-configs/test.current.exp b/tests/multi-configs/test.current.exp new file mode 100644 index 0000000..c801f27 --- /dev/null +++ b/tests/multi-configs/test.current.exp @@ -0,0 +1,3 @@ +x86_64-pc-linux-gnu-4.6.2 +x86_64-pc-linux-gnu-4.6.2 + * gcc-config: No gcc profile is active! diff --git a/tests/multi-configs/test.list b/tests/multi-configs/test.list new file mode 100644 index 0000000..8e2a891 --- /dev/null +++ b/tests/multi-configs/test.list @@ -0,0 +1,3 @@ +#!/bin/bash +gcc-config -C -l "$@" +[[ $? -eq 0 ]] diff --git a/tests/multi-configs/test.list.exp b/tests/multi-configs/test.list.exp new file mode 100644 index 0000000..18640e1 --- /dev/null +++ b/tests/multi-configs/test.list.exp @@ -0,0 +1,10 @@ +Using gcc-config info in @ROOT@/ + [1] arm-none-eabi-4.5.3 + + [2] arm-unknown-linux-gnu-4.5.3 + + [3] arm-unknown-linux-gnueabi-4.5.3 + + [4] x86_64-pc-linux-gnu-4.6.0 + [5] x86_64-pc-linux-gnu-4.6.1 + [6] x86_64-pc-linux-gnu-4.6.2 * diff --git a/tests/multi-configs/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/32/.keep b/tests/multi-configs/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/32/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/multi-configs/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/32/.keep |