File: run-all

package info (click to toggle)
pstreams 1.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 452 kB
  • sloc: cpp: 2,219; makefile: 144; sh: 18
file content (23 lines) | stat: -rwxr-xr-x 299 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -e

failed=no
(
  cd $(dirname $0)
  tests=$(ls -1 *.cc | sed -e 's/\.cc//')
  for test in $tests; do
    rm -f $test
    make -s $test
    if ./$test; then
      echo "✔ $test"
    else
      echo "✖ $test"
      failed=yes
    fi
  done
  rm -f $tests
)


test "$failed" = 'no'