def gcc_test(self): c11settings_release = MockSettings("Release", os="Linux", arch="x86", compiler_name="gcc", libcxx="libstdc++11", version="6.2") gcc = GCC(c11settings_release) self.assertEquals(gcc.command_line, "-s -DNDEBUG -m32") c11settings_debug = MockSettings("Debug", os="Linux", arch="x86", compiler_name="gcc", libcxx="libstdc++", version="6.2") gcc = GCC(c11settings_debug) self.assertEquals(gcc.command_line, "-g -m32")
def gcc_test(self): gcc = GCC(MockLinuxSettings()) self.assertEquals(gcc.command_line, "-s -DNDEBUG -m32 ") gcc = GCC(MockLinuxSettings("Debug")) self.assertEquals(gcc.command_line, "-g -m32 ")