forked from marklogic-community/roxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed marklogic-community#254: skipping cpf tests if no triggers db
- Loading branch information
Showing
4 changed files
with
89 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
xquery version "1.0-ml"; | ||
|
||
import module namespace test="http://marklogic.com/roxy/test-helper" at "/test/test-helper.xqy"; | ||
|
||
if (xdmp:modules-database() eq 0) then | ||
test:fail("You must run this test from a modules database.") | ||
else (); | ||
|
||
import module namespace cpf = "http://marklogic.com/roxy/cpf" at "/roxy/lib/cpf.xqy"; | ||
|
||
cpf:clean-cpf() | ||
if (xdmp:triggers-database() ne 0) then | ||
cpf:clean-cpf() | ||
else () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters