diff options
author | William Deegan <bill@baddogconsulting.com> | 2023-01-29 00:52:07 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2023-01-29 00:52:07 (GMT) |
commit | a220b3f5989db0696d9d03a0988cbcff60e90e59 (patch) | |
tree | f8cce0c05888743c2337bbc1a7a066c056165e4b /test/CompilationDatabase/basic.py | |
parent | e980c5bc26892ce4db1e45516e9983bbc6a2bd33 (diff) | |
parent | 04bc3eaab31c5437764b10ee942b19740b5139c9 (diff) | |
download | SCons-a220b3f5989db0696d9d03a0988cbcff60e90e59.zip SCons-a220b3f5989db0696d9d03a0988cbcff60e90e59.tar.gz SCons-a220b3f5989db0696d9d03a0988cbcff60e90e59.tar.bz2 |
Merge remote-tracking branch 'upstream/master' into fix_configure_marking_up_to_date
Diffstat (limited to 'test/CompilationDatabase/basic.py')
-rw-r--r-- | test/CompilationDatabase/basic.py | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/CompilationDatabase/basic.py b/test/CompilationDatabase/basic.py index 2f76752..6bf0d1a 100644 --- a/test/CompilationDatabase/basic.py +++ b/test/CompilationDatabase/basic.py @@ -1,6 +1,8 @@ #!/usr/bin/env python # -# __COPYRIGHT__ +# MIT License +# +# Copyright The SCons Foundation # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the @@ -20,7 +22,7 @@ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -# + """ Test CompilationDatabase and several variations of ways to call it and values of COMPILATIONDB_USE_ABSPATH @@ -46,7 +48,7 @@ rel_files = [ 'compile_commands_target.json', 'compile_commands.json', 'compile_commands_over_rel.json', - 'compile_commands_over_abs_0.json' + 'compile_commands_over_abs_0.json', ] abs_files = [ @@ -63,7 +65,8 @@ example_rel_file = """[ "file": "test_main.c", "output": "test_main.o" } -]""" % (sys.executable, test.workdir) +] +""" % (sys.executable, test.workdir) if sys.platform == 'win32': example_rel_file = example_rel_file.replace('\\', '\\\\') @@ -80,7 +83,8 @@ example_abs_file = """[ "file": "%s", "output": "%s" } -]""" % (sys.executable, test.workdir, os.path.join(test.workdir, 'test_main.c'), os.path.join(test.workdir, 'test_main.o')) +] +""" % (sys.executable, test.workdir, os.path.join(test.workdir, 'test_main.c'), os.path.join(test.workdir, 'test_main.o')) if sys.platform == 'win32': example_abs_file = example_abs_file.replace('\\', '\\\\') |