@@ -78,7 +78,10 @@ testLibrary cabalFile = do
78-- some temporary location that is empty.
78-- some temporary location that is empty.
80-- * Run this test with different kinds of encodings.
80-- * Run this test with different kinds of encodings.
82+-- * Run tests with a different target OS, like Darwin. The packages "iconv",
83+-- "crypt-sha512", "gl" might be worthwhile for testing since their output
83testExecutable :: FilePath -> FilePath -> TestTree
86testExecutable :: FilePath -> FilePath -> TestTree
84testExecutable exe cabalFile = do
87testExecutable exe cabalFile = do
@@ -89,7 +92,7 @@ testExecutable exe cabalFile = do
89 (\ref new -> ["diff", "-u", ref, new])
92 (\ref new -> ["diff", "-u", ref, new])
90 goldenFile
93 goldenFile
92− (callCommand (unwords ["env LANG=en_US.UTF-8", exe, "--sha256=deadbeef", "--compiler=ghc-8.2", "--", cabalFile, ">"++nixFile]))
95+ (callCommand (unwords ["env LANG=en_US.UTF-8", exe, "--sha256=deadbeef", "--system=x86_64-linux", "--compiler=ghc-8.2", "--", cabalFile, ">"++nixFile]))
94-------------------------------------------------------------------------------
97-------------------------------------------------------------------------------
95-- * Helper functions
98-- * Helper functions