mirror of
https://github.com/9001/copyparty.git
synced 2025-10-03 09:49:29 +02:00
* rename hdr-au-usr
to idp-h-usr
* ensure lowercase idp-h-*, xff-hdr * more macos support in tooling
This commit is contained in:
parent
a18f63895f
commit
59688bc8d7
6 changed files with 30 additions and 9 deletions
|
@ -1,6 +1,17 @@
|
|||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
# osx support
|
||||
gtar=$(command -v gtar || command -v gnutar) || true
|
||||
[ ! -z "$gtar" ] && command -v gfind >/dev/null && {
|
||||
tar() { $gtar "$@"; }
|
||||
sed() { gsed "$@"; }
|
||||
find() { gfind "$@"; }
|
||||
sort() { gsort "$@"; }
|
||||
command -v grealpath >/dev/null &&
|
||||
realpath() { grealpath "$@"; }
|
||||
}
|
||||
|
||||
rm -rf unt
|
||||
mkdir -p unt/srv
|
||||
cp -pR copyparty tests unt/
|
||||
|
@ -30,9 +41,11 @@ for py in python{2,3}; do
|
|||
[ "${1:0:6}" = python ] && [ "$1" != $py ] && continue
|
||||
|
||||
PYTHONPATH=
|
||||
[ $py = python2 ] && PYTHONPATH=../scripts/py2:../sfx/py37
|
||||
[ $py = python2 ] && PYTHONPATH=../scripts/py2:../sfx/py37:../sfx/j2
|
||||
export PYTHONPATH
|
||||
|
||||
[ $py = python2 ] && py=$(command -v python2.7 || echo $py)
|
||||
|
||||
nice $py -m unittest discover -s tests >/dev/null &
|
||||
pids+=($!)
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue