class TestMaemo(BasicTest): platform = Maemo() strict_on_stderr = False def setup_class(cls): check_scratchbox() def test_includes_outside_scratchbox(self): cfile = udir.join('test_includes_outside_scratchbox.c') cfile.write(''' #include <stdio.h> #include "test.h" int main() { printf("%d\\n", XXX_STUFF); return 0; } ''') includedir = py.path.local(__file__).dirpath().join('include') eci = ExternalCompilationInfo(include_dirs=(includedir, )) executable = self.platform.compile([cfile], eci) res = self.platform.execute(executable) self.check_res(res) def test_environment_inheritance(self): py.test.skip("FIXME")
def pick_platform(new_platform, cc): if new_platform == 'host': return host_factory(cc) elif new_platform == 'maemo': from pypy.translator.platform.maemo import Maemo return Maemo(cc) elif new_platform == 'distutils': from pypy.translator.platform.distutils_platform import DistutilsPlatform return DistutilsPlatform() else: raise ValueError("platform = %s" % (new_platform,))
def setup_class(cls): from pypy.translator.platform.maemo import check_scratchbox, Maemo check_scratchbox() cls.platform = Maemo()