• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2
3success=true
4for i
5do
6	printf "%-40s" $i
7	if sh -c "$i >$i.log 2>&1" 2>/dev/null
8	then
9		echo PASS
10	else
11		echo FAIL';' output in $i.log
12		success=false
13	fi
14done
15
16if $success; then
17	echo 'ALL TESTS PASSED.'
18	exit 0
19fi
20echo 'TESTS FAILED.'
21exit 1
22