1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-25 15:35:23 +00:00
OpenMW/tools/tests/test.sh

19 lines
292 B
Bash
Raw Normal View History

2010-01-04 19:16:40 +01:00
#!/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 -
2010-01-04 19:16:40 +01:00
else
echo "Creating $a.out"
./$a > "output/$a.out"
2010-01-04 19:16:40 +01:00
git add "output/$a.out"
fi
done