diff options
author | Vincent Ambo <mail@tazj.in> | 2022-08-10T15·52+0300 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-08-24T21·23+0000 |
commit | b28da8ad56bd0d5dbf58926241060a6e4d34908b (patch) | |
tree | 55df4dd19d06bb23f671348ed074a9631a6dee39 /tvix | |
parent | 4c9aad17add413a387bf927438de8831c00065c5 (diff) |
chore(tvix/eval): add 'test-generator' as dev-dependency r/4460
This crate makes it easy to generate test cases from files on disk, which is used for running the Nix test suite against Tvix. Change-Id: I60ef26484d05e723982679dd42958adf52735916 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6125 Tested-by: BuildkiteCI Reviewed-by: grfn <grfn@gws.fyi>
Diffstat (limited to 'tvix')
-rw-r--r-- | tvix/eval/Cargo.lock | 54 | ||||
-rw-r--r-- | tvix/eval/Cargo.toml | 3 |
2 files changed, 57 insertions, 0 deletions
diff --git a/tvix/eval/Cargo.lock b/tvix/eval/Cargo.lock index d772473bc5a4..3409c6be204d 100644 --- a/tvix/eval/Cargo.lock +++ b/tvix/eval/Cargo.lock @@ -24,6 +24,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "328b822bdcba4d4e402be8d9adb6eebf269f969f8eadef977a553ff3c4fbcb58" [[package]] +name = "glob" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" + +[[package]] name = "hashbrown" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -48,6 +54,24 @@ dependencies = [ ] [[package]] +name = "proc-macro2" +version = "0.4.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf3d2011ab5c909338f7887f4fc896d35932e29146c12c8d01da6b22a80ba759" +dependencies = [ + "unicode-xid", +] + +[[package]] +name = "quote" +version = "0.6.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce23b6b870e8f94f81fb0a363d65d86675884b34a09043c81e5562f11c1f8e1" +dependencies = [ + "proc-macro2", +] + +[[package]] name = "rnix" version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -93,6 +117,29 @@ dependencies = [ ] [[package]] +name = "syn" +version = "0.15.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ca4b3b69a77cbe1ffc9e198781b7acb0c7365a883670e8f1c1bc66fba79a5c5" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + +[[package]] +name = "test-generator" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea97be90349ab3574f6e74d1566e1c5dd3a4bc74b89f4af4cc10ca010af103c0" +dependencies = [ + "glob", + "proc-macro2", + "quote", + "syn", +] + +[[package]] name = "text-size" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -103,4 +150,11 @@ name = "tvix-eval" version = "0.1.0" dependencies = [ "rnix", + "test-generator", ] + +[[package]] +name = "unicode-xid" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" diff --git a/tvix/eval/Cargo.toml b/tvix/eval/Cargo.toml index 0fa90d04d007..2e5643db7991 100644 --- a/tvix/eval/Cargo.toml +++ b/tvix/eval/Cargo.toml @@ -7,3 +7,6 @@ edition = "2021" [dependencies] rnix = "0.10.2" + +[dev-dependencies] +test-generator = "0.3.0" |