.*~ *~ */*~ lib/*/*~ lib/*/*/*~ \
*.pyc */*.pyc lib/*/*.pyc lib/*/*/*.pyc \
bup bup-* cmd/bup-* lib/bup/_version.py randomgen memtest \
- testfs.img lib/bup/t/testfs.img lib/bup/config.py
+ testfs.img lib/bup/t/testfs.img
if test -e t/mnt; then t/cleanup-mounts-under t/mnt; fi
if test -e t/mnt; then rm -r t/mnt; fi
if test -e t/tmp; then t/cleanup-mounts-under t/tmp; fi
AC_CHECK_FIELD stat st_mtimensec sys/types.h sys/stat.h unistd.h
AC_CHECK_FIELD stat st_ctimensec sys/types.h sys/stat.h unistd.h
-cat > ../lib/bup/config.py <<EOF
-# Automatically generated file. Edit config/configure instead of this file.
-EOF
-
-LOGN 'checking for ARG_MAX'
-val_arg_max="$(getconf ARG_MAX)"
-if test $? -ne 0; then
- AC_FAIL "ERROR: getconf ARG_MAX failed."
-else
- if ! echo "$val_arg_max" | grep -qE '^[0-9]+$'; then
- AC_FAIL "ERROR: ARG_MAX does not appear to be an integer: $val_arg_max"
- fi
- if ! echo "arg_max = $val_arg_max" >> ../lib/bup/config.py; then
- AC_FAIL "ERROR: could not write to config.py."
- fi
- LOG " ($val_arg_max)"
-fi
-
AC_OUTPUT config.vars
+++ /dev/null
-from helpers import readpipe
-from wvtest import *
-import config
-
-
-@wvtest
-def test_arg_max():
- WVPASSEQ(int(readpipe(['getconf', 'ARG_MAX'])), config.arg_max)