aboutsummaryrefslogtreecommitdiff
path: root/tests/build/root.build
blob: 4da21de3d171eb1d3e6c38ad378526a49e9af4a6 (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
33
34
35
36
37
# file      : tests/build/root.build
# license   : MIT; see accompanying LICENSE file

# Use remote instead of local repository locations for tests.
#
# Note that this is an "instead of" rather than "in addition to" configuration
# so ideally you would want to run both with and without this enabled. This is
# also one of the reasons remote tests are not enabled by default (the other
# being that they take forever).
#
config [bool] config.bpkg.tests.remote ?= false

# Additionally enable tests that 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.config

# 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