aboutsummaryrefslogtreecommitdiff
path: root/lib/testcode.sh
blob: 3d56b909404cabd93ece2562c2481aab2a7e4130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

# Build other comonly used projects as an additional test of the toolchain

testcode()
{
    rm -f ${local_snapshots}/testcode/ChangeLog
    fetch_http testcode/ChangeLog

    if test -f ${local_snapshots}/md5sums; then
     	files="`grep testcode ${local_snapshots}/md5sums | cut -d ' ' -f3`"
     	for i in ${files}; do
     	    build $i
	    if test $? -gt 0; then
		error "Couldn't build $i!"
		return 1
	    fi
     	done
    fi
   
}