1#!/bin/sh
2
3error()
4{
5    echo "Build test failed"
6    exit 1
7}
8
9for i in *; do
10    if [ -d $i ]; then
11	cd $i
12	make clean
13	make -j8 || error
14	make clean
15	cd ..
16    fi
17done
18
19echo "Build test succeeded"
20