Skip to content

Commit

Permalink
tests: Add bats tests for scans with results database
Browse files Browse the repository at this point in the history
  • Loading branch information
rumpelsepp committed Feb 28, 2025
1 parent b2df6fb commit 3b736f8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/bats/002-scans.bats
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ teardown() {
gallia scan uds services --sessions 1 2 --check-session
}

@test "scan services with database" {
local db_file="${BATS_TEST_NAME}.sqlite"

gallia scan uds services --db "$db_file" --sessions 1 2 --check-session
sqlite3 "$db_file" "SELECT * FROM run_meta;" >&3
}

@test "scan sessions" {
gallia scan uds sessions
}
Expand Down

0 comments on commit 3b736f8

Please sign in to comment.