source: rtems-testing/rtems/bit_all_confs @ 6e7b726

Last change on this file since 6e7b726 was 85c521d, checked in by Joel Sherrill <joel.sherrill@…>, on May 2, 2014 at 2:14:18 PM

rtems-testing: Use eval bash instead of full path

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