blob: 1d29eec52acd11488094c8a6fa8143b7273e22f9 (
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
38
39
40
41
42
|
# file : tests/build/root.build
# license : MIT; see accompanying LICENSE file
# Enable all tests, including those which takes a long time to execute.
#
config [bool] config.bpkg.tests.all ?= false
# 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.
#
all = $config.bpkg.tests.all
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
|