mirror of
https://github.com/novoid/guess-filename.py.git
synced 2026-02-16 13:24:15 +00:00
added a testrun shell script which runs unit tests beforehand
This commit is contained in:
parent
c2046a602c
commit
82a95c0498
1 changed files with 15 additions and 0 deletions
15
test.sh
Executable file
15
test.sh
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/bin/sh
|
||||
|
||||
myexit() {
|
||||
echo "./guessfilename_test.sh returned ERROR(S). Please do test and try again."
|
||||
exit 1
|
||||
}
|
||||
|
||||
## run unit tests beforehand but dump output:
|
||||
./guessfilename_test.sh >/dev/null 2>&1 || myexit()
|
||||
|
||||
echo
|
||||
|
||||
./guessfilename.py -d testdata/2016-02-24\ A1\ Rechnung\ 02-2016\ -\ 12,12\ EUR\ --\ scan\ finance.pdf
|
||||
|
||||
##end
|
||||
Loading…
Reference in a new issue