Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
7b7193fe
Commit
7b7193fe
authored
Jun 19, 2004
by
ijones
Browse files
cleaned up some parse errors, more TODO
parent
4fe78fc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Distribution/ModuleTest.hs
View file @
7b7193fe
...
...
@@ -111,19 +111,19 @@ tests :: [Test]
tests
=
[
TestLabel
"testing the HUnit package"
$
TestCase
$
do
oldDir
<-
getCurrentDirectory
setCurrentDirectory
"test/HUnit-1.0"
-- assertCmd "make semiclean" "make semiclean"
pkgConf
<-
GHC
.
localPackageConfig
system
$
"ghc-pkg --config-file="
++
pkgConf
++
" -r HUnit-1.0"
assertCmd
"./setup configure --prefix=
\"
,tmp
\"
"
"hunit configure"
assertCmd
"./setup build"
"hunit build"
assertCmd
"./setup install --user"
"hunit install"
assertCmd
(
"ghc -package-conf "
++
pkgConf
++
" -package HUnit-1.0 HUnitTester.hs -o ./hunitTest"
"compile w/ hunit"
assertCmd
(
"ghc -package-conf "
++
pkgConf
++
" -package HUnit-1.0 HUnitTester.hs -o ./hunitTest"
)
"compile w/ hunit"
assertCmd
"./hunitTest"
"hunit test"
assertCmd
(
"ghc-pkg --config-file="
++
pkgConf
++
" -r HUnit-1.0"
"package remove"
assertCmd
(
"ghc-pkg --config-file="
++
pkgConf
++
" -r HUnit-1.0"
)
"package remove"
setCurrentDirectory
oldDir
,
TestLabel
"configure GHC, sdist"
$
TestCase
$
do
system
$
"ghc-pkg -r test-1.0 --config-file="
++
pkgConf
do
pkgConf
<-
GHC
.
localPackageConfig
system
$
"ghc-pkg -r test-1.0 --config-file="
++
pkgConf
setCurrentDirectory
"test/A"
dirE1
<-
doesDirectoryExist
",tmp"
when
dirE1
(
system
"rm -r ,tmp"
>>
return
()
)
...
...
Distribution/TODO
View file @
7b7193fe
* misc
** make a library from the FileUtils, look at Python's os.path.
** add en.wikipedia.org/wiki/Cabal to web page
** if the configure with --user make sure it installs with --user!
** Possibly create a (native?) zib library?
** port code to windows
** ./Setup.lhs build for nhc
...
...
@@ -11,22 +9,21 @@
** ./Setup.lhs bdist
* testing
** count errors and output.
** setup test suite to run on --push?
** redirect non-hunit outputs to a file?
** test / port code for Hugs and nhc
* Code
** BUG: sdist forgets to include the Setup.lhs file :)
** buildDepToDep in Configure doesn't set version dependency.
** Extensions -> flags interface (Misc.hs)
** Change mainModules to [(String, String)] for (Module, executable name)
** Change mainModules to [(String, String)] for (Module, executable
name)
** Build executables for mainModules
** parse Setup.description
** parse
r for
Setup.description
** for fields like allModules, allow user to specify "Foo.Bar.*" or
something to indicate all haskell modules under that?
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment