mirror of
https://github.com/ellmau/adf-obdd.git
synced 2025-12-19 09:29:36 +01:00
Prepare files to publish the adf-bdd-bin package (#89)
* Prepare files to publish the adf-bdd-bin package
This commit is contained in:
parent
d7e71e5da7
commit
1596dc6818
2
.github/workflows/pr.yml
vendored
2
.github/workflows/pr.yml
vendored
@ -29,6 +29,7 @@ jobs:
|
||||
- run: cargo test --verbose --workspace
|
||||
- run: cargo test --verbose --workspace --all-features
|
||||
- run: cargo test --verbose --workspace --no-default-features
|
||||
- run: cargo test --verbose --workspace --no-default-features -F benchmark
|
||||
|
||||
clippy:
|
||||
name: Lint with clippy
|
||||
@ -43,6 +44,7 @@ jobs:
|
||||
- run: cargo clippy --workspace --all-targets --verbose
|
||||
- run: cargo clippy --workspace --all-targets --verbose --no-default-features
|
||||
- run: cargo clippy --workspace --all-targets --verbose --all-features
|
||||
- run: cargo clippy --workspace --all-targets --verbose --no-default-features -F benchmark
|
||||
|
||||
rustfmt:
|
||||
name: Verify code formatting
|
||||
|
||||
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -3,7 +3,7 @@
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "adf-bdd-solver"
|
||||
name = "adf-bdd-bin"
|
||||
version = "0.3.0"
|
||||
dependencies = [
|
||||
"adf_bdd",
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
[](https://crates.io/crates/adf_bdd)
|
||||
[](https://crates.io/crates/adf-bdd-bin)
|
||||
[](https://crates.io/crates/adf_bdd)
|
||||
[](https://docs.rs/adf_bdd/latest/adf_bdd/)
|
||||

|
||||
[](https://coveralls.io/github/ellmau/adf-obdd)
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "adf-bdd-solver"
|
||||
name = "adf-bdd-bin"
|
||||
version = "0.3.0"
|
||||
authors = ["Stefan Ellmauthaler <stefan.ellmauthaler@tu-dresden.de>"]
|
||||
edition = "2021"
|
||||
|
||||
@ -1,4 +1,12 @@
|
||||
 [](https://coveralls.io/github/ellmau/adf-obdd)    [](https://github.com/ellmau/adf-obdd/releases) [](https://github.com/ellmau/adf-obdd/discussions) 
|
||||
[](https://crates.io/crates/adf-bdd-bin)
|
||||

|
||||
[](https://coveralls.io/github/ellmau/adf-obdd)
|
||||

|
||||

|
||||

|
||||
[](https://github.com/ellmau/adf-obdd/releases)
|
||||
[](https://github.com/ellmau/adf-obdd/discussions)
|
||||

|
||||
|
||||
# Abstract Dialectical Frameworks solved by Binary Decision Diagrams; developed in Dresden (ADF-BDD)
|
||||
This is the readme for the executable solver.
|
||||
|
||||
@ -27,7 +27,7 @@ fn arguments() -> Result<(), Box<dyn std::error::Error>> {
|
||||
cmd.arg("--version");
|
||||
cmd.assert()
|
||||
.success()
|
||||
.stdout(predicate::str::contains("adf-bdd-solver "));
|
||||
.stdout(predicate::str::contains("adf-bdd-bin "));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
@ -148,16 +148,19 @@ fn runs_naive() -> Result<(), Box<dyn std::error::Error>> {
|
||||
"u(1) u(2) u(3) F(4) F(5) u(6) u(7) u(8) u(9) u(10) \n",
|
||||
));
|
||||
|
||||
cmd = Command::cargo_bin("adf-bdd")?;
|
||||
cmd.arg(tempdir.path().with_file_name("test.json"))
|
||||
.arg("--an")
|
||||
.arg("--grd")
|
||||
.arg("--import")
|
||||
.arg("--lib")
|
||||
.arg("naive");
|
||||
cmd.assert().success().stdout(predicate::str::contains(
|
||||
"u(1) u(2) u(3) F(4) F(5) u(6) u(7) u(8) u(9) u(10) \n",
|
||||
));
|
||||
#[cfg(feature = "importexport")]
|
||||
{
|
||||
cmd = Command::cargo_bin("adf-bdd")?;
|
||||
cmd.arg(tempdir.path().with_file_name("test.json"))
|
||||
.arg("--an")
|
||||
.arg("--grd")
|
||||
.arg("--import")
|
||||
.arg("--lib")
|
||||
.arg("naive");
|
||||
cmd.assert().success().stdout(predicate::str::contains(
|
||||
"u(1) u(2) u(3) F(4) F(5) u(6) u(7) u(8) u(9) u(10) \n",
|
||||
));
|
||||
}
|
||||
|
||||
cmd = Command::cargo_bin("adf-bdd")?;
|
||||
cmd.arg(file.path())
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user