def test_pkg(package): """Test running the package """ mkdir('dist/test', parent=True) unpack(package, 'dist/test/') dirname = basename(".".join(package.split(".")[:-2])) sh_cmdln('emacs -Q -l dist/test/' + dirname + '/epy-init.el', [])
def test_pkg(package): """Test running the package """ mkdir('dist/test', parent=True) unpack(package, 'dist/test/') dirname = basename( ".".join(package.split(".")[:-2])) sh_cmdln('emacs -Q -l dist/test/'+dirname+'/epy-init.el', [])
def compile_el_file(fn): """ Compile an emacs file FN """ sh_cmdln("emacs -Q -l epy-init.el -batch -f batch-byte-compile",[fn])
def test_run(): sh_cmdln('emacs -Q -l epy-init.el', [])