Commit b860fd23 authored by zygzagZ's avatar zygzagZ

test.sh

parent b4061d29
#!/bin/bash
t=0
make -j8 && for i in lat/lattests/good/*.lat; do
t=$((t+1))
(./latc "$i" &>/dev/null);
if ! [ $? -eq 0 ]; then
echo $i;
./latc "$i"
exit 1;
fi
done && for i in lat/lattests/bad/*.lat; do
t=$((t+1))
(./latc "$i" &>/dev/null);
if [ $? -eq 0 ]; then
echo $i;
./latc "$i"
exit 1;
fi
done && echo OK: $t tests passed!
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment