2019-05-20 18:52:28 +02:00
|
|
|
{- |
|
|
|
|
Module : Tests.Lua.Module
|
2022-01-01 20:02:31 +01:00
|
|
|
Copyright : © 2019-2022 Albert Krewinkel
|
2019-05-20 18:52:28 +02:00
|
|
|
License : GNU GPL, version 2 or above
|
|
|
|
|
|
|
|
Maintainer : Albert Krewinkel <albert@zeitkraut.de>
|
|
|
|
Stability : alpha
|
|
|
|
Portability : portable
|
|
|
|
|
|
|
|
Lua module tests
|
|
|
|
-}
|
|
|
|
module Tests.Lua.Module (tests) where
|
|
|
|
|
|
|
|
import System.FilePath ((</>))
|
|
|
|
import Test.Tasty (TestName, TestTree)
|
|
|
|
import Test.Tasty.Lua (testLuaFile)
|
|
|
|
|
|
|
|
import Tests.Lua (runLuaTest)
|
|
|
|
|
|
|
|
tests :: [TestTree]
|
|
|
|
tests =
|
2019-05-30 08:44:40 +02:00
|
|
|
[ testPandocLua "pandoc"
|
|
|
|
("lua" </> "module" </> "pandoc.lua")
|
2020-01-11 14:32:29 +01:00
|
|
|
, testPandocLua "pandoc.List"
|
|
|
|
("lua" </> "module" </> "pandoc-list.lua")
|
2019-05-30 08:44:40 +02:00
|
|
|
, testPandocLua "pandoc.mediabag"
|
|
|
|
("lua" </> "module" </> "pandoc-mediabag.lua")
|
2021-01-27 15:17:39 +01:00
|
|
|
, testPandocLua "pandoc.path"
|
|
|
|
("lua" </> "module" </> "pandoc-path.lua")
|
2022-01-04 10:38:02 +01:00
|
|
|
, testPandocLua "pandoc.template"
|
|
|
|
("lua" </> "module" </> "pandoc-template.lua")
|
2019-05-30 08:44:40 +02:00
|
|
|
, testPandocLua "pandoc.types"
|
|
|
|
("lua" </> "module" </> "pandoc-types.lua")
|
2021-12-20 09:28:38 +01:00
|
|
|
, testPandocLua "pandoc.utils"
|
2019-05-30 08:44:40 +02:00
|
|
|
("lua" </> "module" </> "pandoc-utils.lua")
|
2021-12-31 20:12:23 +01:00
|
|
|
, testPandocLua "globals"
|
|
|
|
("lua" </> "module" </> "globals.lua")
|
2019-05-20 18:52:28 +02:00
|
|
|
]
|
|
|
|
|
|
|
|
testPandocLua :: TestName -> FilePath -> TestTree
|
|
|
|
testPandocLua = testLuaFile runLuaTest
|