Skip to content

Instantly share code, notes, and snippets.

@apb2006
Last active January 5, 2017 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apb2006/3b5ff75994c8f4250354f6365477473d to your computer and use it in GitHub Desktop.
Save apb2006/3b5ff75994c8f4250354f6365477473d to your computer and use it in GitHub Desktop.
(: queue async run of all tests in $dir :)
declare function local:queue-tests($dir as xs:string,$opts as map(*)) as xs:string
{
let $q:=``[
declare variable $password external;
client:connect('localhost',
db:system()/globaloptions/port/xs:integer(.),
'admin',
$password)
! client:execute(.,'TEST "`{$dir}`"')
]``
return jobs:eval($q,
map{"password":$opts?password},
map { 'cache': true()}
)
};
local:queue-tests("C:\Users\andy\git\content-architecture\xquery\ALO\with space",
map{"password":"uksapl"})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment