File: testbuild

package info (click to toggle)
pd-lib-builder 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 560 kB
  • sloc: ansic: 206; makefile: 139; sh: 117; cpp: 19
file content (33 lines) | stat: -rwxr-xr-x 520 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
set -e


: ${PD:=pd}

runtest() {
  local p
  local d="$1"
  if [ ! -d "${d}" ]; then
    d=${d%/*}
  fi
  d=${d%/}
  make -C "${d}" 2>&1
  for p in "${d}"/*.pd; do
    echo "running ${p}"
    "${PD}" -noprefs -nogui -nrt -nosound -nomidi -send "pd quit 2" "${p}" 2>&1
    echo "SUCCESS: ${p}"
  done
  make -C "${d}" clean 2>&1
}

# 1st run: standard flags
for d in "$@"; do
  runtest "$d"
done 

# 2nd run: Debian flags
eval "$(dpkg-buildflags --export=sh)" || true
  
for d in "$@"; do
  runtest "$d"
done