git.iko.soy/typeable/pandoc
on master help sign in
Moved tests to tests/, modified cabal file so lib isn't recompiled.
commit45e4c123a45b83d666088967c25b91cf9bb5db72 authorJohn MacFarlane <jgm@berkeley.edu> dateThu 26 Jul 2012, 08:37 (14 years ago) parent3053267
14 files changed+35−72
pandoc.cabal+35−72 src/Tests/Arbitrary.hs → tests/Tests/Arbitrary.hs src/Tests/Helpers.hs → tests/Tests/Helpers.hs src/Tests/Old.hs → tests/Tests/Old.hs src/Tests/Readers/LaTeX.hs → tests/Tests/Readers/LaTeX.hs src/Tests/Readers/Markdown.hs → tests/Tests/Readers/Markdown.hs src/Tests/Readers/RST.hs → tests/Tests/Readers/RST.hs src/Tests/Shared.hs → tests/Tests/Shared.hs src/Tests/Writers/ConTeXt.hs → tests/Tests/Writers/ConTeXt.hs src/Tests/Writers/HTML.hs → tests/Tests/Writers/HTML.hs src/Tests/Writers/LaTeX.hs → tests/Tests/Writers/LaTeX.hs src/Tests/Writers/Markdown.hs → tests/Tests/Writers/Markdown.hs src/Tests/Writers/Native.hs → tests/Tests/Writers/Native.hs src/test-pandoc.hs → tests/test-pandoc.hs
pandoc.cabal+35−72
@@ -377,46 +377,38 @@ Executable pandoc
377377
378378Executable test-pandoc
379379 Main-Is: test-pandoc.hs
380− -- Note: the following is duplicated in all stanzas.
381− -- It needs to be duplicated because of the library & executable flags.
382− -- BEGIN DUPLICATED SECTION
383− Build-Depends: containers >= 0.1 && < 0.5,
384− parsec >= 3.1 && < 3.2,
385− mtl >= 1.1 && < 2.2,
386− network >= 2 && < 2.4,
387− filepath >= 1.1 && < 1.4,
388− process >= 1 && < 1.2,
389− directory >= 1 && < 1.2,
390− bytestring >= 0.9 && < 1.0,
391− zip-archive >= 0.1.1.7 && < 0.2,
392− utf8-string >= 0.3 && < 0.4,
393− old-locale >= 1 && < 1.1,
394− time >= 1.2 && < 1.5,
395− HTTP >= 4000.0.5 && < 4000.3,
396− texmath >= 0.6.0.2 && < 0.7,
397− xml >= 1.3.12 && < 1.4,
398− random >= 1 && < 1.1,
399− extensible-exceptions >= 0.1 && < 0.2,
400− citeproc-hs >= 0.3.4 && < 0.4,
401− pandoc-types >= 1.9.0.2 && < 1.10,
402− json >= 0.4 && < 0.6,
403− tagsoup >= 0.12.5 && < 0.13,
404− base64-bytestring >= 0.1 && < 0.2,
405− zlib >= 0.5 && < 0.6,
406− highlighting-kate >= 0.5.1 && < 0.6,
407− data-default >= 0.4 && < 0.6,
408− temporary >= 1.1 && < 1.2
409− if flag(blaze_html_0_5)
410− build-depends:
411− blaze-html >= 0.5 && < 0.6,
412− blaze-markup >= 0.5.1 && < 0.6
413− else
414− build-depends:
415− blaze-html >= 0.4.3.0 && < 0.5
380+ Hs-Source-Dirs: tests
416381 if impl(ghc >= 6.10)
417382 Build-depends: base >= 4 && < 5, syb >= 0.1 && < 0.4
418383 else
419384 Build-depends: base >= 3 && < 4
385+ Build-Depends: pandoc,
386+ pandoc-types >= 1.9.0.2 && < 1.10,
387+ utf8-string >= 0.3 && < 0.4,
388+ bytestring >= 0.9 && < 1.0,
389+ directory >= 1 && < 1.2,
390+ filepath >= 1.1 && < 1.4,
391+ process >= 1 && < 1.2,
392+ Diff,
393+ test-framework >= 0.3 && < 0.7,
394+ test-framework-hunit >= 0.2 && < 0.3,
395+ test-framework-quickcheck2 >= 0.2.9 && < 0.3,
396+ QuickCheck >= 2.4 && < 2.6,
397+ HUnit >= 1.2 && < 1.3,
398+ template-haskell >= 2.4 && < 2.8,
399+ ansi-terminal == 0.5.*
400+ Other-Modules: Tests.Old
401+ Tests.Helpers
402+ Tests.Arbitrary
403+ Tests.Shared
404+ Tests.Readers.LaTeX
405+ Tests.Readers.Markdown
406+ Tests.Readers.RST
407+ Tests.Writers.Native
408+ Tests.Writers.ConTeXt
409+ Tests.Writers.HTML
410+ Tests.Writers.Markdown
411+ Tests.Writers.LaTeX
420412 if impl(ghc >= 7.0.1)
421413 Ghc-Options: -O2 -rtsopts -Wall -fno-warn-unused-do-bind -dno-debug-output
422414 else
@@ -424,43 +416,14 @@ Executable test-pandoc
424416 Ghc-Options: -O2 -Wall -fno-warn-unused-do-bind -dno-debug-output
425417 else
426418 Ghc-Options: -O2 -Wall
427− if impl(ghc >= 7.0.1)
428− Ghc-Prof-Options: -auto-all -caf-all -rtsopts
429− else
430− Ghc-Prof-Options: -auto-all -caf-all
431− Default-Language: Haskell98
432− Default-Extensions: CPP
433− Other-Extensions: PatternGuards, OverloadedStrings,
434− ScopedTypeVariables, GeneralizedNewtypeDeriving,
435− RelaxedPolyRec, DeriveDataTypeable, TypeSynonymInstances,
436− FlexibleInstances
437− Hs-Source-Dirs: src
438− -- END DUPLICATED SECTION
439419 if !flag(tests)
440420 Buildable: False
441421 else
442422 Buildable: True
443− if impl(ghc >= 7)
444− cpp-options: -D_LIT=lit
445− else
446− cpp-options: -D_LIT=$lit
447− Other-Extensions: TemplateHaskell, QuasiQuotes
448− Build-Depends: Diff, test-framework >= 0.3 && < 0.7,
449− test-framework-hunit >= 0.2 && < 0.3,
450− test-framework-quickcheck2 >= 0.2.9 && < 0.3,
451− QuickCheck >= 2.4 && < 2.6,
452− HUnit >= 1.2 && < 1.3,
453− template-haskell >= 2.4 && < 2.8,
454− ansi-terminal == 0.5.*
455− Other-Modules: Tests.Old
456− Tests.Helpers
457− Tests.Arbitrary
458− Tests.Shared
459− Tests.Readers.LaTeX
460− Tests.Readers.Markdown
461− Tests.Readers.RST
462− Tests.Writers.Native
463− Tests.Writers.ConTeXt
464− Tests.Writers.HTML
465− Tests.Writers.Markdown
466− Tests.Writers.LaTeX
423+ if impl(ghc >= 7)
424+ cpp-options: -D_LIT=lit
425+ else
426+ cpp-options: -D_LIT=$lit
427+ Default-Language: Haskell98
428+ Default-Extensions: CPP, TemplateHaskell, QuasiQuotes
429+
src/Tests/Arbitrary.hs → tests/Tests/Arbitrary.hsrenamed

