cabal-test-bin: A program for finding temporary build file during cabal-test.

[ bsd3, library, program, testing ] [ Propose Tags ] [ Report a vulnerability ]

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]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 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 && <5), cabal-test-bin, directory, filepath, unix [details]
License BSD-3-Clause
Author Junji Hashimoto
Maintainer junji.hashimoto@gmail.com
Category Testing
Bug tracker https://github.com/junjihashimoto/cabal-test-bin/issues
Source repo head: git clone https://github.com/junjihashimoto/cabal-test-bin.git
Uploaded by junjihashimoto at 2015-02-03T20:06:06Z
Distributions NixOS:0.1.5
Reverse Dependencies 1 direct, 0 indirect [details]
Executables cabal-test-bin
Downloads 4466 total (16 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2015-02-03 [all 1 reports]

Readme for cabal-test-bin-0.1.5

[back to package description]

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.