cabal-test-bin

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

Latest on Hackage:0.1.5

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD3 licensed by Junji Hashimoto

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.

Changes

0.1.5

  • Fix test

0.1.4

  • Add library and test

0.1.3

  • Add README.md, ChangeLog.md and .travis.yml
  • Modify cabal-dependency
Used by 1 package:
comments powered byDisqus