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

Updated test to use generic print rules instead of dump rule. And therefore removed dump rule.

[SVN r13667]
This commit is contained in:
Rene Rivera
2002-05-04 15:44:38 +00:00
parent ff7f0bf8f6
commit 4710ebfa4d
3 changed files with 46 additions and 74 deletions

View File

@@ -21,7 +21,7 @@ IMPORT $(__name__) : exe : : exe ;
project.load project-test1 ;
project.dump ;
project-root.print ;
assert.result project-test1/dir2 : project.lookup @/cool-library : "." ;
assert.result project-test1/dir2 : project.lookup project-test1@/cool-library : "." ;

View File

@@ -9,38 +9,47 @@ t = Tester()
os.chdir(t.original_workdir)
expected_output="""Projects structure dump
Location: project-test1
Project id: /boost-build-test-project-1
Project root: project-test1
Parent project: none
Requirements: <threading>multi <include>/home/ghost/local/include
Default build: debug
Source location: project-test1
Subincludes: dir dir2
Location: project-test1/dir
Project id: /boost-build-test-project-1/dir
Project root: project-test1
Parent project: project-test1
Requirements: <threading>multi <include>/home/ghost/local/include
Default build: release
Source location: project-test1/dir/src
Subincludes:
Location: project-test1/dir2
Project id: /cool-library
Project root: project-test1/dir2
Parent project: none
Requirements: <include>/home/ghost/build/boost-cvs
Default build: debug
Source location: project-test1/dir2
Subincludes:
expected_output="""Project Roots:
'project-test1/dir2':
Module for project-root is 'project-root<project-test1/dir2>'
Projects:
'/cool-library':
* Project root: project-test1/dir2
* Parent project: (none)
* Requirements: <include>/home/ghost/build/boost-cvs
* Default build: debug
* Source location: project-test1/dir2
* Subincludes:
'project-test1':
Module for project-root is 'project-root<project-test1>'
Projects:
'/boost-build-test-project-1/dir':
* Project root: project-test1
* Parent project: project-test1
* Requirements: <threading>multi <include>/home/ghost/local/include
* Default build: release
* Source location: project-test1/dir/src
* Subincludes:
'/boost-build-test-project-1':
* Project root: project-test1
* Parent project: (none)
* Requirements: <threading>multi <include>/home/ghost/local/include
* Default build: debug
* Source location: project-test1
* Subincludes: dir dir2
"""
t.run_build_system("--build-system=project-test1", stdout=expected_output)