From d7ff04eae85de74c4b4dd505531757caf94e6a1b Mon Sep 17 00:00:00 2001 From: Kisaragi Marine Date: Sun, 15 Oct 2023 23:48:23 +0900 Subject: [PATCH] fix(testsuite): logs are now recorded correctly --- Cargo.lock | 1 + package/origlang-testsuite/Cargo.toml | 1 + package/origlang-testsuite/src/main.rs | 1 + 3 files changed, 3 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index d95cc216..8ccab293 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1070,6 +1070,7 @@ version = "0.1.0" name = "origlang-testsuite" version = "0.1.0" dependencies = [ + "env_logger", "log", "origlang-ast", "origlang-compiler", diff --git a/package/origlang-testsuite/Cargo.toml b/package/origlang-testsuite/Cargo.toml index 76a3bc37..fd56001d 100644 --- a/package/origlang-testsuite/Cargo.toml +++ b/package/origlang-testsuite/Cargo.toml @@ -6,6 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] +env_logger = "0.10.0" log = "0.4.20" origlang-ast = { version = "0.1.0", path = "../origlang-ast" } origlang-compiler = { version = "0.1.0", path = "../origlang-compiler" } diff --git a/package/origlang-testsuite/src/main.rs b/package/origlang-testsuite/src/main.rs index 8069fe74..698d26a3 100644 --- a/package/origlang-testsuite/src/main.rs +++ b/package/origlang-testsuite/src/main.rs @@ -2,6 +2,7 @@ #![allow(clippy::unnecessary_wraps)] fn main() { + env_logger::init(); eprintln!("start"); Test::run_all().expect("failed"); eprintln!("end");