Add tests for #2026

This commit is contained in:
Thomas Nagy 2017-09-12 20:11:03 +02:00
parent ad5dd18408
commit a61742affb
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
1 changed files with 4 additions and 0 deletions

View File

@ -84,6 +84,10 @@ def build(bld):
test_cmd([exe], proj_cwd, ' next build from top')
test_cmd([exe], proj_out_cwd, ' next build from out', launch_dir='tmp_out')
test_cmd([exe], proj_sub_cwd, ' next build from subfolder', launch_dir='sub')
test_cmd([exe, '--top=%s' % proj_cwd, '--out=foobar'], proj_cwd,
' next build from top, verify out_dir==lock_file.out_dir')
test_cmd([exe, '--top=%s' % proj_cwd, '--out=foobar'], proj_sub_cwd,
' next build from subfolder, verify out_dir==lock_file.out_dir', launch_dir='sub')
cleanup(bld)
test_cmd([exe, 'configure', '--top=%s' % proj_cwd, '--out=%s' % proj_out_cwd], up_cwd, 'configure with top/out from up cwd',