aboutsummaryrefslogtreecommitdiff
path: root/build.conf
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-04-10 16:02:07 +0000
committerMike Buland <eichlan@xagasoft.com>2007-04-10 16:02:07 +0000
commitb6e100b94b12f3f92ec025dc2363eaf7c0ee6662 (patch)
tree7fa6f7c9450f0ef866e50e1d096ad854a5892aa0 /build.conf
parent5a0d7856dc265580cebaa833e0367d03ef21bbc3 (diff)
downloadlibbu++-b6e100b94b12f3f92ec025dc2363eaf7c0ee6662.tar.gz
libbu++-b6e100b94b12f3f92ec025dc2363eaf7c0ee6662.tar.bz2
libbu++-b6e100b94b12f3f92ec025dc2363eaf7c0ee6662.tar.xz
libbu++-b6e100b94b12f3f92ec025dc2363eaf7c0ee6662.zip
Well, we've got the basis of a workable unit test harness thing. There should
be a few more add-ons to it, but it works just fine, and eventually it should cover command line options and creating logs, and possibly even provide output functionality so that output from tests can be logged and kept track of well.
Diffstat (limited to 'build.conf')
-rw-r--r--build.conf16
1 files changed, 16 insertions, 0 deletions
diff --git a/build.conf b/build.conf
index 5c4dbb6..bc186f9 100644
--- a/build.conf
+++ b/build.conf
@@ -30,6 +30,22 @@ filesIn("src/tests") filter regexp("^src/tests/(.*)\\.cpp$", "tests/{re:1}"):
30 set "LDFLAGS" += "-L. -lbu++", 30 set "LDFLAGS" += "-L. -lbu++",
31 input "src/{target}.cpp" 31 input "src/{target}.cpp"
32 32
33directoriesIn("src/unit","unit/"):
34 rule "exe",
35 target file,
36 requires "libbu++.a",
37 set "CXXFLAGS" += "-Isrc",
38 set "LDFLAGS" += "-L. -lbu++",
39 input filesIn("{fulldir}") filter regexp("^.*\\.cpp$")
40
41filesIn("src/unit") filter regexp("^src/unit/(.*)\\.cpp$", "unit/{re:1}"):
42 rule "exe",
43 target file,
44 requires "libbu++.a",
45 set "CXXFLAGS" += "-Isrc",
46 set "LDFLAGS" += "-L. -lbu++",
47 input "src/{target}.cpp"
48
33"tests/plugin": set "LDFLAGS" += "-ldl" 49"tests/plugin": set "LDFLAGS" += "-ldl"
34 50
35rule "exe": 51rule "exe":