Skip to content

Commit

Permalink
Move ir-ctl and lircd tests libraries into tests directory
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Young <sean@mess.org>
  • Loading branch information
seanyoung committed Apr 27, 2024
1 parent 3388ce4 commit 9881c7d
Show file tree
Hide file tree
Showing 32 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ irp = { version = "0.3.2", path = "irp" }
[dev-dependencies]
assert_cmd = "2.0"
serde_json = "1.0"
liblircd = { path = "liblircd" }
libirctl = { path = "libirctl" }
liblircd = { path = "tests/liblircd" }
libirctl = { path = "tests/libirctl" }
rand = "0.8"

[workspace]
members = [
"irp",
"liblircd",
"libirctl",
"tests/liblircd",
"tests/libirctl",
"irp/tests/rust-irptransmogrifier",
]

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions liblircd/tests/transmit.rs → tests/liblircd/tests/transmit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::fs::read_to_string;

#[test]
fn encode() {
let conf = read_to_string("../testdata/lircd_conf/thomson/ROC740.lircd.conf").unwrap();
let conf = read_to_string("../../testdata/lircd_conf/thomson/ROC740.lircd.conf").unwrap();

//unsafe { lirc_log_set_stdout() };

Expand Down Expand Up @@ -37,7 +37,7 @@ fn encode() {
}
}

let conf = read_to_string("../testdata/lircd_conf/motorola/DCH3200.lircd.conf").unwrap();
let conf = read_to_string("../../testdata/lircd_conf/motorola/DCH3200.lircd.conf").unwrap();

// unsafe { lirc_log_set_stdout() };

Expand Down Expand Up @@ -70,7 +70,7 @@ fn encode() {
}
}

let conf = read_to_string("../testdata/lircd_conf/motorola/QIP2500.lircd.conf").unwrap();
let conf = read_to_string("../../testdata/lircd_conf/motorola/QIP2500.lircd.conf").unwrap();

let conf = LircdConf::parse(&conf).unwrap();

Expand Down Expand Up @@ -110,7 +110,7 @@ fn encode() {

// now test decode of a remote with toggle_bit_mask set (more than one bit)

let conf = read_to_string("../testdata/lircd_conf/d-link/DSM-10.lircd.conf").unwrap();
let conf = read_to_string("../../testdata/lircd_conf/d-link/DSM-10.lircd.conf").unwrap();

//unsafe { lirc_log_set_stdout() };

Expand Down Expand Up @@ -163,7 +163,7 @@ fn encode() {

// now test decoder of a remote with an ignore_mask

let conf = read_to_string("../testdata/lircd_conf/apple/A1156.lircd.conf").unwrap();
let conf = read_to_string("../../testdata/lircd_conf/apple/A1156.lircd.conf").unwrap();

//unsafe { lirc_log_set_stdout() };

Expand Down

0 comments on commit 9881c7d

Please sign in to comment.