Skip to content

Commit 18463c8

Browse files
authored
Merge pull request #4077 from The-OpenROAD-Project-staging/work-home
test: consider WORK_HOME
2 parents 8e37ce8 + 041b088 commit 18463c8

3 files changed

Lines changed: 10 additions & 40 deletions

File tree

‎docker/Dockerfile.dev‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ RUN mkdir -p /usr/local/bin/wrapped-cc && \
2828

2929
ENV PATH="/usr/local/bin/wrapped-cc:$PATH"
3030

31-
RUN ./DependencyInstaller.sh -base $options $constantBuildDir \
32-
&& ./DependencyInstaller.sh -common $options $constantBuildDir \
31+
RUN ./DependencyInstaller.sh -all $options $constantBuildDir \
3332
&& rm -rf /tmp/installer /tmp/* /var/tmp/* /var/lib/apt/lists/*
3433

3534
ARG fromImage
3635

3736
RUN echo "$fromImage" | grep -q "ubuntu" && \
3837
strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so || \
3938
echo "Skipping strip command as fromImage does not contain 'ubuntu'"
39+
40+
WORKDIR /OpenROAD-flow-scripts

‎flow/test/test_helper.sh‎

Lines changed: 5 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ if [ $# -ge 4 ]; then
1313
fi
1414
TARGET=${5:-'finish metadata'}
1515
DESIGN_CONFIG=./designs/$PLATFORM/$DESIGN_NAME/$CONFIG_MK
16-
LOG_FILE=./logs/$PLATFORM/$DESIGN_NAME.log
17-
mkdir -p "./logs/$PLATFORM"
16+
if [ -z "${WORK_HOME+x}" ]; then
17+
WORK_HOME=.
18+
fi
19+
LOG_FILE=${WORK_HOME}/logs/$PLATFORM/$DESIGN_NAME.log
20+
mkdir -p "${WORK_HOME}/logs/$PLATFORM"
1821

1922
__make="make DESIGN_CONFIG=$DESIGN_CONFIG"
2023
if [ -n "${FLOW_VARIANT+x}" ]; then
@@ -83,38 +86,4 @@ if [ $ret -eq 0 ] && grep -q 'power:' <(echo $TARGETS); then
8386
fi
8487
set -x
8588

86-
# Run Autotuner CI specifically for gcd on selected platforms.
87-
if [ -z "${RUN_AUTOTUNER+x}" ]; then
88-
echo "RUN_AUTOTUNER not set, disable AT test."
89-
RUN_AUTOTUNER="false"
90-
fi
91-
92-
if [ "${RUN_AUTOTUNER}" == "true" ]; then
93-
case $DESIGN_NAME in
94-
"gcd")
95-
# Keep RUN_AUTOTUNER enabled only for these designs
96-
;;
97-
*)
98-
echo "Disable AT test for design ${DESIGN_NAME}."
99-
RUN_AUTOTUNER="false"
100-
;;
101-
esac
102-
case $PLATFORM in
103-
"asap7" | "sky130hd" | "ihp-sg13g2" )
104-
# Keep RUN_AUTOTUNER enabled only for these platforms
105-
;;
106-
*)
107-
echo "Disable AT test for platform ${PLATFORM}."
108-
RUN_AUTOTUNER="false"
109-
;;
110-
esac
111-
fi
112-
113-
if [ "${RUN_AUTOTUNER}" == "true" ]; then
114-
set +x
115-
echo "Start AutoTuner test."
116-
./test/test_autotuner.sh $DESIGN_NAME $PLATFORM
117-
set -x
118-
fi
119-
12089
exit $ret

‎flow/util/makeIssue.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ if [[ ! -v EXCLUDE_PLATFORM ]]; then
5656
fi
5757
fi
5858

59-
VARS_BASENAME=vars-$DESIGN_NICKNAME-$PLATFORM-$FLOW_VARIANT
60-
RUN_ME_SCRIPT=run-me-$DESIGN_NICKNAME-$PLATFORM-$FLOW_VARIANT.sh
59+
VARS_BASENAME=${WORK_HOME}/vars-$DESIGN_NICKNAME-$PLATFORM-$FLOW_VARIANT
60+
RUN_ME_SCRIPT=${WORK_HOME}/run-me-$DESIGN_NICKNAME-$PLATFORM-$FLOW_VARIANT.sh
6161

6262
for i in $ISSUE_CP_FILE_VARS ; do
6363
if [ -v ${i} ]; then

0 commit comments

Comments
 (0)