You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
292 B
Bash
19 lines
292 B
Bash
12 years ago
|
#!/bin/bash
|
||
|
|
||
|
make || exit
|
||
|
|
||
|
mkdir -p output
|
||
|
|
||
|
PROGS=*_test
|
||
|
|
||
|
for a in $PROGS; do
|
||
|
if [ -f "output/$a.out" ]; then
|
||
|
echo "Running $a:"
|
||
|
./$a | diff output/$a.out -
|
||
|
else
|
||
|
echo "Creating $a.out"
|
||
|
./$a > "output/$a.out"
|
||
|
git add "output/$a.out"
|
||
|
fi
|
||
|
done
|