Skip to content

Commit

Permalink
tdd alpine ilp32 -12345 working
Browse files Browse the repository at this point in the history
Signed-off-by: Geoff Levand <[email protected]>
  • Loading branch information
glevand committed Mar 7, 2020
1 parent fb7a5c8 commit 907d6cc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
2 changes: 0 additions & 2 deletions scripts/build-ilp32-docker-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,6 @@ build_toolup() {
build_toolchain() {
mkdir -p ${toolchain_dest_pre}

# printenv
# --volumes-from $(get_container_id) \
local common_parent

if [[ ${DEBUG_TOOLCHAIN_SRC} && -d "${DEBUG_TOOLCHAIN_SRC}" ]]; then
Expand Down
14 changes: 9 additions & 5 deletions scripts/build-ilp32-test-program.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,18 @@ fi

mkdir -p "${build_top}"

container_id=$(get_container_id)

if [[ ! ${container_id} ]]; then
DOCKER_EXTRA_ARGS+=" --docker-args="-v ${build_top}:${build_top}""
fi

${SCRIPTS_TOP}/enter-ilp32-builder.sh \
--verbose \
--container-name=build-${test_name}--$(date +%H-%M-%S) \
--container-name="build-${test_name}--$(date +%H-%M-%S)" \
--work-dir="${build_top}" \
--docker-args="\
-v AA1${PROJECT_TOP}:${PROJECT_TOP}:ro \
-v AA2${build_top}:${build_top} \
-- ${src_top}/build-${test_name}.sh \
${DOCKER_EXTRA_ARGS} \
-- "${src_top}/build-${test_name}.sh \
--verbose \
--build-top=${build_top} \
--prefix=${prefix}"
Expand Down
10 changes: 9 additions & 1 deletion scripts/enter-ilp32-toolup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,19 @@ if [[ ! ${as_root} ]]; then
"}
fi

container_id=$(get_container_id)

if [[ ${container_id} ]]; then
DOCKER_VOLUMES+=" --volumes-from ${container_id}"
else
DOCKER_VOLUMES+=" -v ${PROJECT_TOP}:${PROJECT_TOP}:ro"
fi

HISTFILE="${HISTFILE:-${work_dir}/${container_name}--bash_history}"

docker run --rm \
${DOCKER_VOLUMES} \
${USER_ARGS} \
-v ${PROJECT_TOP}:${PROJECT_TOP}:ro \
-w ${work_dir} \
-e HISTFILE=${HISTFILE} \
--network host \
Expand Down

0 comments on commit 907d6cc

Please sign in to comment.