2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00

Add missing exe_suffix, dll_suffix

[SVN r16801]
This commit is contained in:
Dave Abrahams
2003-01-08 19:42:47 +00:00
parent 86635bd925
commit d767aaf3e9
2 changed files with 18 additions and 22 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/python
from BoostBuild import Tester, List
from BoostBuild import Tester, List, exe_suffix, dll_suffix
t = Tester()
@@ -8,21 +8,19 @@ t.set_tree("dependency-test")
t.run_build_system()
# Check that main target 'c' was able to find 'x.h' from
# 'a's dependency graph
t.expect_addition("bin/gcc/debug/main-target-c/c")
t.expect_addition("bin/gcc/debug/main-target-c/c" + exe_suffix)
# Check that main target 'e' was able to find 'y.h'
t.expect_addition("bin/gcc/debug/main-target-e/e")
t.expect_addition("bin/gcc/debug/main-target-e/e" + exe_suffix)
# Check handling of first level includes.
# Both 'a' and 'b' include "a.h" and should be updated
t.touch("a.h")
t.run_build_system()
t.expect_touch("bin/gcc/debug/a")
t.expect_touch("bin/gcc/debug/a" + exe_suffix)
t.expect_touch("bin/gcc/debug/a.o")
t.expect_touch("bin/gcc/debug/b")
t.expect_touch("bin/gcc/debug/b" + exe_suffix)
t.expect_touch("bin/gcc/debug/b.o")
t.expect_touch("bin/gcc/debug/main-target-c/c")
t.expect_touch("bin/gcc/debug/main-target-c/c" + exe_suffix)
t.expect_nothing_more()
# Only 'a' include <a.h> and should be updated
@@ -31,15 +29,15 @@ t.run_build_system()
t.expect_touch("bin/gcc/debug/a")
t.expect_touch("bin/gcc/debug/a.o")
t.expect_touch("bin/gcc/debug/main-target-c/c")
t.expect_touch("bin/gcc/debug/main-target-c/c" + exe_suffix)
t.expect_nothing_more()
# "src/a.h" includes "b.h" (in the same dir)
t.touch("src1/b.h")
t.run_build_system()
t.expect_touch("bin/gcc/debug/a")
t.expect_touch("bin/gcc/debug/a" + exe_suffix)
t.expect_touch("bin/gcc/debug/a.o")
t.expect_touch("bin/gcc/debug/main-target-c/c")
t.expect_touch("bin/gcc/debug/main-target-c/c" + exe_suffix)
t.expect_nothing_more()
t.touch("b.h")

View File

@@ -1,6 +1,6 @@
#!/usr/bin/python
from BoostBuild import Tester, List
from BoostBuild import Tester, List, exe_suffix, dll_suffix
t = Tester()
@@ -8,21 +8,19 @@ t.set_tree("dependency-test")
t.run_build_system()
# Check that main target 'c' was able to find 'x.h' from
# 'a's dependency graph
t.expect_addition("bin/gcc/debug/main-target-c/c")
t.expect_addition("bin/gcc/debug/main-target-c/c" + exe_suffix)
# Check that main target 'e' was able to find 'y.h'
t.expect_addition("bin/gcc/debug/main-target-e/e")
t.expect_addition("bin/gcc/debug/main-target-e/e" + exe_suffix)
# Check handling of first level includes.
# Both 'a' and 'b' include "a.h" and should be updated
t.touch("a.h")
t.run_build_system()
t.expect_touch("bin/gcc/debug/a")
t.expect_touch("bin/gcc/debug/a" + exe_suffix)
t.expect_touch("bin/gcc/debug/a.o")
t.expect_touch("bin/gcc/debug/b")
t.expect_touch("bin/gcc/debug/b" + exe_suffix)
t.expect_touch("bin/gcc/debug/b.o")
t.expect_touch("bin/gcc/debug/main-target-c/c")
t.expect_touch("bin/gcc/debug/main-target-c/c" + exe_suffix)
t.expect_nothing_more()
# Only 'a' include <a.h> and should be updated
@@ -31,15 +29,15 @@ t.run_build_system()
t.expect_touch("bin/gcc/debug/a")
t.expect_touch("bin/gcc/debug/a.o")
t.expect_touch("bin/gcc/debug/main-target-c/c")
t.expect_touch("bin/gcc/debug/main-target-c/c" + exe_suffix)
t.expect_nothing_more()
# "src/a.h" includes "b.h" (in the same dir)
t.touch("src1/b.h")
t.run_build_system()
t.expect_touch("bin/gcc/debug/a")
t.expect_touch("bin/gcc/debug/a" + exe_suffix)
t.expect_touch("bin/gcc/debug/a.o")
t.expect_touch("bin/gcc/debug/main-target-c/c")
t.expect_touch("bin/gcc/debug/main-target-c/c" + exe_suffix)
t.expect_nothing_more()
t.touch("b.h")