Browse Source

add bin/daemon users for ltp, finetune ltp

Waldemar Brodkorb 9 years ago
parent
commit
62b184310a

+ 2 - 0
package/base-files/src/etc/passwd

@@ -1,2 +1,4 @@
 root:x:0:0:root:/root:/bin/sh
+daemon:x:1:1:daemon::/bin/false
+bin:x:2:2:bin::/bin/false
 nobody:*:65534:65534:nobody:/var:/bin/false

+ 18 - 1
package/ltp/patches/patch-runltp

@@ -1,5 +1,5 @@
 --- ltp-full-20140422.orig/runltp	2014-04-23 10:37:31.000000000 +0200
-+++ ltp-full-20140422/runltp	2014-07-07 22:30:06.069956961 +0200
++++ ltp-full-20140422/runltp	2014-07-10 23:23:28.476220215 +0200
 @@ -77,7 +77,7 @@ setup()
          exit 1
      }
@@ -9,3 +9,20 @@
      export PATH="${PATH}:${LTPROOT}/testcases/bin"
  
      export LTP_DEV=""
+@@ -671,11 +671,11 @@ main()
+     fi
+ 
+     # check for required users and groups
+-    ${LTPROOT}/IDcheck.sh || \
+-    {
+-        echo "WARNING: required users and groups not present"
+-        echo "WARNING: some test cases may fail"
+-    }
++    #${LTPROOT}/IDcheck.sh || \
++    #{
++    #    echo "WARNING: required users and groups not present"
++    #    echo "WARNING: some test cases may fail"
++    #}
+ 
+     # display versions of installed software
+     [ -z "$QUIET_MODE" ] && \

+ 28 - 18
package/ltp/patches/patch-ver_linux

@@ -1,23 +1,33 @@
 --- ltp-full-20140422.orig/ver_linux	2014-04-23 10:37:00.000000000 +0200
-+++ ltp-full-20140422/ver_linux	2014-07-07 22:31:57.942795517 +0200
-@@ -18,62 +18,23 @@ fi
++++ ltp-full-20140422/ver_linux	2014-07-10 23:24:06.016401603 +0200
+@@ -5,9 +5,6 @@
+ # differ on your system.
+ #
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin:$PATH
+-echo 'If some fields are empty or look unusual you may have an old version.'
+-echo 'Compare to the current minimal requirements in Documentation/Changes.'
+-echo ' '
+ 
+ cat /etc/*release 2> /dev/null
+ if [ $? = 1 ]; then
+@@ -18,62 +15,7 @@ fi
  uname -a
  echo ' '
  
 -echo "Gnu C                 " `gcc --version 2>/dev/null | head -n 1`
 -
- make --version 2>&1 | awk -F, '{print $1}' | awk \
-       '/GNU Make/{print "Gnu make              ",$NF}'
- 
- ld -v 2>&1 | awk -F\) '{print $1}' | awk \
-       '/BFD/{print "binutils              ",$NF}'
- 
+-make --version 2>&1 | awk -F, '{print $1}' | awk \
+-      '/GNU Make/{print "Gnu make              ",$NF}'
+-
+-ld -v 2>&1 | awk -F\) '{print $1}' | awk \
+-      '/BFD/{print "binutils              ",$NF}'
+-
 -fdformat --version 2>&1 | awk -F\- '{print "util-linux            ", $NF}'
 -
- mount --version 2>&1 | awk -F\- '{print "mount                 ", $NF}'
- 
- insmod -V  2>&1 | awk 'NR==1 {print "modutils              ",$NF}'
- 
+-mount --version 2>&1 | awk -F\- '{print "mount                 ", $NF}'
+-
+-insmod -V  2>&1 | awk 'NR==1 {print "modutils              ",$NF}'
+-
 -tune2fs 2>&1 | grep "^tune2fs" | sed 's/,//' |  awk \
 -'NR==1 {print "e2fsprogs             ", $2}'
 -
@@ -45,12 +55,12 @@
 -
 -ps --version 2>&1 | awk 'NR==1{print "Procps                ", $NF}'
 -
- ifconfig --version 2>&1 | grep tools | awk \
- 'NR==1{print "Net-tools             ", $NF}'
- 
- ip -V 2>&1 | awk \
- 'NR==1{print "iproute2             ", $NF}'
- 
+-ifconfig --version 2>&1 | grep tools | awk \
+-'NR==1{print "Net-tools             ", $NF}'
+-
+-ip -V 2>&1 | awk \
+-'NR==1{print "iproute2             ", $NF}'
+-
 -# Kbd needs 'loadkeys -h',
 -loadkeys -h 2>&1 | awk \
 -'(NR==1 && ($3 !~ /option/)) {print "Kbd                   ", $3}'

+ 8 - 0
target/linux/config/Config.in.debug

@@ -46,6 +46,14 @@ config ADK_KERNEL_BUG
 	help
 	  Enable if you need BUGS() in the kernel.
 
+config ADK_KERNEL_COREDUMP
+	prompt "Enable coredumps"
+	boolean
+	default y if ADK_PACKAGE_LTP
+	default n
+	help
+	  Enable if you need coredumps.
+
 config ADK_KERNEL_NETCONSOLE
 	prompt "Netconsole support"
 	boolean