summaryrefslogtreecommitdiff
path: root/dhall/build.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dhall/build.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/dhall/build.rs b/dhall/build.rs
index 3548d33..d28239d 100644
--- a/dhall/build.rs
+++ b/dhall/build.rs
@@ -85,6 +85,32 @@ fn main() -> std::io::Result<()> {
|path| {
// Too slow in debug mode
path == "success/largeExpression"
+ },
+ )?;
+
+ make_test_module(
+ &mut file,
+ "printer",
+ &tests_dir.join("parser/"),
+ "Printer",
+ |path| {
+ // Failure tests are only for the parser
+ path.starts_with("failure/")
+ // Too slow in debug mode
+ || path == "success/largeExpression"
+ },
+ )?;
+
+ make_test_module(
+ &mut file,
+ "binary_encoding",
+ &tests_dir.join("parser/"),
+ "BinaryEncoding",
+ |path| {
+ // Failure tests are only for the parser
+ path.starts_with("failure/")
+ // Too slow in debug mode
+ || path == "success/largeExpression"
// Fails binary encoding
|| path == "success/multilet"
|| path == "success/double"