From a57813192f43c49c118b31291dfd1fe5830b0af0 Mon Sep 17 00:00:00 2001 From: Wataru Otsubo Date: Tue, 23 Jul 2024 22:51:48 +0900 Subject: [PATCH] add: test case (20.log) --- tests/cli.rs | 2 +- tests/example_logs/valid/20.log | 49 +++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 tests/example_logs/valid/20.log diff --git a/tests/cli.rs b/tests/cli.rs index daa9449..07ff4de 100644 --- a/tests/cli.rs +++ b/tests/cli.rs @@ -48,7 +48,7 @@ mod integrated_test { let mut cmd = Command::cargo_bin("psb-qaqc")?; cmd.current_dir("tests") .arg("add-master-log") - .arg("./example_logs/valid/7.log") + .arg("./example_logs/valid/20.log") .arg(test_out.as_path()) .assert() .success(); diff --git a/tests/example_logs/valid/20.log b/tests/example_logs/valid/20.log new file mode 100644 index 0000000..e8a733d --- /dev/null +++ b/tests/example_logs/valid/20.log @@ -0,0 +1,49 @@ +Shift script: 0.2.0 +---------------------- +Date: 2024-07-23T08:22:48+0000 +QAQC runid: 20 +Shifters: everyone +---------------------- +PBS Assignment: +Position / assigned-ID : B-0-1 / PS000049 +Position / assigned-ID : B-1-1 / PS000050 +Position / assigned-ID : B-0-2 / PS000043 +Position / assigned-ID : B-1-2 / PS000044 +Position / assigned-ID : B-0-3 / PS000051 +Position / assigned-ID : B-1-3 / PS000052 +Position / assigned-ID : B-0-4 / PS000057 +Position / assigned-ID : B-1-4 / PS000058 +Position / assigned-ID : B-0-5 / PS000059 +Position / assigned-ID : B-1-5 / PS000060 +Position / assigned-ID : B-0-6 / PS000065 +Position / assigned-ID : B-1-6 / PS000066 +Position / assigned-ID : B-0-7 / PS000067 +Position / assigned-ID : B-1-7 / PS000068 +Position / assigned-ID : B-0-8 / PS000073 +Position / assigned-ID : B-1-8 / PS000074 +Position / assigned-ID : B-0-9 / PS000075 +Position / assigned-ID : B-1-9 / PS000076 +====================== + QAQC status| QSPIp | Recov | Power | Clock | ASDTP | Reset | Result | + ---------------------------------------------------------------------- + Station0 + JATHub_ 1| 0| 1| 3| 3| 3| 15| 3| + JATHub_ 2| 1| 0| 2| 2| 1| 2| 2| + JATHub_ 3| 0| 1| 1| 0| 0| 7| 2| + JATHub_ 4| 1| 1| 3| 3| 3| 15| 3| + JATHub_ 5| 2| 2| 1| 0| 2| 13| 1| + JATHub_ 6| 0| 0| 0| 0| 3| 15| 1| + JATHub_ 7| 1| 0| 2| 2| 1| 2| 2| + JATHub_ 8| 3| 3| 3| 3| 3| 10| 2| + JATHub_ 9| 3| 3| 3| 1| 0| 4| 0| + Station1 + JATHub_11| 1| 0| 0| 2| 3| 9| 1| + JATHub_12| 1| 0| 2| 2| 1| 7| 3| + JATHub_13| 2| 3| 1| 1| 2| 13| 1| + JATHub_14| 2| 1| 1| 1| 2| 12| 3| + JATHub_15| 3| 2| 3| 3| 1| 3| 3| + JATHub_16| 2| 2| 0| 1| 2| 13| 1| + JATHub_17| 2| 0| 1| 0| 3| 10| 2| + JATHub_18| 2| 3| 1| 1| 2| 1| 0| + JATHub_19| 2| 3| 3| 3| 2| 13| 1| +======================