"Fossies" - the Fresh Open Source Software Archive

Member "di-4.47.2/C/tests.d/env.sh" (30 Oct 2019, 1193 Bytes) of package /linux/privat/di-4.47.2.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "env.sh": 4.46_vs_4.47.

    1 #!/bin/sh
    2 
    3 . $_MKCONFIG_DIR/bin/testfuncs.sh
    4 . $_MKCONFIG_DIR/bin/shellfuncs.sh
    5 
    6 maindodisplay $1 'check environment in make'
    7 maindoquery $1 $_MKC_ONCE
    8 
    9 getsname $0
   10 dosetup $@
   11 
   12 cd ${_MKCONFIG_RUNTOPDIR}
   13 rc=$?
   14 if [ $rc -ne 0 ]; then
   15   puts "ERROR: Unable to cd to ${_MKCONFIG_RUNTOPDIR}"
   16   exit $rc
   17 fi
   18 
   19 ${MAKE:-make} di.env
   20 
   21 . ./di.env
   22 
   23 unset MAKEFLAGS
   24 ${MAKE:-make} ${TMAKEFLAGS} --version 2>&1 | egrep "GNU Make" > /dev/null 2>&1
   25 rc=$?
   26 if [ $rc -eq 0 ]; then
   27   ${MAKE:-make} ${TMAKEFLAGS} -e --no-print-directory rtest-env |
   28     sed -e 's/^ *//' -e 's/ *$//' > ${_MKCONFIG_TSTRUNTMPDIR}/e2 2>/dev/null
   29         ${_MKCONFIG_TSTRUNTMPDIR}/e2 2>/dev/null
   30 else
   31   ${MAKE:-make} ${TMAKEFLAGS} -e rtest-env |
   32     sed -e 's/^ *//' -e 's/ *$//' > ${_MKCONFIG_TSTRUNTMPDIR}/e2 2>/dev/null
   33 fi
   34 
   35 cd ${_MKCONFIG_TSTRUNTMPDIR}
   36 rc=$?
   37 if [ $rc -ne 0 ]; then
   38   puts "ERROR: Unable to cd to ${_MKCONFIG_TSTRUNTMPDIR}"
   39   exit $rc
   40 fi
   41 
   42 echo "${_MKCONFIG_SYSTYPE}
   43 ${_MKCONFIG_SYSREV}
   44 ${_MKCONFIG_SYSARCH}
   45 ${CC}
   46 ${_MKCONFIG_USING_GCC}
   47 ${CFLAGS_OPTIMIZE}
   48 ${CFLAGS_COMPILER}
   49 ${LDFLAGS_COMPILER}
   50 ${OBJ_EXT}
   51 ${EXE_EXT}
   52 ${XMSGFMT}" |
   53 sed -e 's/^ *//' -e 's/ *$//' > e1
   54 
   55 chkdiff e1 e2
   56 
   57 testcleanup e1 e2 env.log
   58 
   59 exit $grc