diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/challenge_motes.rs | 46 | ||||
-rw-r--r-- | tests/logs/cms/adina.zevtc | bin | 0 -> 1685986 bytes | |||
-rw-r--r-- | tests/logs/cms/ca.zevtc | bin | 0 -> 1809654 bytes | |||
-rw-r--r-- | tests/logs/cms/cairn.zevtc | bin | 0 -> 816716 bytes | |||
-rw-r--r-- | tests/logs/cms/deimos.zevtc | bin | 0 -> 2048785 bytes | |||
-rw-r--r-- | tests/logs/cms/desmina.zevtc | bin | 0 -> 990539 bytes | |||
-rw-r--r-- | tests/logs/cms/dhuum.zevtc | bin | 0 -> 1460673 bytes | |||
-rw-r--r-- | tests/logs/cms/largos.zevtc | bin | 0 -> 3621824 bytes | |||
-rw-r--r-- | tests/logs/cms/mo.zevtc | bin | 0 -> 438742 bytes | |||
-rw-r--r-- | tests/logs/cms/qadim.zevtc | bin | 0 -> 3640631 bytes | |||
-rw-r--r-- | tests/logs/cms/qadimp.zevtc | bin | 0 -> 3870022 bytes | |||
-rw-r--r-- | tests/logs/cms/samarog.zevtc | bin | 0 -> 81149 bytes |
12 files changed, 46 insertions, 0 deletions
diff --git a/tests/challenge_motes.rs b/tests/challenge_motes.rs new file mode 100644 index 0000000..bdf17a3 --- /dev/null +++ b/tests/challenge_motes.rs @@ -0,0 +1,46 @@ +//! Tests to ensure that CM detection is working. +//! +//! CM logs should be placed in the logs/cms folder, unless they are fights which only exist in the +//! challenge mote (or mostly exist in CM), like the fractal CM fights. + +use std::path::Path; + +use evtclib::Compression; + +macro_rules! test { + ($name:ident, $log:expr) => { + #[test] + fn $name() { + check_cm($log); + } + }; +} + +fn check_cm(path: &str) { + let path = Path::new("tests").join(path); + let log = evtclib::process_file(&path, Compression::Zip).unwrap(); + assert!(log.is_cm(), "expected {:?} to be a CM log", path); +} + +test!(test_cairn_cm, "logs/cms/cairn.zevtc"); +test!(test_mo_cm, "logs/cms/mo.zevtc"); +test!(test_samarog_cm, "logs/cms/samarog.zevtc"); +test!(test_deimos_cm, "logs/cms/deimos.zevtc"); + +test!(test_desmina_cm, "logs/cms/desmina.zevtc"); +test!(test_dhuum_cm, "logs/cms/desmina.zevtc"); + +test!(test_ca_cm, "logs/cms/ca.zevtc"); +test!(test_largos_cm, "logs/cms/largos.zevtc"); +test!(test_qadim_cm, "logs/cms/qadim.zevtc"); + +test!(test_adina_cm, "logs/cms/adina.zevtc"); +test!(test_qadimp_cm, "logs/cms/qadimp.zevtc"); + +test!(test_skorvald_cm, "logs/skorvald-20200427.zevtc"); +test!(test_artsariiv_cm, "logs/artsariiv-20200427.zevtc"); +test!(test_arkk_cm, "logs/arkk-20200427.zevtc"); + +test!(test_mama_cm, "logs/mama-20200427.zevtc"); +test!(test_siax_cm, "logs/siax-20200427.zevtc"); +test!(test_ensolyss_cm, "logs/ensolyss-20200427.zevtc"); diff --git a/tests/logs/cms/adina.zevtc b/tests/logs/cms/adina.zevtc Binary files differnew file mode 100644 index 0000000..292c967 --- /dev/null +++ b/tests/logs/cms/adina.zevtc diff --git a/tests/logs/cms/ca.zevtc b/tests/logs/cms/ca.zevtc Binary files differnew file mode 100644 index 0000000..e221914 --- /dev/null +++ b/tests/logs/cms/ca.zevtc diff --git a/tests/logs/cms/cairn.zevtc b/tests/logs/cms/cairn.zevtc Binary files differnew file mode 100644 index 0000000..6b223c6 --- /dev/null +++ b/tests/logs/cms/cairn.zevtc diff --git a/tests/logs/cms/deimos.zevtc b/tests/logs/cms/deimos.zevtc Binary files differnew file mode 100644 index 0000000..8689baa --- /dev/null +++ b/tests/logs/cms/deimos.zevtc diff --git a/tests/logs/cms/desmina.zevtc b/tests/logs/cms/desmina.zevtc Binary files differnew file mode 100644 index 0000000..f406b7d --- /dev/null +++ b/tests/logs/cms/desmina.zevtc diff --git a/tests/logs/cms/dhuum.zevtc b/tests/logs/cms/dhuum.zevtc Binary files differnew file mode 100644 index 0000000..1b57c84 --- /dev/null +++ b/tests/logs/cms/dhuum.zevtc diff --git a/tests/logs/cms/largos.zevtc b/tests/logs/cms/largos.zevtc Binary files differnew file mode 100644 index 0000000..7bb39a0 --- /dev/null +++ b/tests/logs/cms/largos.zevtc diff --git a/tests/logs/cms/mo.zevtc b/tests/logs/cms/mo.zevtc Binary files differnew file mode 100644 index 0000000..25f05ec --- /dev/null +++ b/tests/logs/cms/mo.zevtc diff --git a/tests/logs/cms/qadim.zevtc b/tests/logs/cms/qadim.zevtc Binary files differnew file mode 100644 index 0000000..6cb1d0b --- /dev/null +++ b/tests/logs/cms/qadim.zevtc diff --git a/tests/logs/cms/qadimp.zevtc b/tests/logs/cms/qadimp.zevtc Binary files differnew file mode 100644 index 0000000..42adcd6 --- /dev/null +++ b/tests/logs/cms/qadimp.zevtc diff --git a/tests/logs/cms/samarog.zevtc b/tests/logs/cms/samarog.zevtc Binary files differnew file mode 100644 index 0000000..b7dcbc9 --- /dev/null +++ b/tests/logs/cms/samarog.zevtc |