racket/collects/tests/planet2/tests-overwrite.rkt
Matthew Flatt 381d9d84d6 raco pkg: switch from "METADATA.rktd" to "info.rkt"
For now, "METADATA.rktd" is still recognized as a fallback.

Also, rewrite package source type and name inference,
make ".zip" the default format for `raco pkg create',
and many doc edits.
2012-11-30 19:09:19 -07:00

17 lines
510 B
Racket

#lang racket/base
(require "shelly.rkt"
"util.rkt")
(pkg-tests
(with-fake-root
(shelly-case
"The installation directory is not touched until a package can definitely be installed AND one fail reverts the whole install"
;; Step 1. Try to install a package that will fail
$ "raco pkg install test-pkgs/planet2-test1.zip test-pkgs/planet2-test1.zip"
=exit> 1
=stderr> #rx"packages conflict"
;; Step 2. Try to install safely
$ "raco pkg install test-pkgs/planet2-test1.zip")))