test with an sdist

This commit is contained in:
Greg Weber 2011-07-13 09:49:30 -07:00
parent b7f567e8c0
commit efc5c19e52
2 changed files with 16 additions and 6 deletions

View File

@ -2,12 +2,18 @@
## Test suite ## Test suite
Run this from the project root directory. It will make sure each site type builds. It first does an sdist, which ensures we are testing what will be put on hackage.
shelltest tests/scaffold.shelltest shelltest tests/scaffold.shelltest
## Automated builder ## Quicker, repeatable site building
Useful for debugging individual failures.
tests/runscaffold.sh < sqlite-input.txt tests/runscaffold.sh < sqlite-input.txt
## Getting a list of scaffold files for the cabal file ## Getting a list of scaffold files for the cabal file
It is necessary after adding a scaffolding file to add it to the list of files in the cabal file.
find scaffold -type f find scaffold -type f

View File

@ -1,9 +1,13 @@
# use shelltest # This uses shelltest
# note that the first cabal install line is its own test #
# cabal install shelltestrunner # cabal install shelltestrunner
# shelltest test.shelltest # shelltest tests/scaffold.shelltest
#
# note that the first 2 lines setup this test but will also be counted as 2 tests.
cabal clean && cabal install cabal clean && cabal install && cabal sdist
for f in $(ls -1rt dist/*.tar.gz | tail -1); do tar -xzvf $f && cd `basename $f .tar.gz`; done
rm -rf foobar && runghc scaffold.hs init && cd foobar && cabal install && cabal install -fdevel && cd .. rm -rf foobar && runghc scaffold.hs init && cd foobar && cabal install && cabal install -fdevel && cd ..
<<< <<<