The content is the same.

src/Tests/Helpers.hs → tests/Tests/Helpers.hsrenamed

The content is the same.

src/Tests/Old.hs → tests/Tests/Old.hsrenamed

The content is the same.

src/Tests/Readers/LaTeX.hs → tests/Tests/Readers/LaTeX.hsrenamed

The content is the same.

src/Tests/Readers/Markdown.hs → tests/Tests/Readers/Markdown.hsrenamed

The content is the same.

src/Tests/Readers/RST.hs → tests/Tests/Readers/RST.hsrenamed

The content is the same.

src/Tests/Shared.hs → tests/Tests/Shared.hsrenamed

The content is the same.

src/Tests/Writers/ConTeXt.hs → tests/Tests/Writers/ConTeXt.hsrenamed

The content is the same.

src/Tests/Writers/HTML.hs → tests/Tests/Writers/HTML.hsrenamed

The content is the same.

src/Tests/Writers/LaTeX.hs → tests/Tests/Writers/LaTeX.hsrenamed

The content is the same.

src/Tests/Writers/Markdown.hs → tests/Tests/Writers/Markdown.hsrenamed

The content is the same.

src/Tests/Writers/Native.hs → tests/Tests/Writers/Native.hsrenamed

The content is the same.

src/test-pandoc.hs → tests/test-pandoc.hsrenamed

The content is the same.