diff options
author | Patrick Quist <partouf@gmail.com> | 2022-08-25 21:52:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-25 21:52:09 +0200 |
commit | 5b485d36e3708e192b63400d3bc30bb22cf33330 (patch) | |
tree | a6db770b803b7b6e82fa7224f331b38b7797f220 /etc/scripts/util/propschecktest.py | |
parent | 098e0abc4dc870278f1ab4c060c420a5999b54b3 (diff) | |
parent | 16dca9d307220229b80327ea0998c4cecec9137b (diff) | |
download | compiler-explorer-gh-4023.tar.gz compiler-explorer-gh-4023.zip |
Merge branch 'main' into z88dkgh-4023
Diffstat (limited to 'etc/scripts/util/propschecktest.py')
-rw-r--r-- | etc/scripts/util/propschecktest.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/etc/scripts/util/propschecktest.py b/etc/scripts/util/propschecktest.py index 4eed2fbbd..c709c58cc 100644 --- a/etc/scripts/util/propschecktest.py +++ b/etc/scripts/util/propschecktest.py @@ -53,6 +53,18 @@ class PropsCheckTests(unittest.TestCase): self.run_test("./test/cases/duplicate_lines.properties", "duplicate_lines", {str(Line(5, "duplicated.prop=true"))}) + def test_duplicated_compiler(self): + self.run_test("./test/cases/bad_duplicated_compiler.properties", "duplicated_compiler_references", + {"duplicatedname"}) + + def test_duplicated_group(self): + self.run_test("./test/cases/bad_duplicated_group.properties", "duplicated_group_references", + {"dupgroup"}) + + def test_suspicious_path(self): + self.run_test("./test/cases/suspicious_path.properties", "suspicious_path", + {"/wrong/path/bin/gcc"}) + def test_good_file(self): result = process_file('../../config/c++.amazon.properties') for k in result: |