aboutsummaryrefslogtreecommitdiff
path: root/scripts/build
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 /scripts/build
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 'scripts/build')
-rw-r--r--scripts/build/test_suite/gcc.sh13
1 files changed, 11 insertions, 2 deletions
diff --git a/scripts/build/test_suite/gcc.sh b/scripts/build/test_suite/gcc.sh
index 6c6e5a72..25eee5ad 100644
--- a/scripts/build/test_suite/gcc.sh
+++ b/scripts/build/test_suite/gcc.sh
@@ -21,8 +21,17 @@ do_test_suite_gcc_build() {
"${CT_SRC_DIR}/gcc/gcc/testsuite" \
"${CT_TEST_SUITE_DIR}/gcc"
- CT_DoExecLog ALL sed -i -r -e "s/@@DG_TARGET@@/${CT_TARGET}/g;" \
- "${CT_TEST_SUITE_DIR}/gcc/Makefile"
+ DG_QEMU_ARGS=`echo "${CT_TEST_SUITE_GCC_QEMU_ARGS}" | sed 's/@SYSROOT@/$(SYSROOT)/'`
+
+ CT_DoExecLog ALL sed -i -r \
+ -e "s/@@DG_TARGET@@/${CT_TARGET}/g" \
+ -e "s/@@DG_SSH@@/${CT_TEST_SUITE_GCC_SSH}/g" \
+ -e "s/@@DG_QEMU@@/${CT_TEST_SUITE_GCC_QEMU}/g" \
+ -e "s/@@DG_TARGET_HOSTNAME@@/${CT_TEST_SUITE_GCC_TARGET_HOSTNAME}/g" \
+ -e "s/@@DG_TARGET_USERNAME@@/${CT_TEST_SUITE_GCC_TARGET_USERNAME}/g" \
+ -e "s/@@DG_QEMU_PROGRAM@@/${CT_TEST_SUITE_GCC_QEMU_PROGRAM}/g" \
+ -e "s/@@DG_QEMU_ARGS@@/${DG_QEMU_ARGS}/g" \
+ "${CT_TEST_SUITE_DIR}/gcc/default.cfg"
CT_EndStep
}