.github
CMakeModules
LICENSES
dist
externals
FidelityFX-FSR
SDL
Vulkan-Headers
cmake-modules
cpp-httplib
cpp-jwt
cubeb
demangle
discord-rpc
dynarmic
enet
ffmpeg
find-modules
getopt
glad
inih
libressl
libusb
mbedtls
microprofile
opus
sirit
vcpkg
buildtrees
downloads
packages
boost-algorithm_x64-windows
boost-align_x64-windows
boost-array_x64-windows
boost-asio_x64-windows
boost-assert_x64-windows
boost-atomic_x64-windows
boost-bind_x64-windows
boost-build_x64-windows
share
tools
boost-build
.ci
.github
doc
example
notes
src
test
boostbook
core-language
prebuilt
project-test3
project-test4
qt4
qt5
rootless
startup
test2
toolset-mock
BoostBuild.py
Jamfile.jam
MockToolset.py
TestCmd.py
TestToolset.py
abs_workdir.py
absolute_sources.py
alias.py
alternatives.py
always.py
bad_dirname.py
boost-build.jam
boostbook.py
build_dir.py
build_file.py
build_hooks.py
build_no.py
builtin_echo.py
builtin_exit.py
builtin_glob.py
builtin_glob_archive.py
builtin_readlink.py
builtin_split_by_characters.py
bzip2.py
c_file.py
chain.py
clean.py
cli_property_expansion.py
collect_debug_info.py
command_line_properties.py
composite.py
conditionals.py
conditionals2.py
conditionals3.py
conditionals4.py
conditionals_multiple.py
configuration.py
configure.py
copy_time.py
core_action_output.py
core_action_status.py
core_actions_quietly.py
core_arguments.py
core_at_file.py
core_bindrule.py
core_d12.py
core_delete_module.py
core_dependencies.py
core_fail_expected.py
core_import_module.py
core_jamshell.py
core_language.py
core_modifiers.py
core_multifile_actions.py
core_nt_cmd_line.py
core_option_d2.py
core_option_l.py
core_option_n.py
core_parallel_actions.py
core_parallel_multifile_actions_1.py
core_parallel_multifile_actions_2.py
core_scanner.py
core_source_line_tracking.py
core_syntax_error_exit_status.py
core_typecheck.py
core_update_now.py
core_variables_in_actions.py
core_varnames.py
custom_generator.py
debugger-mi.py
debugger.py
default_build.py
default_features.py
default_toolset.py
dependency_property.py
dependency_test.py
disambiguation.py
dll_path.py
double_loading.py
duplicate.py
example_customization.py
example_gettext.py
example_libraries.py
example_make.py
example_qt4.py
exit_status.py
expansion.py
explicit.py
feature_cxxflags.py
feature_force_include.py
feature_implicit_dependency.py
feature_relevant.py
feature_suppress_import_lib.py
file_types.py
flags.py
gcc_runtime.py
generator_selection.py
generators_test.py
implicit_dependency.py
indirect_conditional.py
inherit_toolset.py
inherited_dependency.py
inline.py
install_build_no.py
lang_objc.py
lib_source_property.py
lib_zlib.py
libjpeg.py
liblzma.py
libpng.py
library_chain.py
library_order.py
library_property.py
libtiff.py
libzstd.py
link.py
load_dir.py
load_order.py
loop.py
make_rule.py
message.py
module_actions.py
ndebug.py
no_type.py
notfile.py
ordered_include.py
ordered_properties.py
out_of_tree.py
package.py
param.py
path_features.py
pch.py
prebuilt.py
preprocessor.py
print.py
project_dependencies.py
project_glob.py
project_id.py
project_root_constants.py
project_root_rule.py
project_test3.py
project_test4.py
property_expansion.py
qt4.py
qt5.py
readme.txt
rebuilds.py
relative_sources.py
remove_requirement.py
rescan_header.py
resolution.py
results-python.txt
rootless.py
scanner_causing_rebuilds.py
searched_lib.py
skipping.py
sort_rule.py
source_locations.py
source_order.py
space_in_path.py
stage.py
standalone.py
startup_v2.py
static_and_shared_library.py
suffix.py
symlink.py
tag.py
template.py
test-config-example.jam
test.jam
test1.py
test2.py
test_all.py
test_rc.py
test_system.html
testing.py
timedata.py
toolset_clang_darwin.py
toolset_clang_linux.py
toolset_clang_vxworks.py
toolset_darwin.py
toolset_defaults.py
toolset_gcc.py
toolset_intel_darwin.py
toolset_requirements.py
transitive_skip.py
tree.py
unit_test.py
unit_tests.py
unused.py
use_requirements.py
using.py
wrapper.py
wrong_project.py
.cirrus.yml
.editorconfig
.gitattributes
.gitignore
CONTRIBUTING.adoc
Jamroot.jam
LICENSE.txt
README.adoc
appveyor.yml
azure-pipelines.yml
boost-build.jam
boostcpp.jam
bootstrap.bat
bootstrap.sh
bootstrap_vms.com
BUILD_INFO
CONTROL
boost-chrono_x64-windows
boost-concept-check_x64-windows
boost-config_x64-windows
boost-container-hash_x64-windows
boost-container_x64-windows
boost-context_x64-windows
boost-conversion_x64-windows
boost-core_x64-windows
boost-coroutine_x64-windows
boost-crc_x64-windows
boost-date-time_x64-windows
boost-detail_x64-windows
boost-endian_x64-windows
boost-exception_x64-windows
boost-filesystem_x64-windows
boost-function-types_x64-windows
boost-function_x64-windows
boost-functional_x64-windows
boost-fusion_x64-windows
boost-icl_x64-windows
boost-integer_x64-windows
boost-intrusive_x64-windows
boost-io_x64-windows
boost-iterator_x64-windows
boost-lexical-cast_x64-windows
boost-modular-build-helper_x64-windows
boost-move_x64-windows
boost-mp11_x64-windows
boost-mpl_x64-windows
boost-numeric-conversion_x64-windows
boost-optional_x64-windows
boost-phoenix_x64-windows
boost-pool_x64-windows
boost-predef_x64-windows
boost-preprocessor_x64-windows
boost-process_x64-windows
boost-proto_x64-windows
boost-range_x64-windows
boost-ratio_x64-windows
boost-rational_x64-windows
boost-regex_x64-windows
boost-smart-ptr_x64-windows
boost-spirit_x64-windows
boost-static-assert_x64-windows
boost-system_x64-windows
boost-test_x64-windows
boost-thread_x64-windows
boost-throw-exception_x64-windows
boost-timer_x64-windows
boost-tokenizer_x64-windows
boost-tuple_x64-windows
boost-type-index_x64-windows
boost-type-traits_x64-windows
boost-typeof_x64-windows
boost-uninstall_x64-windows
boost-unordered_x64-windows
boost-utility_x64-windows
boost-variant2_x64-windows
boost-variant_x64-windows
boost-vcpkg-helpers_x64-windows
boost-winapi_x64-windows
fmt_x64-windows
lz4_x64-windows
nlohmann-json_x64-windows
vcpkg-cmake-config_x64-windows
vcpkg-cmake-get-vars_x64-windows
vcpkg-cmake_x64-windows
zlib_x64-windows
zstd_x64-windows
scripts
.gitkeep
vcpkg.exe
xbyak
CMakeLists.txt
hooks
patches
src
CMakeLists.txt
CONTRIBUTING.md
Doxyfile
LICENSE.txt
README.md
license.txt
vcpkg.json
39 lines
790 B
Python
39 lines
790 B
Python
![]() |
#!/usr/bin/python
|
||
|
|
||
|
# Copyright 2004 Vladimir Prus
|
||
|
# Distributed under the Boost Software License, Version 1.0.
|
||
|
# (See accompanying file LICENSE.txt or https://www.bfgroup.xyz/b2/LICENSE.txt)
|
||
|
|
||
|
# Test that the user can define his own rule that will call built-in main target
|
||
|
# rule and that this will work.
|
||
|
|
||
|
import BoostBuild
|
||
|
|
||
|
|
||
|
t = BoostBuild.Tester(use_test_config=False)
|
||
|
|
||
|
t.write("jamfile.jam", """
|
||
|
my-test : test.cpp ;
|
||
|
""")
|
||
|
|
||
|
t.write("test.cpp", """
|
||
|
int main() {}
|
||
|
""")
|
||
|
|
||
|
t.write("jamroot.jam", """
|
||
|
using testing ;
|
||
|
|
||
|
rule my-test ( name ? : sources + )
|
||
|
{
|
||
|
name ?= test ;
|
||
|
unit-test $(name) : $(sources) ; # /site-config//cppunit /util//testMain ;
|
||
|
}
|
||
|
|
||
|
IMPORT $(__name__) : my-test : : my-test ;
|
||
|
""")
|
||
|
|
||
|
t.run_build_system()
|
||
|
t.expect_addition("bin/$toolset/debug*/test.passed")
|
||
|
|
||
|
t.cleanup()
|