Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testsuite fixes #112

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ The docs get put in `dist/doc/html/`.
## Building the testsuite

The `snap-server` has a fairly comprehensive test suite. To build and run it,
`cd` into the `test/` directory and run
run

$ cabal configure # for the stock backend, or..
$ cabal configure -fopenssl # for the SSL backend
$ cabal configure --enable-tests # for the stock backend, or..
$ cabal configure -fopenssl --enable-tests # for the SSL backend

$ cabal build

Expand Down
3 changes: 2 additions & 1 deletion runTestsAndCoverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ export LANG=C
rm -Rf testsuite.tix

# TODO How do we find the executable without knowing the version number in dist-newstyle?
./dist-newstyle/build/snap-server-1.0.0.0/build/testsuite/testsuite -j4 -a1000 $*
TESTSUITE=`find . -type f -perm 775 -name 'testsuite'`
$TESTSUITE -j4 -a1000 $*

DIR="./dist-newstyle/hpc"

Expand Down
6 changes: 5 additions & 1 deletion snap-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,9 @@ Executable snap-test-server
System.SendFile,
System.SendFile.FreeBSD

if !impl(ghc >= 8.0)
build-depends: semigroups >= 0.16 && < 0.19

build-depends:
attoparsec,
base,
Expand All @@ -516,7 +519,8 @@ Executable snap-test-server
time,
transformers,
unix-compat,
vector
vector,
filepath
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, here's another new dependency.


ghc-options: -Wall -fwarn-tabs -funbox-strict-fields
-fno-warn-unused-do-bind -threaded -rtsopts
Expand Down