Skip to content

Commit

Permalink
ci: run two examples in ci test
Browse files Browse the repository at this point in the history
Signed-off-by: Ming Lei <ming.lei@redhat.com>
  • Loading branch information
ming1 authored and Ming Lei committed Oct 28, 2023
1 parent 8d0c80d commit e82ef61
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ jobs:
mkosi ssh /usr/share/libublk-rs/target/debug/test-libublk --nocapture
mkosi ssh /usr/share/libublk-rs/target/debug/test-basic --nocapture
mkosi ssh /usr/share/libublk-rs/target/debug/examples/null add -a
mkosi ssh /usr/share/libublk-rs/target/debug/examples/null del -n 0
mkosi ssh /usr/share/libublk-rs/target/debug/examples/null add -a -u
mkosi ssh /usr/share/libublk-rs/target/debug/examples/null del -n 0
mkosi ssh truncate -s 128M /tmp/test.img
mkosi ssh /usr/share/libublk-rs/target/debug/examples/loop add -f /tmp/test.img -a
mkosi ssh /usr/share/libublk-rs/target/debug/examples/loop del -n 0
mkosi ssh /usr/share/libublk-rs/target/debug/examples/loop add -f /tmp/test.img -a -s
mkosi ssh /usr/share/libublk-rs/target/debug/examples/loop del -n 0
mkosi ssh echo "test --features=fat_complete"
mkosi ssh ls -l /usr/share/libublk-rs2/target/debug/deps/libublk*
mkosi ssh ls -l /usr/share/libublk-rs2/target/debug/deps/basic*
Expand Down
2 changes: 2 additions & 0 deletions ci/mkosi.build
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ create_libublk()

cd $rs_dir
cargo test $para -v --no-run
cargo run --example loop -- help
cargo run --example null -- help
cd -

TA=`find $rs_dir/target/debug/deps/ -type f -executable -name "libublk*"`
Expand Down

0 comments on commit e82ef61

Please sign in to comment.