blob: 3bc5c39761fb2c0b4c1bf4d0de84f2bc89cdf4f6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
#! /bin/sh
#
# Run over all possible RTEMS configurations
#
#
fix_usercfg()
{
tests_f=$1
tcpip_f=$2
posix_f=$3
cxx_f=$4
itron_f=$5
mp_f=$6
cp user.cfg user.cfg.back
sed -e "s/ENABLE_RTEMS_TESTS=.*$/ENABLE_RTEMS_TESTS=${tests_f}/" \
-e "s/ENABLE_RTEMS_TCPIP=.*$/ENABLE_RTEMS_TCPIP=${tcpip_f}/" \
-e "s/ENABLE_RTEMS_POSIX=.*$/ENABLE_RTEMS_POSIX=${posix_f}/" \
-e "s/ENABLE_RTEMS_CXX=.*$/ENABLE_RTEMS_CXX=${cxx_f}/" \
-e "s/ENABLE_RTEMS_ITRON=.*$/ENABLE_RTEMS_ITRON=${itron_f}/" \
-e "s/ENABLE_RTEMS_MP=.*$/ENABLE_RTEMS_MP=${mp_f}/" \
<user.cfg.back >user.cfg
}
if [ $# -ne 2 ] ; then
echo Usage: $0 target BSP
exit 1
fi
target=$1
bsp=$2
start=`date`
for test_l in samples ; do # note yes is left out
for tcpip_l in no yes ; do
for posix_l in no yes ; do
for cxx_l in no yes ; do
for itron_l in no ; do # note yes is left out
for mp_l in no yes ; do
fix_usercfg $test_l $tcpip_l $posix_l $cxx_l $itron_l $mp_l
echo
echo ===============================================
echo
echo Testing ...
grep ^ENABLE user.cfg
echo
outf="log/ALLCONFS-${target}-${bsp}"
outf="${outf}-${test_l}_tests-${tcpip_l}net-${posix_l}posix"
outf="${outf}-${itron_l}itron-${cxx_l}cxx"
outf="${outf}-${mp_l}mp"
outf=`echo ${outf} | sed -e 's/yes//g'`
echo "./bit_rtems ${target} ${bsp} >${outf} 2>&1"
./bit_rtems ${target} ${bsp} >${outf} 2>&1
done # mp
done # cxx
done # itron
done # posix
done # tcpip
done # test
stop=`date`
echo "Started: " $start
echo "Finished: " $stop
exit 0
|