-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathphxpr.jam
42 lines (34 loc) · 1.29 KB
/
phxpr.jam
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
################################################################################
# Copyright (c) 2005 Joao Abecasis
# Copyright (c) 2010 Bryce Lelbach
#
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file BOOST_LICENSE_1_0.rst or copy at http://www.boost.org/LICENSE_1_0.txt)
################################################################################
import path ;
import modules ;
import targets ;
import testing ;
import project ;
rule run-phxi ( target-name : input ? : requirements * ) {
input ?= $(target-name) ;
# local phxpr_input = [ path.root $(input).phxpr [ path.pwd ] ] ;
# local phex_input = [ path.root $(input).phex [ path.pwd ] ] ;
local project = [ project.current ] ;
local t = [ targets.create-typed-target RUN
: $(project)
: $(target-name)
: /prana//phxi
: $(requirements)
<location-prefix>$(target-name).test
<testing.arg>--hide-pointers
<testing.arg>--print-return
<testing.arg>-p
<testing.input-file>$(input).phex
<testing.input-file>$(input).phxpr
<preserve-test-targets>on
]
;
modules.poke testing : .all-tests : \$\(all-tests\) $(t) ;
return $(t) ;
}