You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pkgtest.el 604B

12345678910111213141516
  1. ;;; -*- lexical-binding: t -*-
  2. ;;; pkgtest.el -- Install a test package into a clean Emacs
  3. (require 'package)
  4. (defun elpkg-test-package (tarball)
  5. "Load the given tarball into a fake package store."
  6. (let ((package-user-dir (concat (file-name-sans-extension tarball) ".elpa"))
  7. (package-archives
  8. '(("gnu" . "http://elpa.gnu.org/packages/")
  9. ("marmalade" . "http://marmalade-repo.org/packages/"))))
  10. (toggle-debug-on-error)
  11. (package-initialize)
  12. (package-install-file tarball)
  13. ;; TODO: check for tests and run:
  14. ;; (ert-run-tests-batch-and-exit)
  15. ))