aboutsummaryrefslogtreecommitdiff
path: root/config/contrib/gcc-test-suite.in
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2025-02-25 19:30:09 -0800
committerChris Packham <judge.packham@gmail.com>2025-03-01 19:33:37 +1300
commit7458341776f14d4d12e6d6fe51382e87e832894f (patch)
treea5519e994458b46e6cdbecd3c607be2dfede9623 /config/contrib/gcc-test-suite.in
parent5a11188bd0540e4780e7c5c9b51299f3ec8308fc (diff)
downloadcrosstool-ng-7458341776f14d4d12e6d6fe51382e87e832894f.tar.gz
crosstool-ng-7458341776f14d4d12e6d6fe51382e87e832894f.tar.bz2
crosstool-ng-7458341776f14d4d12e6d6fe51382e87e832894f.zip
contrib/gcc-test-suite: Add configuration options including qemu setup
This makes the options necessary to run the gcc test suite configurable in the crosstool-ng config file. That includes the ability to run the test suite using qemu instead of on a remote host. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'config/contrib/gcc-test-suite.in')
-rw-r--r--config/contrib/gcc-test-suite.in47
1 files changed, 47 insertions, 0 deletions
diff --git a/config/contrib/gcc-test-suite.in b/config/contrib/gcc-test-suite.in
new file mode 100644
index 00000000..6a4c876f
--- /dev/null
+++ b/config/contrib/gcc-test-suite.in
@@ -0,0 +1,47 @@
+choice
+ bool "How to execute tests"
+ default TEST_SUITE_GCC_SSH
+
+config TEST_SUITE_GCC_SSH
+ bool "Run test suite on remote host"
+ help
+ Select this option to execute GCC tests on a remote host,
+ specified by TEST_SUITE_GCC_HOST.
+
+config TEST_SUITE_GCC_QEMU
+ bool "Run test suite using qemu"
+ help
+ Select this option to execute GCC tests using qemu on the local
+ host.
+
+endchoice
+
+config TEST_SUITE_GCC_TARGET_HOSTNAME
+ string "Remote host to execute GCC tests"
+ default "127.0.0.1"
+ depends on TEST_SUITE_GCC_SSH
+ help
+ Set this to the remote host name where gcc tests will be run.
+
+config TEST_SUITE_GCC_TARGET_USERNAME
+ string "Username on remote host"
+ default "root"
+ depends on TEST_SUITE_GCC_SSH
+ help
+ Set this to the username on the remote hosts for GCC tests.
+
+config TEST_SUITE_GCC_QEMU_PROGRAM
+ string "Qemu program"
+ depends on TEST_SUITE_GCC_QEMU
+ help
+ Specifies the qemu program name. If unset, this will be "qemu-"
+ followed by the first component of the target name.
+
+config TEST_SUITE_GCC_QEMU_ARGS
+ string "Qemu program args"
+ depends on TEST_SUITE_GCC_QEMU
+ default "-L @SYSROOT@"
+ help
+ Specifies any arguments needed by qemu before the executable
+ filename. If unset, this will be "-L" followed by the path to
+ the sysroot in the installed toolchain.