[commit: packages/time] format-widths, ghc, improve-leapseconds, master, posix-perf, tasty, wip/travis: test sdist (ccd0609)

git at git.haskell.org git at git.haskell.org
Fri Apr 21 16:54:13 UTC 2017


Repository : ssh://git@git.haskell.org/time

On branches: format-widths,ghc,improve-leapseconds,master,posix-perf,tasty,wip/travis
Link       : http://git.haskell.org/packages/time.git/commitdiff/ccd06090ff5db142dabd36d7e8ce5ca5bc10b60f

>---------------------------------------------------------------

commit ccd06090ff5db142dabd36d7e8ce5ca5bc10b60f
Author: Ashley Yakeley <ashley at yakeley.org>
Date:   Sat May 30 21:05:46 2015 -0700

    test sdist


>---------------------------------------------------------------

ccd06090ff5db142dabd36d7e8ce5ca5bc10b60f
 .gitignore |  1 +
 Makefile   | 11 +++++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/.gitignore b/.gitignore
index 5880242..2c7ac62 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@ dist-install
 ghc.mk
 lib/include/HsTimeConfig.h
 lib/include/HsTimeConfig.h.in
+test-sdist
diff --git a/Makefile b/Makefile
index 7b37eb9..291dc2f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,9 @@
-default: clean test install sdist
+default: clean test install test-sdist
 
 # Building
 
 clean:
+	rm -rf test-sdist
 	cabal clean
 
 configure:
@@ -26,7 +27,13 @@ install:
 sdist: clean configure
 	cabal sdist
 
+test-sdist: sdist
+	mkdir -p test-sdist
+	tar -C test-sdist -z -x -f dist/time-1.5.1.tar.gz
+	cp Makefile test-sdist/time-1.5.1/
+	cd test-sdist/time-1.5.1 && make test
+
 # switch off intermediate file deletion
 .SECONDARY:
 
-.PHONY: default clean configure build haddock copy install test sdist
+.PHONY: default clean configure build haddock copy install test sdist test-sdist



More information about the ghc-commits mailing list