mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-08 15:40:34 -04:00
hardware: Add ROG Ally and ROG Ally X to board_lookup test
This commit is contained in:
parent
f1621ef8ec
commit
10eaabf749
1 changed files with 42 additions and 0 deletions
|
@ -200,6 +200,48 @@ pub mod test {
|
|||
assert!(steam_deck_variant().await.is_err());
|
||||
assert!(device_variant().await.is_err());
|
||||
|
||||
write(crate::path(SYS_VENDOR_PATH), "ASUSTeK COMPUTER INC.\n")
|
||||
.await
|
||||
.expect("write");
|
||||
write(crate::path(BOARD_NAME_PATH), "INVALID\n")
|
||||
.await
|
||||
.expect("write");
|
||||
write(crate::path(PRODUCT_NAME_PATH), "INVALID\n")
|
||||
.await
|
||||
.expect("write");
|
||||
assert_eq!(
|
||||
steam_deck_variant().await.unwrap(),
|
||||
SteamDeckVariant::Unknown
|
||||
);
|
||||
assert_eq!(
|
||||
device_variant().await.unwrap(),
|
||||
(DeviceType::Unknown, String::from("unknown"))
|
||||
);
|
||||
|
||||
write(crate::path(BOARD_NAME_PATH), "RC71L\n")
|
||||
.await
|
||||
.expect("write");
|
||||
assert_eq!(
|
||||
steam_deck_variant().await.unwrap(),
|
||||
SteamDeckVariant::Unknown
|
||||
);
|
||||
assert_eq!(
|
||||
device_variant().await.unwrap(),
|
||||
(DeviceType::RogAlly, String::from("RC71L"))
|
||||
);
|
||||
|
||||
write(crate::path(BOARD_NAME_PATH), "RC72LA\n")
|
||||
.await
|
||||
.expect("write");
|
||||
assert_eq!(
|
||||
steam_deck_variant().await.unwrap(),
|
||||
SteamDeckVariant::Unknown
|
||||
);
|
||||
assert_eq!(
|
||||
device_variant().await.unwrap(),
|
||||
(DeviceType::RogAllyX, String::from("RC72LA"))
|
||||
);
|
||||
|
||||
write(crate::path(SYS_VENDOR_PATH), "LENOVO\n")
|
||||
.await
|
||||
.expect("write");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue