File: run-all

package info (click to toggle)
arch-test 0.22-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 260 kB
  • sloc: asm: 461; perl: 187; makefile: 155; sh: 149; ansic: 6
file content (17 lines) | stat: -rwxr-xr-x 401 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# Verbose script for debug purposes.
ulimit -c 0

for x in arch-test-*
  do
    arch=${x##arch-test-}
    printf '\e[33m%s\e[0m\n' "$arch"
    MSG=`"./$x" 2>/dev/null|tr -d '\r'`
    RET=$?
    if [ $RET -eq 0 -a "x$MSG" = "xok" ]
      then COL="32" # green
      else COL="31" # red
    fi
    printf '\e[%smret=\e[1m%d\e[0;%sm stdout=\e[1m%s\e[0m\n' "$COL" "$RET" "$COL" "$MSG"
  done