The cabal-test-bin package

[Tags:bsd3, library, program, test]

cabal-test-bin finds exe-file for cabal test below

 cabal install --enable-tests --run-tests
 cabal test

When a project uses cabal-sandbox, cabal-test-bin checks following paths.

 <project root>/dist/dist-sandbox-<hash>/build/<exe-file>/<exe-file>
 <project root>/dist/build/<exe-file>/<exe-file>

[Skip to Readme]

Properties

Versions 0.1.0, 0.1.1, 0.1.2, 0.1.3, 0.1.4, 0.1.5
Change log ChangeLog.md
Dependencies base (==4.*), cabal-test-bin, directory, filepath, unix [details]
License BSD3
Author Junji Hashimoto
Maintainer junji.hashimoto@gmail.com
Category Testing
Bug tracker https://github.com/junjihashimoto/cabal-test-bin/issues
Source repository head: git clone https://github.com/junjihashimoto/cabal-test-bin.git
Uploaded Tue Feb 3 20:06:06 UTC 2015 by junjihashimoto
Distributions NixOS:0.1.5
Downloads 873 total (17 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2015-02-03 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for cabal-test-bin

Readme for cabal-test-bin-0.1.5

cabal-test-bin: A program finding temporal build-binary for cabal-test

Hackage version Build Status

cabal-test-bin finds exe-file for cabal test(like following commands)

$ cabal install --enable-tests --run-tests
$ cabal test

When a project uses cabal-sandbox, cabal-test-bin checks following paths.

<project root>/dist/dist-sandbox-<hash>/build/<exe-file>/<exe-file> 
<project root>/dist/build/<exe-file>/<exe-file>

cabal-test-bin is a program find

Getting started

Install this from Hackage.

$ cabal update && cabal install cabal-test-bin

Usage

Command Line is below.

$ cabal-test-bin 'project-directory' 'program-name(this is just command-name, not path)'

cabal-test-bin generates jenkins hash from cabal-sandbox-dir of current project. Then it finds 'project-directory'/dist/build/'program-name' and 'project-directory'/dist/dist-sandbox-'hash'/build/'program-name'. When both files exits, it chooses newer one.