Skip to content

Commit

Permalink
run-tests.sh: build project with tests
Browse files Browse the repository at this point in the history
Signed-off-by: Sergey Smolov <[email protected]>
  • Loading branch information
ssmolov committed Aug 15, 2024
1 parent 0389005 commit 0474d08
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions run-tests.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,16 @@

# SPDX-License-Identifier: Apache-2.0

# Build project with tests

rm -rf build

cmake -S . -B build -G Ninja \
-DCMAKE_PREFIX_PATH="/home/ssedai/sources/circt.git/build;/home/ssedai/sources/circt.git/llvm/build" \
-DSRC_FILES="~/projects/utopia-hls/examples/polynomial2/polynomial2.cpp" \
-DBUILD_TESTS=ON #-DCMAKE_CXX_COMPILER=clang++

cmake --build build

# Run tests
build/test/utest

0 comments on commit 0474d08

Please sign in to comment.