git.iko.soy/typeable/pandoc
on master help sign in
Fix stale references to `tests` directory (#3469)

Some of the benchmarks were failing due to references to files in the `tests` directory, which is now called `test`. A search found other references to it also. This commit updates all these references.

commitfa43e364493a1cba94f431d78b17c5651bf32a8d authorOr Neeman <oneeman@gmail.com> dateSat 25 Feb 2017, 03:31 (10 years ago) parent59c673c
5 files changed+11−11
CONTRIBUTING.md+2−2 COPYRIGHT+1−1 INSTALL.md+4−4 benchmark/benchmark-pandoc.hs+3−3 benchmark/weigh-pandoc.hs+1−1
CONTRIBUTING.md+2−2
@@ -161,7 +161,7 @@ or, if you're using [stack],
161161 stack setup
162162 stack test
163163
164−The test program is `tests/test-pandoc.hs`.
164+The test program is `test/test-pandoc.hs`.
165165
166166Benchmarks
167167----------
@@ -242,7 +242,7 @@ github: <http://github.com/jgm/pandoc>. To get a local copy of the source:
242242
243243The source for the main pandoc program is `pandoc.hs`. The source for
244244the pandoc library is in `src/`, the source for the tests is in
245−`tests/`, and the source for the benchmarks is in `benchmark/`.
245+`test/`, and the source for the benchmarks is in `benchmark/`.
246246
247247The modules `Text.Pandoc.Definition`, `Text.Pandoc.Builder`, and
248248`Text.Pandoc.Generic` are in a separate library `pandoc-types`. The code can
COPYRIGHT+1−1
@@ -57,7 +57,7 @@ Released under the GNU General Public License version 2 or later.
5757
5858----------------------------------------------------------------------
5959src/Text/Pandoc/Readers/Org.hs
60−tests/Tests/Readers/Org.hs
60+test/Tests/Readers/Org.hs
6161Copyright (C) 2014-2015 Albert Krewinkel
6262
6363Released under the GNU General Public License version 2 or later.
INSTALL.md+4−4
@@ -281,10 +281,10 @@ the `-t` option:
281281
282282If you add a new feature to pandoc, please add tests as well, following
283283the pattern of the existing tests. The test suite code is in
284−`tests/test-pandoc.hs`. If you are adding a new reader or writer, it is
285−probably easiest to add some data files to the `tests` directory, and
286−modify `tests/Tests/Old.hs`. Otherwise, it is better to modify the module
287−under the `tests/Tests` hierarchy corresponding to the pandoc module you
284+`test/test-pandoc.hs`. If you are adding a new reader or writer, it is
285+probably easiest to add some data files to the `test` directory, and
286+modify `test/Tests/Old.hs`. Otherwise, it is better to modify the module
287+under the `test/Tests` hierarchy corresponding to the pandoc module you
288288are changing.
289289
290290### Running benchmarks
benchmark/benchmark-pandoc.hs+3−3
@@ -61,9 +61,9 @@ main = do
6161 matchWriter (_, _) = False
6262 let matchedReaders = filter matchReader readers
6363 let matchedWriters = filter matchWriter writers
64− inp <- readFile "tests/testsuite.txt"
65− lalune <- B.readFile "tests/lalune.jpg"
66− movie <- B.readFile "tests/movie.jpg"
64+ inp <- readFile "test/testsuite.txt"
65+ lalune <- B.readFile "test/lalune.jpg"
66+ movie <- B.readFile "test/movie.jpg"
6767 time <- getCurrentTime
6868 let setupFakeFiles = modifyPureState $ \st -> st{ stFiles =
6969 FileTree $ Map.fromList [
benchmark/weigh-pandoc.hs+1−1
@@ -3,7 +3,7 @@ import Text.Pandoc
33
44main :: IO ()
55main = do
6− doc <- read <$> readFile "tests/testsuite.native"
6+ doc <- read <$> readFile "test/testsuite.native"
77 mainWith $ do
88 func "Pandoc document" id doc
99 mapM_