• Home
  • Raw
  • Download

Lines Matching refs:sut

7 import libscanbuild.compilation as sut  namespace
14 self.assertIsNotNone(sut.compiler_language(['clang']))
15 self.assertIsNotNone(sut.compiler_language(['clang-3.6']))
16 self.assertIsNotNone(sut.compiler_language(['clang++']))
17 self.assertIsNotNone(sut.compiler_language(['clang++-3.5.1']))
18 self.assertIsNotNone(sut.compiler_language(['cc']))
19 self.assertIsNotNone(sut.compiler_language(['c++']))
20 self.assertIsNotNone(sut.compiler_language(['gcc']))
21 self.assertIsNotNone(sut.compiler_language(['g++']))
22 self.assertIsNotNone(sut.compiler_language(['/usr/local/bin/gcc']))
23 self.assertIsNotNone(sut.compiler_language(['/usr/local/bin/g++']))
24 self.assertIsNotNone(sut.compiler_language(['/usr/local/bin/clang']))
26 sut.compiler_language(['armv7_neno-linux-gnueabi-g++']))
28 self.assertIsNone(sut.compiler_language([]))
29 self.assertIsNone(sut.compiler_language(['']))
30 self.assertIsNone(sut.compiler_language(['ld']))
31 self.assertIsNone(sut.compiler_language(['as']))
32 self.assertIsNone(sut.compiler_language(['/usr/local/bin/compiler']))
39 result = sut.split_command([cmd, '-c', 'src.c'])
55 self.assertIsNotNone(sut.split_command(['clang', 'source.c']))
56 self.assertIsNotNone(sut.split_command(['clang', '-c', 'source.c']))
57 self.assertIsNotNone(sut.split_command(['clang', '-c', 'source.c',
60 self.assertIsNone(sut.split_command(['clang', '-E', 'source.c']))
61 self.assertIsNone(sut.split_command(['clang', '-c', '-E', 'source.c']))
62 self.assertIsNone(sut.split_command(['clang', '-c', '-M', 'source.c']))
64 sut.split_command(['clang', '-c', '-MM', 'source.c']))
68 self.assertEqual(expected, sut.split_command(cmd).files)
81 sut.split_command(['cc', 'this.o', 'that.o', '-o', 'a.out']))
83 sut.split_command(['cc', 'this.o', '-lthat', '-o', 'a.out']))
88 self.assertEqual(expected, sut.split_command(command).flags)
112 self.assertIsNone(sut.classify_source('file.o'))
113 self.assertIsNone(sut.classify_source('file.exe'))
114 self.assertIsNone(sut.classify_source('/path/file.o'))
115 self.assertIsNone(sut.classify_source('clang'))
117 self.assertEqual('c', sut.classify_source('file.c'))
118 self.assertEqual('c', sut.classify_source('./file.c'))
119 self.assertEqual('c', sut.classify_source('/path/file.c'))
120 self.assertEqual('c++', sut.classify_source('file.c', False))
121 self.assertEqual('c++', sut.classify_source('./file.c', False))
122 self.assertEqual('c++', sut.classify_source('/path/file.c', False))