Update of /cvsroot/monetdb/pathfinder/tests/BugTracker/Tests
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17459
Modified Files:
Tag: XQuery_0-24
All
Added Files:
Tag: XQuery_0-24
compilation_or_runtime_choice.SF-1991738_0_ALG.bat
compilation_or_runtime_choice.SF-1991738_0_ALG.sh
compilation_or_runtime_choice.SF-1991738_0_ALG.stable.err
compilation_or_runtime_choice.SF-1991738_0_ALG.stable.out
compilation_or_runtime_choice.SF-1991738_0_ALG.xq
compilation_or_runtime_choice.SF-1991738_0_MPS.bat
compilation_or_runtime_choice.SF-1991738_0_MPS.sh
compilation_or_runtime_choice.SF-1991738_0_MPS.stable.err
compilation_or_runtime_choice.SF-1991738_0_MPS.stable.out
compilation_or_runtime_choice.SF-1991738_0_MPS.xq
compilation_or_runtime_choice.SF-1991738_1_ALG.bat
compilation_or_runtime_choice.SF-1991738_1_ALG.sh
compilation_or_runtime_choice.SF-1991738_1_ALG.stable.err
compilation_or_runtime_choice.SF-1991738_1_ALG.stable.out
compilation_or_runtime_choice.SF-1991738_1_ALG.xq
compilation_or_runtime_choice.SF-1991738_1_MPS.bat
compilation_or_runtime_choice.SF-1991738_1_MPS.sh
compilation_or_runtime_choice.SF-1991738_1_MPS.stable.err
compilation_or_runtime_choice.SF-1991738_1_MPS.stable.out
compilation_or_runtime_choice.SF-1991738_1_MPS.xq
Log Message:
Added tests (compilation, only) for
[ 1991738 ] XQ: compilation or runtime choice
https://sourceforge.net/tracker/index.php?func=detail&aid=1991738&group_id=56967&atid=482468
- First query compiles fine with MPS.
- First query takes >30 minutes & >6 GB to compile with ALG.
(test disabled)
- Second query fails to compile with MPS:
type error: can't cast type 'untypedAtomic*' to type 'integer?'
(test disabled)
- Second query compiles fine with ALG.
A test to trigger the (now fixed) merged_union problem with the second query
is still pending --- mainly, some proper data is missing ...
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_1_MPS.stable.out ---
stdout of test 'compilation_or_runtime_choice.SF-1991738_1_MPS` in directory
'tests/BugTracker` itself:
# 19:37:36 >
# 19:37:36 > ./compilation_or_runtime_choice.SF-1991738_1_MPS.sh
compilation_or_runtime_choice.SF-1991738_1_MPS
# 19:37:36 >
"pf -M compilation_or_runtime_choice.SF-1991738_1_MPS.xq >/dev/null"
# 19:37:36 >
# 19:37:36 > Done.
# 19:37:36 >
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_0_MPS.stable.err ---
stderr of test 'compilation_or_runtime_choice.SF-1991738_0_MPS` in directory
'tests/BugTracker` itself:
# 19:37:35 >
# 19:37:35 > ./compilation_or_runtime_choice.SF-1991738_0_MPS.sh
compilation_or_runtime_choice.SF-1991738_0_MPS
# 19:37:35 >
"pf -M compilation_or_runtime_choice.SF-1991738_0_MPS.xq >/dev/null"
# 19:37:36 >
# 19:37:36 > Done.
# 19:37:36 >
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_0_ALG.bat ---
@echo off
set q=compilation_or_runtime_choice.SF-1991738_0_ALG.xq
set p=pf -A
@echo "%p% %q% >/dev/null"
@echo "%p% %q% >/dev/null" >&2
@%p% %q% > nul
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_1_MPS.bat ---
@echo off
set q=compilation_or_runtime_choice.SF-1991738_1_MPS.xq
set p=pf -M
@echo "%p% %q% >/dev/null"
@echo "%p% %q% >/dev/null" >&2
@%p% %q% > nul
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_1_ALG.xq ---
for $run in pf:collection("log.xml")//run
let $successCount := count($run/success/task)
let $failureCount := count($run/failure/task)
let $nooutputCount := if ($run/nooutput/@count) then
exactly-one($run/nooutput/@count) cast as xs:integer else 0 +
count($run/nooutput/task)
let $totalTasks := ($successCount + $failureCount + $nooutputCount) cast as
xs:integer
let $started := $run/started/date/@unixtime cast as xs:integer?
let $prepared := $run/prepared/date/@unixtime cast as xs:integer?
let $executed := $run/executed/date/@unixtime cast as xs:integer?
let $validated := $run/validated/date/@unixtime cast as xs:integer?
let $committed := $run/committed/date/@unixtime cast as xs:integer?
return element { "run" } {
$run/@tool,
if ($prepared > 0) then attribute preparation { $prepared - $started }
else (),
if ($executed > 0) then attribute execution { $executed - $prepared }
else (),
if ($validated > 0) then attribute validation { $validated - $executed }
else (),
if ($committed > 0) then attribute commit { $committed - $validated }
else (),
if ($totalTasks > 0)
then
(if ($prepared > 0) then attribute preparationPerTask { ($prepared -
$started) div $totalTasks } else (),
if ($executed > 0) then attribute executionPerTask { ($executed -
$prepared) div $totalTasks } else (),
if ($validated > 0) then attribute vaalidationPerTask { ($validated -
$executed) div $totalTasks } else (),
if ($committed > 0) then attribute commitPerTask { ($committed -
$validated) div $totalTasks } else ())
else
(),
attribute allowedExecution {exactly-one($run/allowedExecutionTime) *
1000},
attribute successCount {$successCount},
attribute failureCount {$failureCount},
attribute nooutputCount {$nooutputCount},
attribute totalTasks {$totalTasks}
}
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_1_MPS.stable.err ---
stderr of test 'compilation_or_runtime_choice.SF-1991738_1_MPS` in directory
'tests/BugTracker` itself:
# 19:37:36 >
# 19:37:36 > ./compilation_or_runtime_choice.SF-1991738_1_MPS.sh
compilation_or_runtime_choice.SF-1991738_1_MPS
# 19:37:36 >
"pf -M compilation_or_runtime_choice.SF-1991738_1_MPS.xq >/dev/null"
# 19:37:36 >
# 19:37:36 > Done.
# 19:37:36 >
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_1_ALG.bat ---
@echo off
set q=compilation_or_runtime_choice.SF-1991738_1_ALG.xq
set p=pf -A
@echo "%p% %q% >/dev/null"
@echo "%p% %q% >/dev/null" >&2
@%p% %q% > nul
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_1_ALG.sh ---
#!/usr/bin/env bash
q=compilation_or_runtime_choice.SF-1991738_1_ALG.xq
p='pf -A'
echo "\"$p $q >/dev/null\""
echo "\"$p $q >/dev/null\"" >&2
$p $q >/dev/null
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_0_MPS.xq ---
for $run in pf:collection("log.xml")//run
let $successCount := if ($run/success) then count($run/success/task) else
0
let $failureCount := if ($run/failure) then count($run/failure/task) else
0
let $nooutputCount := if ($run/nooutput) then (if ($run/nooutput/@count)
then zero-or-one($run/nooutput/@count) else 0) + count($run/nooutput/task)
else 0
let $totalTasks := $successCount + $failureCount + $nooutputCount
return <run>
{ $run/@tool }
{ for $v in $run/prepared/date/@unixtime[. > 0] return attribute
preparation {$v - exactly-one($run/started/date/@unixtime)} }
{ for $v in $run/executed/date/@unixtime[. > 0] return attribute
execution {$v - exactly-one($run/prepared/date/@unixtime)} }
{ for $v in $run/validated/date/@unixtime[. > 0] return
attribute validation {$v - exactly-one($run/executed/date/@unixtime)} }
{ for $v in $run/committed/date/@unixtime[. > 0] return
attribute commit {$v - exactly-one($run/validated/date/@unixtime)} }
{ for $v in $run/prepared/date/@unixtime[. > 0 and $totalTasks >
0] return attribute preparationPerTask {($v -
exactly-one($run/started/date/@unixtime)) div $totalTasks} }
{ for $v in $run/executed/date/@unixtime[. > 0 and $totalTasks >
0] return attribute executionPerTask {($v -
exactly-one($run/prepared/date/@unixtime)) div $totalTasks} }
{ for $v in $run/validated/date/@unixtime[. > 0 and $totalTasks
> 0] return attribute validationPerTask {($v -
exactly-one($run/executed/date/@unixtime)) div $totalTasks} }
{ for $v in $run/committed/date/@unixtime[. > 0 and $totalTasks
> 0] return attribute commitPerTask {($v -
exactly-one($run/validated/date/@unixtime)) div $totalTasks} }
{attribute allowedExecution
{exactly-one($run/allowedExecutionTime) * 1000}}
{attribute successCount {$successCount}}
{attribute failureCount {$failureCount}}
{attribute nooutputCount {$nooutputCount}}
{attribute totalTasks {$totalTasks}}
</run>
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_1_ALG.stable.out ---
stdout of test 'compilation_or_runtime_choice.SF-1991738_1_ALG` in directory
'tests/BugTracker` itself:
# 19:37:36 >
# 19:37:36 > ./compilation_or_runtime_choice.SF-1991738_1_ALG.sh
compilation_or_runtime_choice.SF-1991738_1_ALG
# 19:37:36 >
"pf -A compilation_or_runtime_choice.SF-1991738_1_ALG.xq >/dev/null"
# 19:37:36 >
# 19:37:36 > Done.
# 19:37:36 >
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_0_MPS.bat ---
@echo off
set q=compilation_or_runtime_choice.SF-1991738_0_MPS.xq
set p=pf -M
@echo "%p% %q% >/dev/null"
@echo "%p% %q% >/dev/null" >&2
@%p% %q% > nul
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_0_ALG.xq ---
for $run in pf:collection("log.xml")//run
let $successCount := if ($run/success) then count($run/success/task) else
0
let $failureCount := if ($run/failure) then count($run/failure/task) else
0
let $nooutputCount := if ($run/nooutput) then (if ($run/nooutput/@count)
then zero-or-one($run/nooutput/@count) else 0) + count($run/nooutput/task)
else 0
let $totalTasks := $successCount + $failureCount + $nooutputCount
return <run>
{ $run/@tool }
{ for $v in $run/prepared/date/@unixtime[. > 0] return attribute
preparation {$v - exactly-one($run/started/date/@unixtime)} }
{ for $v in $run/executed/date/@unixtime[. > 0] return attribute
execution {$v - exactly-one($run/prepared/date/@unixtime)} }
{ for $v in $run/validated/date/@unixtime[. > 0] return
attribute validation {$v - exactly-one($run/executed/date/@unixtime)} }
{ for $v in $run/committed/date/@unixtime[. > 0] return
attribute commit {$v - exactly-one($run/validated/date/@unixtime)} }
{ for $v in $run/prepared/date/@unixtime[. > 0 and $totalTasks >
0] return attribute preparationPerTask {($v -
exactly-one($run/started/date/@unixtime)) div $totalTasks} }
{ for $v in $run/executed/date/@unixtime[. > 0 and $totalTasks >
0] return attribute executionPerTask {($v -
exactly-one($run/prepared/date/@unixtime)) div $totalTasks} }
{ for $v in $run/validated/date/@unixtime[. > 0 and $totalTasks
> 0] return attribute validationPerTask {($v -
exactly-one($run/executed/date/@unixtime)) div $totalTasks} }
{ for $v in $run/committed/date/@unixtime[. > 0 and $totalTasks
> 0] return attribute commitPerTask {($v -
exactly-one($run/validated/date/@unixtime)) div $totalTasks} }
{attribute allowedExecution
{exactly-one($run/allowedExecutionTime) * 1000}}
{attribute successCount {$successCount}}
{attribute failureCount {$failureCount}}
{attribute nooutputCount {$nooutputCount}}
{attribute totalTasks {$totalTasks}}
</run>
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_0_ALG.sh ---
#!/usr/bin/env bash
q=compilation_or_runtime_choice.SF-1991738_0_ALG.xq
p='pf -A'
echo "\"$p $q >/dev/null\""
echo "\"$p $q >/dev/null\"" >&2
$p $q >/dev/null
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_0_ALG.stable.out ---
stdout of test 'compilation_or_runtime_choice.SF-1991738_0_ALG` in directory
'tests/BugTracker` itself:
# 19:37:35 >
# 19:37:35 > ./compilation_or_runtime_choice.SF-1991738_0_ALG.sh
compilation_or_runtime_choice.SF-1991738_0_ALG
# 19:37:35 >
"pf -A compilation_or_runtime_choice.SF-1991738_0_ALG.xq >/dev/null"
# 19:37:36 >
# 19:37:36 > Done.
# 19:37:36 >
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_1_MPS.xq ---
for $run in pf:collection("log.xml")//run
let $successCount := count($run/success/task)
let $failureCount := count($run/failure/task)
let $nooutputCount := if ($run/nooutput/@count) then
exactly-one($run/nooutput/@count) cast as xs:integer else 0 +
count($run/nooutput/task)
let $totalTasks := ($successCount + $failureCount + $nooutputCount) cast as
xs:integer
let $started := $run/started/date/@unixtime cast as xs:integer?
let $prepared := $run/prepared/date/@unixtime cast as xs:integer?
let $executed := $run/executed/date/@unixtime cast as xs:integer?
let $validated := $run/validated/date/@unixtime cast as xs:integer?
let $committed := $run/committed/date/@unixtime cast as xs:integer?
return element { "run" } {
$run/@tool,
if ($prepared > 0) then attribute preparation { $prepared - $started }
else (),
if ($executed > 0) then attribute execution { $executed - $prepared }
else (),
if ($validated > 0) then attribute validation { $validated - $executed }
else (),
if ($committed > 0) then attribute commit { $committed - $validated }
else (),
if ($totalTasks > 0)
then
(if ($prepared > 0) then attribute preparationPerTask { ($prepared -
$started) div $totalTasks } else (),
if ($executed > 0) then attribute executionPerTask { ($executed -
$prepared) div $totalTasks } else (),
if ($validated > 0) then attribute vaalidationPerTask { ($validated -
$executed) div $totalTasks } else (),
if ($committed > 0) then attribute commitPerTask { ($committed -
$validated) div $totalTasks } else ())
else
(),
attribute allowedExecution {exactly-one($run/allowedExecutionTime) *
1000},
attribute successCount {$successCount},
attribute failureCount {$failureCount},
attribute nooutputCount {$nooutputCount},
attribute totalTasks {$totalTasks}
}
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_1_ALG.stable.err ---
stderr of test 'compilation_or_runtime_choice.SF-1991738_1_ALG` in directory
'tests/BugTracker` itself:
# 19:37:36 >
# 19:37:36 > ./compilation_or_runtime_choice.SF-1991738_1_ALG.sh
compilation_or_runtime_choice.SF-1991738_1_ALG
# 19:37:36 >
"pf -A compilation_or_runtime_choice.SF-1991738_1_ALG.xq >/dev/null"
# 19:37:36 >
# 19:37:36 > Done.
# 19:37:36 >
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_0_MPS.stable.out ---
stdout of test 'compilation_or_runtime_choice.SF-1991738_0_MPS` in directory
'tests/BugTracker` itself:
# 19:37:35 >
# 19:37:35 > ./compilation_or_runtime_choice.SF-1991738_0_MPS.sh
compilation_or_runtime_choice.SF-1991738_0_MPS
# 19:37:35 >
"pf -M compilation_or_runtime_choice.SF-1991738_0_MPS.xq >/dev/null"
# 19:37:36 >
# 19:37:36 > Done.
# 19:37:36 >
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_1_MPS.sh ---
#!/usr/bin/env bash
q=compilation_or_runtime_choice.SF-1991738_1_MPS.xq
p='pf -M'
echo "\"$p $q >/dev/null\""
echo "\"$p $q >/dev/null\"" >&2
$p $q >/dev/null
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_0_MPS.sh ---
#!/usr/bin/env bash
q=compilation_or_runtime_choice.SF-1991738_0_MPS.xq
p='pf -M'
echo "\"$p $q >/dev/null\""
echo "\"$p $q >/dev/null\"" >&2
$p $q >/dev/null
U All
Index: All
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/tests/BugTracker/Tests/All,v
retrieving revision 1.102.2.8
retrieving revision 1.102.2.9
diff -u -d -r1.102.2.8 -r1.102.2.9
--- All 19 Jun 2008 17:23:47 -0000 1.102.2.8
+++ All 20 Jun 2008 07:05:44 -0000 1.102.2.9
@@ -148,3 +148,9 @@
immune_for_updates.SF-1981852
join-query_compilation_error.SF-1889694
iter_in_join.SF-1991938
+compilation_or_runtime_choice.SF-1991738_0_MPS
+#takes >30 minutes & >6 GB to run (compile)
+>30min_>6GB?compilation_or_runtime_choice.SF-1991738_0_ALG
+#type error: can't cast type 'untypedAtomic*' to type 'integer?'
+untypedAtomic?compilation_or_runtime_choice.SF-1991738_1_MPS
+compilation_or_runtime_choice.SF-1991738_1_ALG
--- NEW FILE: compilation_or_runtime_choice.SF-1991738_0_ALG.stable.err ---
stderr of test 'compilation_or_runtime_choice.SF-1991738_0_ALG` in directory
'tests/BugTracker` itself:
# 19:37:35 >
# 19:37:35 > ./compilation_or_runtime_choice.SF-1991738_0_ALG.sh
compilation_or_runtime_choice.SF-1991738_0_ALG
# 19:37:35 >
"pf -A compilation_or_runtime_choice.SF-1991738_0_ALG.xq >/dev/null"
# 19:37:36 >
# 19:37:36 > Done.
# 19:37:36 >
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins