Skip to content

Commit

Permalink
Script to enable building of tests directory in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Sonal Santan <[email protected]>
  • Loading branch information
sonals committed Jan 4, 2024
1 parent ec1c93c commit fc1b2a9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/build/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash -x

# SPDX-License-Identifier: Apache-2.0
# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved.
#
# Script to enable compilation of testcases (host code only) in the
# XRT/tests directory.

set -e

OSDIST=`grep '^ID=' /etc/os-release | awk -F= '{print $2}' | tr -d '"'`
Expand Down Expand Up @@ -60,10 +66,10 @@ usage()
echo "[-toolchain <file>] Extra toolchain file to configure CMake"
echo "[-verbose] Turn on verbosity when compiling"
echo ""
echo "Compile caching is enabled with '-ccache' but requires access to internal network."
echo "Compile the test cases in the tests directory. Previously compiled XRT "
echo "build must be available in XRT/build/Debug and or XRT/build/Release area(s)."
echo ""


exit 1
}

Expand Down

0 comments on commit fc1b2a9

Please sign in to comment.