Skip to content

Commit 96e9d6a

Browse files
author
Ralf W. Grosse-Kunstleve
committed
std_pair jam rules and test
[SVN r27876]
1 parent fef288f commit 96e9d6a

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

example/Jamfile

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,22 @@ boost-python-runtest test2
6060
: # Python test driver
6161
test_getting_started2.py
6262
# extension modules to use
63-
<pyd>getting_started2 ;
63+
<pyd>getting_started2 ;
64+
65+
# ----- std_pair -------
66+
67+
# Declare a Python extension called std_pair
68+
extension std_pair_ext
69+
: # sources
70+
std_pair.cpp
71+
72+
# requirements and dependencies for Boost.Python extensions
73+
<template>@boost/libs/python/build/extension
74+
;
75+
76+
# Declare a test for the extension module
77+
boost-python-runtest test3
78+
: # Python test driver
79+
test_std_pair.py
80+
# extension modules to use
81+
<pyd>std_pair_ext ;

example/test_std_pair.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import std_pair_ext
2+
assert std_pair_ext.foo() == (3, 5)
3+
print "OK"

0 commit comments

Comments
 (0)