From 4355b2de95c2d41beec9488ddaa5a93531e55d1c Mon Sep 17 00:00:00 2001 From: Iustin Pop <iustin@google.com> Date: Tue, 11 Dec 2012 01:11:39 +0100 Subject: [PATCH] Add new Haskell library dependency for tests The 'temporary' library add support for create temporary directories/files beyond what is offered in the base library (which is somewhat limited, and hard to use in tests). Signed-off-by: Iustin Pop <iustin@google.com> Reviewed-by: Michele Tartara <mtartara@google.com> --- configure.ac | 1 + doc/devnotes.rst | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9b41e4ee5..6261bc811 100644 --- a/configure.ac +++ b/configure.ac @@ -553,6 +553,7 @@ AC_GHC_PKG_CHECK([QuickCheck-2.*], [], [HTOOLS_NODEV=1], t) AC_GHC_PKG_CHECK([test-framework-0.6*], [], [HTOOLS_NODEV=1], t) AC_GHC_PKG_CHECK([test-framework-hunit], [], [HTOOLS_NODEV=1]) AC_GHC_PKG_CHECK([test-framework-quickcheck2], [], [HTOOLS_NODEV=1]) +AC_GHC_PKG_CHECK([temporary], [], [HTOOLS_NODEV=1]) # FIXME: unify checks for non-test libraries (attoparsec, hinotify, ...) # that are needed to execute the tests, avoiding the duplication # of the checks. diff --git a/doc/devnotes.rst b/doc/devnotes.rst index 15dbc7d7e..143c5376d 100644 --- a/doc/devnotes.rst +++ b/doc/devnotes.rst @@ -74,6 +74,8 @@ document, plus: it - `shelltestrunner <http://joyful.com/shelltestrunner>`_, used for running shell-based unit-tests +- `temporary <https://github.com/batterseapower/temporary/>`_ library, + tested with version 1.1.2.3 Under Debian Wheezy or later, these can be installed (on top of the required ones from the quick install document) via:: @@ -82,13 +84,14 @@ required ones from the quick install document) via:: libghc-test-framework-dev \ libghc-test-framework-quickcheck2-dev \ libghc-test-framework-hunit-dev \ + libghc-temporary-dev \ hscolour hlint Or alternatively via ``cabal``:: $ cabal install QuickCheck HUnit \ test-framework test-framework-quickcheck2 test-framework-hunit \ - hscolour hlint shelltestrunner + temporary hscolour hlint shelltestrunner Configuring for development -- GitLab