-
Notifications
You must be signed in to change notification settings - Fork 99
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
35 additions
and
0 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,16 @@ | ||
#!/bin/bash | ||
|
||
# Script that tests black-box tests deface with examples. | ||
# Before running, install deface and cd to the repo root | ||
|
||
|
||
# Show help, checking if the main script runs without errors | ||
deface --help | ||
|
||
# Create a temporary directory for outputs | ||
tmpdir=$(mktemp -d -t deface-XXXXXXXXXX) | ||
|
||
# Test deface with the example image, write output to temporary directory | ||
deface ./examples/city.jpg -o ${tmpdir}/city_anonymized.jpg | ||
|
||
# TODO: Add more tests (video I/O, different EPs) |
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,19 @@ | ||
[tox] | ||
env_list = | ||
py310, py311, py312 | ||
minversion = 4.11.3 | ||
|
||
[gh-actions] | ||
python = | ||
3.10: py310 | ||
3.11: py311 | ||
3.12: py312 | ||
|
||
[testenv] | ||
description = Run executable with example data | ||
package = wheel | ||
wheel_build_env = .pkg | ||
allowlist_externals = | ||
bash | ||
commands = | ||
bash ./test_examples.sh |