summaryrefslogtreecommitdiff
path: root/lib/ldpc/run-examples
blob: 7d8859e3f16dc64f0abf6bb04686c6a35e16f391 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

# Run all the examples, and check the output against the corresponding -out
# file.  Note that slight differences are possible when the examples are
# run on different machines, due to slightly different round-off errors.

for e in `ls ex-* | grep -v "\\." | grep -v .-out` 
do 
  echo Running $e:
  $e 2>&1 | diff ${e}-out -
  echo " "
done