Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Abhiroop Sarkar
nofib
Commits
97a6155f
Commit
97a6155f
authored
Mar 04, 2013
by
dterei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More informative print line when running tests with Shake.
parent
abe42cf2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
Nofib.hs
Nofib.hs
+1
-1
No files found.
Nofib.hs
View file @
97a6155f
...
...
@@ -249,7 +249,7 @@ buildRules r Build{..} = do
-- Return True if the test passes.
runTest
::
Nofib
->
String
->
IO
Bool
runTest
Build
{
run
=
Just
speed
,
..
}
test
=
do
putStrLn
$
"==nofib== "
++
takeDirectory1
test
++
": time to run "
++
take
Directory1
test
++
" follows..."
putStrLn
$
"==nofib== "
++
takeDirectory1
test
++
": time to run "
++
take
BaseName
test
++
" follows..."
config
<-
readConfig
$
output
</>
test
</>
"config.txt"
let
args
=
words
(
config
"PROG_ARGS"
)
++
words
(
config
$
map
toUpper
(
show
speed
)
++
"_OPTS"
)
stdin
<-
let
s
=
config
"STDIN_FILE"
in
if
s
==
""
then
grab
"stdin"
else
readFile
$
test
</>
s
...
...
Write
Preview
Markdown
is supported
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