Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions build-one.sh
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,19 @@ for EX in $EXERCISES; do
cp -f "$SOLDIR/$EXDIR"/* src 2>/dev/null || true
fi

# Check and copy test files if 'tests' directory exists
if [[ -d "$SOLDIR/$EXDIR/tests" ]]; then
trace "Copying test files from $SOLDIR/$EXDIR/tests"
rm -rf tests
mkdir tests
cp -f "$SOLDIR/$EXDIR/tests"/* tests 2>/dev/null || true
else
if [[ -d tests ]]; then
trace "Removing test files from tests"
rm -rf tests
fi
fi

if [[ -z $COPY ]]; then
# run build
RTOS=
Expand Down