-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
34 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
# this helper script is needed because it seems like it's not possible | ||
# to run a background process in the .spec file directly | ||
|
||
set -e | ||
|
||
source ~/.cargo/env | ||
|
||
# PostgresQL is needed for some tests | ||
PGDATA="$HOME/.local/share/pgsql/data" | ||
mkdir -p "$PGDATA" | ||
postgres -D "$PGDATA" &> postgres.log & | ||
ss -tupln | ||
|
||
cargo test --workspace | ||
cat postgres.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters