Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hsc2hs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rinat Striungis
hsc2hs
Commits
25eb5b35
Verified
Commit
25eb5b35
authored
7 years ago
by
Moritz Angermann
Browse files
Options
Downloads
Patches
Plain Diff
Move 32bit targets into 32bit tests
parent
2f5c9be6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Spec.hs
+7
-5
7 additions, 5 deletions
Spec.hs
with
7 additions
and
5 deletions
Spec.hs
+
7
−
5
View file @
25eb5b35
...
@@ -7,16 +7,14 @@ import Control.Monad (forM_)
...
@@ -7,16 +7,14 @@ import Control.Monad (forM_)
main
::
IO
()
main
::
IO
()
main
=
hspec
$
do
main
=
hspec
$
do
describe
"asm parser"
$
do
describe
"asm parser"
$
do
-- 64bit
forM_
[(
"x86_64 linux"
,
"test/asm/x86_64-linux.s"
)
forM_
[(
"x86_64 linux"
,
"test/asm/x86_64-linux.s"
)
,(
"x86_64 macos"
,
"test/asm/x86_64-mac.s"
)
,(
"x86_64 macos"
,
"test/asm/x86_64-mac.s"
)
,(
"x86_64 mingw"
,
"test/asm/x86_64-mingw32.s"
)
,(
"x86_64 mingw"
,
"test/asm/x86_64-mingw32.s"
)
,(
"aarch64 ios"
,
"test/asm/aarch64-ios.s"
)
,(
"aarch64 ios"
,
"test/asm/aarch64-ios.s"
)
,(
"aarch64 linux"
,
"test/asm/aarch64.s"
)
,(
"aarch64 linux"
,
"test/asm/aarch64.s"
)
,(
"sparc linux"
,
"test/asm/sparc-linux.s"
)
,(
"sparc64 linux"
,
"test/asm/sparc64-linux.s"
)
,(
"sparc64 linux"
,
"test/asm/sparc64-linux.s"
)
,(
"mips linux"
,
"test/asm/mips-linux.s"
)
,(
"mips64 linux"
,
"test/asm/mips64-linux.s"
)
,(
"mips64 linux"
,
"test/asm/mips64-linux.s"
)
,(
"powerpc linux"
,
"test/asm/powerpc-linux.s"
)
,(
"powerpc64 linux"
,
"test/asm/powerpc64-linux.s"
)
,(
"powerpc64 linux"
,
"test/asm/powerpc64-linux.s"
)
,(
"powerpc64le linux"
,
"test/asm/powerpc64le-linux.s"
)
,(
"powerpc64le linux"
,
"test/asm/powerpc64le-linux.s"
)
,(
"hppa linux"
,
"test/asm/hppa-linux.s"
)
,(
"hppa linux"
,
"test/asm/hppa-linux.s"
)
...
@@ -41,10 +39,14 @@ main = hspec $ do
...
@@ -41,10 +39,14 @@ main = hspec $ do
it
"t should be
\"
Hello World
\\\"\\
n
\\
0
\"
"
$
do
it
"t should be
\"
Hello World
\\\"\\
n
\\
0
\"
"
$
do
lookupString
"t"
x
`
shouldBe
`
(
Just
"Hello World
\"
12345
\0
"
)
lookupString
"t"
x
`
shouldBe
`
(
Just
"Hello World
\"
12345
\0
"
)
-- 32 bit
forM_
[(
"arm ios"
,
"test/asm/arm-ios.s"
)
forM_
[(
"arm ios"
,
"test/asm/arm-ios.s"
)
,(
"arm linux"
,
"test/asm/arm.s"
)
,(
"arm linux"
,
"test/asm/arm.s"
)
,(
"x86 linux"
,
"test/asm/x86-linux.s"
)]
,(
"x86 linux"
,
"test/asm/x86-linux.s"
)
,(
"sparc linux"
,
"test/asm/sparc-linux.s"
)
,(
"mips linux"
,
"test/asm/mips-linux.s"
)
,(
"powerpc linux"
,
"test/asm/powerpc-linux.s"
)
]
$
\
(
d
,
f
)
->
do
$
\
(
d
,
f
)
->
do
context
d
$
do
context
d
$
do
x
<-
runIO
$
parse
f
x
<-
runIO
$
parse
f
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment