From 5bca83b19b1ec381342a5162bebc22ec280f5a4f Mon Sep 17 00:00:00 2001 From: Antti Kantee Date: Thu, 22 Oct 2015 01:05:23 +0000 Subject: [PATCH] Rely on RUMPRUN_SHCONF being set in the env. As opposed to giving the same params manually on the command line. --- tests/buildtests.sh | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/tests/buildtests.sh b/tests/buildtests.sh index 34a9812..a0039da 100755 --- a/tests/buildtests.sh +++ b/tests/buildtests.sh @@ -28,13 +28,10 @@ while getopts 'kqh' opt; do done shift $((${OPTIND} - 1)) -[ -n "${1}" ] || { echo '>> need machine' ; exit 1; } -[ -n "${2}" ] || { echo '>> need platform' ; exit 1; } +[ -n "${RUMPRUN_SHCONF}" ] || { echo '>> need RUMPRUN_SHCONF'; exit 1; } +. "${RUMPRUN_SHCONF}" cd "$(dirname $0)" -MACHINE=$1 -PLATFORM=$2 -ELF=$3 test_apptools() { @@ -52,17 +49,14 @@ test_apptools() exit 1 esac - # XXX - export DOCXX=$(grep ^CONFIG_CXX ../platform/${PLATFORM}/config.mk) + export MAKE=${APPTOOLSDIR}/${TOOLTUPLE}-${MAKE-make} - export MAKE=${APPTOOLSDIR}/${MACHINE}-rumprun-netbsd${ELF}-${MAKE-make} - - ${MAKE} ${DOCXX} RUMPBAKE="${APPTOOLSDIR}/${RUMPBAKE}" + ${MAKE} CONFIG_CXX=${CONFIG_CXX} RUMPBAKE="${APPTOOLSDIR}/${RUMPBAKE}" if ${TESTCONFIGURE}; then ( cd configure - ${APPTOOLSDIR}/${MACHINE}-rumprun-netbsd${ELF}-configure ./configure + ${APPTOOLSDIR}/${TOOLTUPLE}-configure ./configure ${MAKE} ) fi @@ -71,7 +65,7 @@ test_apptools() ( mkdir -p cmake/build cd cmake/build - cmake -DCMAKE_TOOLCHAIN_FILE=${APPTOOLSDIR}/${MACHINE}-rumprun-netbsd${ELF}-toolchain.cmake .. + cmake -DCMAKE_TOOLCHAIN_FILE=${APPTOOLSDIR}/${TOOLTUPLE}-toolchain.cmake .. make ) fi -- 2.39.5