summaryrefslogtreecommitdiff
path: root/dhall/build.rs
diff options
context:
space:
mode:
authorNadrieril2019-05-12 19:06:32 +0200
committerNadrieril2019-05-12 19:06:32 +0200
commit8abb4843a4d0fd62a70fc704f894b76b52d40c9b (patch)
treecb97b008437043a29a314c20b26798adb25a7f53 /dhall/build.rs
parent1274a997c49ae8dcf73ec6a3d1afe96dd03a2ae2 (diff)
Split-off printer and binary encoding tests from parser tests
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"