diff options
author | William Deegan <bill@baddogconsulting.com> | 2020-01-21 17:12:56 -0500 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2020-01-21 17:12:56 -0500 |
commit | d73f92f83c78022cb35d3af4d8471afe9422c0dd (patch) | |
tree | d5dcd38e06b4e6facf6bdd32d9a1774477c42ed3 /test/Configure | |
parent | 076a09f263916279c2e99e60f083bc398024d5f9 (diff) | |
download | scons-git-d73f92f83c78022cb35d3af4d8471afe9422c0dd.tar.gz |
possible second test for issue
Diffstat (limited to 'test/Configure')
-rw-r--r-- | test/Configure/issue-3469/fixture/SConstruct.2 | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/test/Configure/issue-3469/fixture/SConstruct.2 b/test/Configure/issue-3469/fixture/SConstruct.2 index e69de29bb..df0799376 100644 --- a/test/Configure/issue-3469/fixture/SConstruct.2 +++ b/test/Configure/issue-3469/fixture/SConstruct.2 @@ -0,0 +1,44 @@ +""" +This tests if we add/remove a test in between other tests if a rerun will properly cache the results. +Github issue #3469 + +MongoDB's problem is on 3rd run, a check which expects it's objectfile to have a main doesn't. +This means +This one does the following. +CheckLink +CheckHeader + +""" +import textwrap + +# DefaultEnvironment(tools=[]) + +vars = Variables() +vars.Add(BoolVariable('SKIP', 'Skip Middle Conf test', 0)) +env = Environment(variables=vars) + +print("SKIP:%s" % env['SKIP']) + + +conf = Configure(env, conf_dir='conf2') + +if not env['SKIP']: + int_size = conf.CheckTypeSize('unsigned int') + print("Size:%d"%int_size) + + +if env['SKIP'] and not conf.CheckCXXHeader('math.h'): + print('Math.h must be installed!') + Exit(1) + + +# +# if not conf.CheckCHeader('stdlib.h'): +# print('stdlib.h must be installed!') +# Exit(1) +# +# if not conf.CheckCHeader('stdio.h'): +# print('stdio.h must be installed!') +# Exit(1) + +env = conf.Finish() |