mirror of
https://github.com/boostorg/contract.git
synced 2026-02-27 04:52:22 +00:00
62 lines
2.1 KiB
Plaintext
62 lines
2.1 KiB
Plaintext
|
|
echo """Usage:
|
|
Compile and run test file <dir>/<name>.cpp: [implicit]
|
|
$ bjam <dir>/<name> ...
|
|
|
|
Preprocess file <dir>/<name>.cpp (stop at preprocessed traits, -UDEBUG to
|
|
generate all C++ test code instead): [explicit]
|
|
$ bjam <dir>/<name>-pp [cxxflags=-UDEBUG] ...
|
|
|
|
Preprocess file <dir>/<name>.cpp using Boost.Wave (instead of toolset's
|
|
preprocessor): [explicit]
|
|
$ bjam <dir>/<name>-wave ...
|
|
""" ;
|
|
|
|
import testing ;
|
|
|
|
actions wave { wave $(>) -o $(<) --timer }
|
|
|
|
rule test-pp ( dir file ) {
|
|
run $(dir)/$(file).cpp : : : <include>$(dir) : $(dir)/$(file) ;
|
|
|
|
preprocessed $(dir)/$(file)-pp : $(dir)/$(file).cpp :
|
|
<include>$(dir) <cxxflags>-DDEBUG ;
|
|
alias $(dir)/$(file)-pp.ii : $(dir)/$(file)-pp ;
|
|
explicit $(dir)/$(file)-pp $(dir)/$(file)-pp.ii ;
|
|
|
|
# TODO: It'd be nice to automatically run the generate.py before building
|
|
# using something like `bjam --generate ...` or `bjam generate ...`.
|
|
# TODO: It'd be nice to run all ...-wave targets at once using something
|
|
# like `bjam wave ...` or `bjam --wave ...`.
|
|
make $(dir)/$(file)-wave.ii : $(dir)/$(file).cpp : @wave ;
|
|
alias $(dir)/$(file)-wave : $(dir)/$(file)-wave.ii ;
|
|
explicit $(dir)/$(file)-wave $(dir)/$(file)-wave.ii ;
|
|
}
|
|
|
|
test-pp pp_func_traits access ;
|
|
test-pp pp_func_traits verbatim ;
|
|
test-pp pp_func_traits export ;
|
|
test-pp pp_func_traits template ;
|
|
test-pp pp_func_traits classifiers ;
|
|
test-pp pp_func_traits return_ ;
|
|
test-pp pp_func_traits name ;
|
|
test-pp pp_func_traits params ;
|
|
test-pp pp_func_traits cv ;
|
|
test-pp pp_func_traits ref ;
|
|
test-pp pp_func_traits except ;
|
|
test-pp pp_func_traits trailing_return ;
|
|
test-pp pp_func_traits virt ;
|
|
test-pp pp_func_traits preconditions ;
|
|
test-pp pp_func_traits postconditions ;
|
|
|
|
test-pp pp_class_traits export ;
|
|
test-pp pp_class_traits template ;
|
|
test-pp pp_class_traits friend ;
|
|
test-pp pp_class_traits key ;
|
|
test-pp pp_class_traits verbatim ;
|
|
test-pp pp_class_traits name ;
|
|
test-pp pp_class_traits specialization ;
|
|
test-pp pp_class_traits virt ;
|
|
test-pp pp_class_traits bases ;
|
|
|