mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-09-11 05:45:30 +03:00
serial tests
This commit is contained in:
parent
b56de76017
commit
55665fde9a
70
Cargo.lock
generated
70
Cargo.lock
generated
@ -735,6 +735,19 @@ dependencies = [
|
|||||||
"syn 2.0.39",
|
"syn 2.0.39",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "dashmap"
|
||||||
|
version = "5.5.3"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "978747c1d849a7d2ee5e8adc0159961c48fb7e5db2f06af6723b80123bb53856"
|
||||||
|
dependencies = [
|
||||||
|
"cfg-if",
|
||||||
|
"hashbrown 0.14.2",
|
||||||
|
"lock_api",
|
||||||
|
"once_cell",
|
||||||
|
"parking_lot_core",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "der"
|
name = "der"
|
||||||
version = "0.7.8"
|
version = "0.7.8"
|
||||||
@ -1000,6 +1013,21 @@ version = "0.1.3"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c1fd087255f739f4f1aeea69f11b72f8080e9c2e7645cd06955dad4a178a49e3"
|
checksum = "c1fd087255f739f4f1aeea69f11b72f8080e9c2e7645cd06955dad4a178a49e3"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "futures"
|
||||||
|
version = "0.3.29"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "da0290714b38af9b4a7b094b8a37086d1b4e61f2df9122c3cad2577669145335"
|
||||||
|
dependencies = [
|
||||||
|
"futures-channel",
|
||||||
|
"futures-core",
|
||||||
|
"futures-executor",
|
||||||
|
"futures-io",
|
||||||
|
"futures-sink",
|
||||||
|
"futures-task",
|
||||||
|
"futures-util",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-channel"
|
name = "futures-channel"
|
||||||
version = "0.3.29"
|
version = "0.3.29"
|
||||||
@ -1007,6 +1035,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
checksum = "ff4dd66668b557604244583e3e1e1eada8c5c2e96a6d0d6653ede395b78bbacb"
|
checksum = "ff4dd66668b557604244583e3e1e1eada8c5c2e96a6d0d6653ede395b78bbacb"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures-core",
|
"futures-core",
|
||||||
|
"futures-sink",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@ -1015,6 +1044,17 @@ version = "0.3.29"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c"
|
checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c"
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "futures-executor"
|
||||||
|
version = "0.3.29"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "0f4fb8693db0cf099eadcca0efe2a5a22e4550f98ed16aba6c48700da29597bc"
|
||||||
|
dependencies = [
|
||||||
|
"futures-core",
|
||||||
|
"futures-task",
|
||||||
|
"futures-util",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "futures-io"
|
name = "futures-io"
|
||||||
version = "0.3.29"
|
version = "0.3.29"
|
||||||
@ -1039,8 +1079,10 @@ version = "0.3.29"
|
|||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "a19526d624e703a3179b3d322efec918b6246ea0fa51d41124525f00f1cc8104"
|
checksum = "a19526d624e703a3179b3d322efec918b6246ea0fa51d41124525f00f1cc8104"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
"futures-channel",
|
||||||
"futures-core",
|
"futures-core",
|
||||||
"futures-io",
|
"futures-io",
|
||||||
|
"futures-sink",
|
||||||
"futures-task",
|
"futures-task",
|
||||||
"memchr",
|
"memchr",
|
||||||
"pin-project-lite",
|
"pin-project-lite",
|
||||||
@ -1460,6 +1502,7 @@ dependencies = [
|
|||||||
"self_update 0.39.0",
|
"self_update 0.39.0",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
|
"serial_test",
|
||||||
"snarkvm",
|
"snarkvm",
|
||||||
"sys-info",
|
"sys-info",
|
||||||
"test_dir",
|
"test_dir",
|
||||||
@ -1481,6 +1524,7 @@ dependencies = [
|
|||||||
"rand",
|
"rand",
|
||||||
"retriever",
|
"retriever",
|
||||||
"serde",
|
"serde",
|
||||||
|
"serial_test",
|
||||||
"snarkvm",
|
"snarkvm",
|
||||||
"toml 0.8.8",
|
"toml 0.8.8",
|
||||||
"tracing",
|
"tracing",
|
||||||
@ -2199,6 +2243,7 @@ dependencies = [
|
|||||||
"leo-span",
|
"leo-span",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
|
"serial_test",
|
||||||
"sha2",
|
"sha2",
|
||||||
"tempfile",
|
"tempfile",
|
||||||
"toml 0.8.8",
|
"toml 0.8.8",
|
||||||
@ -2472,6 +2517,31 @@ dependencies = [
|
|||||||
"yaml-rust",
|
"yaml-rust",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "serial_test"
|
||||||
|
version = "2.0.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "0e56dd856803e253c8f298af3f4d7eb0ae5e23a737252cd90bb4f3b435033b2d"
|
||||||
|
dependencies = [
|
||||||
|
"dashmap",
|
||||||
|
"futures",
|
||||||
|
"lazy_static",
|
||||||
|
"log",
|
||||||
|
"parking_lot",
|
||||||
|
"serial_test_derive",
|
||||||
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "serial_test_derive"
|
||||||
|
version = "2.0.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "91d129178576168c589c9ec973feedf7d3126c01ac2bf08795109aa35b69fb8f"
|
||||||
|
dependencies = [
|
||||||
|
"proc-macro2",
|
||||||
|
"quote 1.0.33",
|
||||||
|
"syn 2.0.39",
|
||||||
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "sha1"
|
name = "sha1"
|
||||||
version = "0.10.6"
|
version = "0.10.6"
|
||||||
|
@ -143,6 +143,9 @@ features = [ "derive" ]
|
|||||||
[dependencies.serde_json]
|
[dependencies.serde_json]
|
||||||
version = "1.0"
|
version = "1.0"
|
||||||
|
|
||||||
|
[dependencies.serial_test]
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
[dependencies.snarkvm]
|
[dependencies.snarkvm]
|
||||||
workspace = true
|
workspace = true
|
||||||
features = [ "circuit", "console" ]
|
features = [ "circuit", "console" ]
|
||||||
|
@ -20,6 +20,7 @@ use leo_errors::Result;
|
|||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
use colored::Colorize;
|
use colored::Colorize;
|
||||||
use std::{path::PathBuf, process::exit};
|
use std::{path::PathBuf, process::exit};
|
||||||
|
use serial_test::serial;
|
||||||
|
|
||||||
/// CLI Arguments entry point - includes global parameters and subcommands
|
/// CLI Arguments entry point - includes global parameters and subcommands
|
||||||
#[derive(Parser, Debug)]
|
#[derive(Parser, Debug)]
|
||||||
@ -160,6 +161,7 @@ pub fn build_nested_test() -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[serial]
|
||||||
pub fn mixed_local_network_build_test() -> Result<()> {
|
pub fn mixed_local_network_build_test() -> Result<()> {
|
||||||
use leo_span::symbol::create_session_if_not_set_then;
|
use leo_span::symbol::create_session_if_not_set_then;
|
||||||
|
|
||||||
@ -182,6 +184,7 @@ pub fn mixed_local_network_build_test() -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
#[serial]
|
||||||
pub fn double_nested_program_run_test() -> Result<()> {
|
pub fn double_nested_program_run_test() -> Result<()> {
|
||||||
use crate::cli::commands::Run;
|
use crate::cli::commands::Run;
|
||||||
use leo_span::symbol::create_session_if_not_set_then;
|
use leo_span::symbol::create_session_if_not_set_then;
|
||||||
|
@ -40,6 +40,9 @@ version = "0.8"
|
|||||||
version = "1.0"
|
version = "1.0"
|
||||||
features = [ "derive" ]
|
features = [ "derive" ]
|
||||||
|
|
||||||
|
[dependencies.serial_test]
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
[dependencies.toml]
|
[dependencies.toml]
|
||||||
version = "0.8"
|
version = "0.8"
|
||||||
|
|
||||||
|
@ -38,6 +38,9 @@ path = "../disassembler"
|
|||||||
[dependencies.sha2]
|
[dependencies.sha2]
|
||||||
version = "0.10.8"
|
version = "0.10.8"
|
||||||
|
|
||||||
|
[dependencies.serial_test]
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
[dependencies.leo-span]
|
[dependencies.leo-span]
|
||||||
version = "1.9.4"
|
version = "1.9.4"
|
||||||
path = "../../compiler/span"
|
path = "../../compiler/span"
|
||||||
|
@ -26,9 +26,11 @@ mod tests {
|
|||||||
use aleo_std::aleo_dir;
|
use aleo_std::aleo_dir;
|
||||||
use leo_span::{symbol::create_session_if_not_set_then, Symbol};
|
use leo_span::{symbol::create_session_if_not_set_then, Symbol};
|
||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
|
use serial_test::serial;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore]
|
#[ignore]
|
||||||
|
#[serial]
|
||||||
fn temp_dir_test() {
|
fn temp_dir_test() {
|
||||||
// Test pulling nested dependencies from network
|
// Test pulling nested dependencies from network
|
||||||
const BUILD_DIRECTORY: &str = "../tmp/nested";
|
const BUILD_DIRECTORY: &str = "../tmp/nested";
|
||||||
@ -46,6 +48,7 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore]
|
#[ignore]
|
||||||
|
#[serial]
|
||||||
fn mac_test() {
|
fn mac_test() {
|
||||||
// Test pulling nested dependencies from network
|
// Test pulling nested dependencies from network
|
||||||
const BUILD_DIRECTORY: &str = "../tmp/nested";
|
const BUILD_DIRECTORY: &str = "../tmp/nested";
|
||||||
@ -63,6 +66,7 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore]
|
#[ignore]
|
||||||
|
#[serial]
|
||||||
fn simple_dir_test() {
|
fn simple_dir_test() {
|
||||||
// Test pulling nested dependencies from network
|
// Test pulling nested dependencies from network
|
||||||
const BUILD_DIRECTORY: &str = "../tmp/simple";
|
const BUILD_DIRECTORY: &str = "../tmp/simple";
|
||||||
@ -80,6 +84,7 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore]
|
#[ignore]
|
||||||
|
#[serial]
|
||||||
fn local_dir_test() {
|
fn local_dir_test() {
|
||||||
// Test pulling nested dependencies from network
|
// Test pulling nested dependencies from network
|
||||||
const BUILD_DIRECTORY: &str = "../tmp/local_test";
|
const BUILD_DIRECTORY: &str = "../tmp/local_test";
|
||||||
|
Loading…
Reference in New Issue
Block a user