Skip to content

Commit

Permalink
ci: extend the tests a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
mrc0mmand committed Apr 23, 2022
1 parent 3a75efa commit 2e0adcd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,22 @@ jobs:
- name: Test
run: |
set -ex
# Test as an unprivileged user (short options)
dfuzzer -v -n org.freedesktop.systemd1
# Test as root (long options + duplicate options)
sudo dfuzzer --verbose --bus this.should.be.ignored --bus org.freedesktop.systemd1
# Test logdir
mkdir dfuzzer-logs
dfuzzer --log-dir dfuzzer-logs -v -n org.freedesktop.systemd1
# Test a non-existent bus
if sudo dfuzzer --log-dir "" --bus this.should.not.exist; then false; fi
# Test object & interface options
dfuzzer -v --bus org.freedesktop.systemd1 --object / --interface org.freedesktop.DBus.Peer
sudo dfuzzer -v --bus org.freedesktop.systemd1 --object / --interface org.freedesktop.DBus.Peer
# - duplicate object/interface paths
dfuzzer -v --bus org.freedesktop.systemd1 --object xxx --object yyy --object / --interface org.freedesktop.DBus.Peer
dfuzzer -v --bus org.freedesktop.systemd1 --object xxx --object yyy --object / --interface zzz --interface org.freedesktop.DBus.Peer
# - test error paths
if dfuzzer -v --bus org.freedesktop.systemd1 --object aaa; then false; fi
if dfuzzer -v --bus org.freedesktop.systemd1 --interface aaa; then false; fi

0 comments on commit 2e0adcd

Please sign in to comment.