aboutsummaryrefslogtreecommitdiff
path: root/tests/build/root.build
blob: 55297f86de708fcc32bc53b4f36090643474ef39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# file      : tests/build/root.build
# license   : MIT; see accompanying LICENSE file

# Use remote repository locations for tests.
#
config [bool] config.bpkg.tests.remote ?= false

# Enable tests which use ssh protocol for remote git repositories. If true, it
# is assumed that the password-less ssh authentication is arranged for
# git.build2.org.
#
config [bool] config.bpkg.tests.git.ssh ?= false

# Using the project configuration variables all over the testscripts makes
# them look hairy. Thus, let's provide short aliases for these variables.
#
remote  = $config.bpkg.tests.remote
git_ssh = $config.bpkg.tests.git.ssh

# We need to configure C++ module to pass the compiler path to some of bpkg
# test commands.
#
using cxx

# Setup the bpkg that we are testing.
#
import bpkg = bpkg%exe{bpkg}
testscript{*}: test = $bpkg

# Specify the test target for cross-testing.
#
test.target = $cxx.target