Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@
{
"name": "test",
"inherits": "debug",
"targets": [ "test" ],
"nativeToolOptions": [
"ARGS=--output-on-failure"
]
"targets": [ "test" ]
// "nativeToolOptions": [
// "ARGS=--output-on-failure"
// ]
}
]
}
Expand Down
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