printf: fix printf "%u\n" +18446744073709551614
[oweals/busybox.git] / scripts / randomtest
index 41f252ad70fbd08a21ce42333eb5e67f01bccb6b..94709a99fe183fc591910ab69b970600066eb034 100755 (executable)
@@ -52,18 +52,25 @@ echo '# CONFIG_RFKILL is not set' >>.config
 if test x"$LIBC" = x"glibc"; then
        cat .config \
        | grep -v CONFIG_STATIC \
+       | grep -v CONFIG_FEATURE_LIBBUSYBOX_STATIC \
        \
        | grep -v CONFIG_FEATURE_2_4_MODULES \
        | grep -v CONFIG_FEATURE_USE_BSS_TAIL \
        | grep -v CONFIG_DEBUG_SANITIZE \
+       | grep -v CONFIG_FEATURE_MOUNT_NFS \
+       | grep -v CONFIG_FEATURE_INETD_RPC \
        >.config.new
        mv .config.new .config
        echo '# CONFIG_STATIC is not set' >>.config
+       echo '# CONFIG_FEATURE_LIBBUSYBOX_STATIC is not set' >>.config
        # newer glibc (at least 2.23) no longer supply query_module() ABI.
        # People who target 2.4 kernels would likely use older glibc (and older bbox).
        echo '# CONFIG_FEATURE_2_4_MODULES is not set' >>.config
        echo '# CONFIG_FEATURE_USE_BSS_TAIL is not set' >>.config
        echo '# CONFIG_DEBUG_SANITIZE is not set' >>.config
+       # 2018: current glibc versions no longer include rpc/rpc.h
+       echo '# CONFIG_FEATURE_MOUNT_NFS is not set' >>.config
+       echo '# CONFIG_FEATURE_INETD_RPC is not set' >>.config
 fi
 
 # If uclibc, build static, and remove some things
@@ -82,6 +89,10 @@ if test x"$LIBC" = x"uclibc"; then
        | grep -v CONFIG_BLKDISCARD \
        | grep -v CONFIG_NSENTER \
        | grep -v CONFIG_UNSHARE \
+       | grep -v CONFIG_FALLOCATE \
+       | grep -v CONFIG_UDHCPC6 \
+       | grep -v CONFIG_NSLOOKUP \
+       | grep -v CONFIG_ASH_INTERNAL_GLOB \
        >.config.new
        mv .config.new .config
        echo 'CONFIG_STATIC=y' >>.config
@@ -96,6 +107,10 @@ if test x"$LIBC" = x"uclibc"; then
        echo '# CONFIG_BLKDISCARD is not set' >>.config
        echo '# CONFIG_NSENTER is not set' >>.config
        echo '# CONFIG_UNSHARE is not set' >>.config
+       echo '# CONFIG_FALLOCATE is not set' >>.config
+       echo '# CONFIG_UDHCPC6 is not set' >>.config
+       echo '# CONFIG_NSLOOKUP is not set' >>.config
+       echo 'CONFIG_ASH_INTERNAL_GLOB=y' >>.config
 fi
 
 # If STATIC, remove some things.
@@ -115,6 +130,8 @@ fi
 
 # Build!
 nice -n 10 make $MAKEOPTS 2>&1 | tee make.log
+grep 'Rerun make' make.log \
+&& nice -n 10 make $MAKEOPTS 2>&1 | tee -a make.log
 
 # Return exitcode 1 if busybox executable does not exist
 test -x busybox