aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--acinclude.m44
-rw-r--r--configure.ac6
-rw-r--r--tests/atlocal.in38
-rw-r--r--tests/check-notify.at6
-rw-r--r--tests/etc/mailstats.rcin4
-rw-r--r--tests/etc/notify.rcin4
-rw-r--r--tests/etc/wydawca.rcin12
-rw-r--r--tests/mailstats.at2
-rw-r--r--tests/notify-upl.at2
-rw-r--r--tests/testsuite.at2
-rw-r--r--tests/upl11.at6
-rw-r--r--tests/upl12f.at6
-rw-r--r--tests/upl12t.at6
-rw-r--r--tests/upload-dry.at12
14 files changed, 55 insertions, 55 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index f961c8b..92bef17 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -17,13 +17,13 @@ dnl Arguments:
dnl $1 -- Library to look for
dnl $2 -- Function to check in the library
dnl $3 -- Any additional libraries that might be needed
dnl $4 -- Action to be taken when test succeeds
dnl $5 -- Action to be taken when test fails
dnl $6 -- Directories where the library may reside
-AC_DEFUN([WD_CHECK_LIB],
+AC_DEFUN([WY_CHECK_LIB],
[m4_ifval([$4], , [AH_CHECK_LIB([$1])])dnl
AS_VAR_PUSHDEF([wd_Lib], [wd_cv_lib_$1])dnl
AC_CACHE_CHECK([for $2 in -l$1], [wd_Lib],
[AS_VAR_SET([wd_Lib], [no])
wd_check_lib_save_LIBS=$LIBS
for path in "" $6
@@ -42,9 +42,9 @@ AC_CACHE_CHECK([for $2 in -l$1], [wd_Lib],
AS_IF([test "AS_VAR_GET([wd_Lib])" != no],
[m4_default([$4], [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_LIB$1))
LIBS="-l$1 $LIBS"
])],
[$5])dnl
AS_VAR_POPDEF([wd_Lib])dnl
-])# WD_CHECK_LIB
+])# WY_CHECK_LIB
diff --git a/configure.ac b/configure.ac
index f25860e..afe0bb5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,22 +67,22 @@ AC_CHECK_FUNCS([fchdir memset strchr strdup strerror strrchr setegid setregid\
# **********************
# Mailutils
# **********************
AM_GNU_MAILUTILS(2.0, [mailer], [status_mailutils=yes], [status_mailutils=no])
AM_CONDITIONAL([COND_MAILUTILS],[test $status_mailutils = yes])
-AC_SUBST(WD_MAILUTILS,[$status_mailutils])
+AC_SUBST(WY_MAILUTILS,[$status_mailutils])
# **********************
# MySQL
# **********************
AC_SUBST(SQLLIB)
AH_TEMPLATE(HAVE_MYSQL,[Define if you have libmysql])
-WD_CHECK_LIB(mysqlclient,
+WY_CHECK_LIB(mysqlclient,
mysql_real_connect,
[-lm],
[ AC_DEFINE(HAVE_MYSQL)
SQLLIB="$wd_cv_lib_mysqlclient" ],
[ AC_MSG_FAILURE([The required library libmysqlclient is not found or is unusable]) ],
[/usr/lib/mysql /usr/local/lib/mysql])
@@ -92,13 +92,13 @@ WD_CHECK_LIB(mysqlclient,
# **********************
AC_SUBST(GPGMELIB)
AH_TEMPLATE(HAVE_GPGME,[Define if you have gpgme])
AC_CHECK_HEADERS(gpgme.h)
-WD_CHECK_LIB([gpgme],[main],[],
+WY_CHECK_LIB([gpgme],[main],[],
[GPGMELIB="$wd_cv_lib_gpgme"
AC_DEFINE(HAVE_GPGME) ],
[ AC_MSG_FAILURE([The requested library libgpgme is not found or is unusable])],
[/usr/pkg/lib /opt/lib /sw/lib])
# **********************
diff --git a/tests/atlocal.in b/tests/atlocal.in
index 2f01c30..77cf11b 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -5,71 +5,71 @@
PATH=@abs_builddir@:@abs_top_builddir@/src:@abs_top_srcdir@/build-aux:$top_srcdir:$srcdir:$PATH
XFAILFILE=$abs_builddir/.badversion
trap "cleanup; test -r $XFAILFILE && cat $XFAILFILE; exit $?" 1 2 13 15
-WD_CONFSRC=@abs_top_srcdir@/tests/etc
-WD_DISTDIR=@abs_top_srcdir@/tests/dist
-WD_SRC=@abs_top_builddir@/tests/source
-WD_DST=@abs_top_builddir@/tests/dest
-WD_MAILUTILS=@WD_MAILUTILS@
+WY_CONFSRC=@abs_top_srcdir@/tests/etc
+WY_DISTDIR=@abs_top_srcdir@/tests/dist
+WY_SRC=@abs_top_builddir@/tests/source
+WY_DST=@abs_top_builddir@/tests/dest
+WY_MAILUTILS=@WY_MAILUTILS@
MKDIR_P="@MKDIR_P@"
wydawca_init_testdirs() {
- for dir in "$WD_SRC" "$WD_SRC/test" "${WD_SRC}/fail" "${WD_SRC}/ok" "$WD_DST"
+ for dir in "$WY_SRC" "$WY_SRC/test" "${WY_SRC}/fail" "${WY_SRC}/ok" "$WY_DST"
do
if test -d "$dir"; then
rm -rf "$dir"/*
else
mkdir "$dir"
fi
done
}
wydawca_clean_testdirs() {
- rm -rf "$WD_SRC" "$WD_DST"
+ rm -rf "$WY_SRC" "$WY_DST"
}
wydawca_expandmeta() {
sed "s/@USER@/$USER/g;
- s,@WD_SRC@,$WD_SRC,g;
- s,@WD_DST@,$WD_DST,g;
- s,@WD_CONFSRC@,$WD_CONFSRC,g;
- s,@WD_MODDIR@,@abs_top_builddir@/modules/mailutils,g" $1 > $2
+ s,@WY_SRC@,$WY_SRC,g;
+ s,@WY_DST@,$WY_DST,g;
+ s,@WY_CONFSRC@,$WY_CONFSRC,g;
+ s,@WY_MODDIR@,@abs_top_builddir@/modules/mailutils,g" $1 > $2
}
wydawca_config() {
- wydawca_expandmeta $WD_CONFSRC/${1}in $1
+ wydawca_expandmeta $WY_CONFSRC/${1}in $1
}
wydawca_upload() {
- dir="$WD_SRC/$1"
+ dir="$WY_SRC/$1"
shift
file=$1
shift
- cp "$WD_DISTDIR/$file" "$dir"
- cp "$WD_DISTDIR/$file.sig" "$dir"
+ cp "$WY_DISTDIR/$file" "$dir"
+ cp "$WY_DISTDIR/$file.sig" "$dir"
if test -n "$1"; then
- cp "$WD_DISTDIR/$1" "$dir/$file.directive.asc"
+ cp "$WY_DISTDIR/$1" "$dir/$file.directive.asc"
else
- cp "$WD_DISTDIR/$file.directive.asc" "$dir"
+ cp "$WY_DISTDIR/$file.directive.asc" "$dir"
fi
}
wydawca_cmp() {
p=$1
shift
for file in $@
do
- cmp "$WD_DISTDIR/$file" "$WD_DST/$p/$file" || exit 1
+ cmp "$WY_DISTDIR/$file" "$WY_DST/$p/$file" || exit 1
done
}
wydawca_cmparc() {
p=$1
shift
for file in $@
do
- cmp "$WD_DISTDIR/$file" "$WD_DST/$p/archive/$file" || exit 1
+ cmp "$WY_DISTDIR/$file" "$WY_DST/$p/archive/$file" || exit 1
done
}
diff --git a/tests/check-notify.at b/tests/check-notify.at
index d31e1b9..a357aff 100644
--- a/tests/check-notify.at
+++ b/tests/check-notify.at
@@ -51,14 +51,14 @@ Subject: file rejected
X-Mailer: AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION)
Your upload of file has been rejected by the distribution
verification procedure with the following diagnostics:
WYDAWCA_SPOOL=ckfail
-WYDAWCA_SOURCE=@WD_SRC@/fail
-WYDAWCA_DEST=@WD_DST@
+WYDAWCA_SOURCE=@WY_SRC@/fail
+WYDAWCA_DEST=@WY_DST@
WYDAWCA_URL=ftp://wydawca.ckfail
WYDAWCA_TRIPLET_BASE=file
WYDAWCA_DIST_FILE=file
Please fix the tarball and resubmit.
@@ -78,13 +78,13 @@ cat notify.rc simple.rc >> wydawca.rc
wydawca_upload fail file
wydawca_expandmeta outtmpl expout
wydawca_expandmeta template experr
wydawca --no-preproc -c wydawca.rc || exit $?
-cat $WD_DST/mail.out
+cat $WY_DST/mail.out
],
[0],
[expout],
[experr])
wydawca_clean_testdirs
diff --git a/tests/etc/mailstats.rcin b/tests/etc/mailstats.rcin
index b3aeab7..fc37a4e 100644
--- a/tests/etc/mailstats.rcin
+++ b/tests/etc/mailstats.rcin
@@ -11,19 +11,19 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Wydawca. If not, see <http://www.gnu.org/licenses/>.
-module-prepend-load-path "@WD_MODDIR@";
+module-prepend-load-path "@WY_MODDIR@";
module mailutils mod_mailutils.la;
module-init mailutils {
admin-address "root@localhost";
from-address "wydawca-noreply@localhost";
- mailer "| @WD_CONFSRC@/nullmail @WD_DST@/mail.out -F ${sender} ${rcpt}";
+ mailer "| @WY_CONFSRC@/nullmail @WY_DST@/mail.out -F ${sender} ${rcpt}";
mail-statistics {
statistics all;
message <<EOT
Subject: Wydawca stats
diff --git a/tests/etc/notify.rcin b/tests/etc/notify.rcin
index 55f9c72..4fba0bd 100644
--- a/tests/etc/notify.rcin
+++ b/tests/etc/notify.rcin
@@ -11,19 +11,19 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Wydawca. If not, see <http://www.gnu.org/licenses/>.
-module-prepend-load-path "@WD_MODDIR@";
+module-prepend-load-path "@WY_MODDIR@";
module mailutils mod_mailutils.la;
module-init mailutils {
admin-address "root@localhost";
from-address "wydawca-noreply@localhost";
- mailer "| @WD_CONFSRC@/nullmail @WD_DST@/mail.out -F ${sender} ${rcpt}";
+ mailer "| @WY_CONFSRC@/nullmail @WY_DST@/mail.out -F ${sender} ${rcpt}";
}
# Notify the user about successful uploads
notify-event {
event success;
module mailutils;
diff --git a/tests/etc/wydawca.rcin b/tests/etc/wydawca.rcin
index d020eff..a5e2187 100644
--- a/tests/etc/wydawca.rcin
+++ b/tests/etc/wydawca.rcin
@@ -62,23 +62,23 @@ dictionary project-uploader {
"=gYgX\n"
"-----END PGP PUBLIC KEY BLOCK-----\n");
}
spool test {
url ftp://wydawca.test;
- source "@WD_SRC@/test";
- destination "@WD_DST@";
+ source "@WY_SRC@/test";
+ destination "@WY_DST@";
archive directory {
name "archive";
};
}
spool ckfail {
url ftp://wydawca.ckfail;
- source "@WD_SRC@/fail";
- destination "@WD_DST@";
+ source "@WY_SRC@/fail";
+ destination "@WY_DST@";
archive none;
check-script <<EOT
echo WYDAWCA_SPOOL=$WYDAWCA_SPOOL
echo WYDAWCA_SOURCE=$WYDAWCA_SOURCE
echo WYDAWCA_DEST=$WYDAWCA_DEST
echo WYDAWCA_URL=$WYDAWCA_URL
@@ -87,11 +87,11 @@ echo WYDAWCA_DIST_FILE=$WYDAWCA_DIST_FILE
exit 1
EOT;
}
spool ckok {
url ftp://wydawca.ckok;
- source "@WD_SRC@/ok";
- destination "@WD_DST@";
+ source "@WY_SRC@/ok";
+ destination "@WY_DST@";
archive none;
check-script "exit 0";
}
diff --git a/tests/mailstats.at b/tests/mailstats.at
index a7a9bae..06338a7 100644
--- a/tests/mailstats.at
+++ b/tests/mailstats.at
@@ -75,13 +75,13 @@ cat mailstats.rc >> wydawca.rc
wydawca_upload test file
wydawca_expandmeta errtmpl experr
ulimit -c unlimited
wydawca --no-preproc -c wydawca.rc || exit $?
wydawca_cmp proj file file.sig
-cat $WD_DST/mail.out
+cat $WY_DST/mail.out
],
[0],
[expout],
[experr])
wydawca_clean_testdirs
diff --git a/tests/notify-upl.at b/tests/notify-upl.at
index 60574a9..2c60c90 100644
--- a/tests/notify-upl.at
+++ b/tests/notify-upl.at
@@ -90,13 +90,13 @@ wydawca_upload test file
wydawca_expandmeta errtmpl experr
wydawca_expandmeta outtmpl expout
wydawca_expandmeta ls.sin ls.sed
wydawca --no-preproc -c wydawca.rc || exit $?
wydawca_cmp proj file file.sig
-cat $WD_DST/mail.out | sed -f ls.sed
+cat $WY_DST/mail.out | sed -f ls.sed
],
[0],
[expout],
[experr])
wydawca_clean_testdirs
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 16e5a41..2cba160 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -20,13 +20,13 @@ m4_version_prereq([2.52g])
m4_define([AT_SKIP_TEST],[exit 77])
dnl AT_SORT_PREREQ - Skip test if sort utility outputs unwanted data on stderr
m4_define([AT_SORT_PREREQ],[
test -z "`sort < /dev/null 2>&1`" || AT_SKIP_TEST
])
-m4_define([AT_MAILUTILS_PREREQ],[test "$WD_MAILUTILS" = yes || AT_SKIP_TEST])
+m4_define([AT_MAILUTILS_PREREQ],[test "$WY_MAILUTILS" = yes || AT_SKIP_TEST])
AT_INIT
AT_TESTED([wydawca])
m4_include([version.at])
m4_include([wordsplit.at])
m4_include([pushdir.at])
diff --git a/tests/upl11.at b/tests/upl11.at
index b5200b0..9e92f5e 100644
--- a/tests/upl11.at
+++ b/tests/upl11.at
@@ -38,16 +38,16 @@ wydawca: [[INFO]] check failures: 0
wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
AT_CHECK([
wydawca_init_testdirs
wydawca_config wydawca.rc
-destdir=$WD_DST/proj
+destdir=$WY_DST/proj
test -d $destdir || $MKDIR_P -p $destdir
-cp "$WD_DISTDIR/file" "$destdir"
-cp "$WD_DISTDIR/file.sig" "$destdir"
+cp "$WY_DISTDIR/file" "$destdir"
+cp "$WY_DISTDIR/file.sig" "$destdir"
wydawca_upload test file
wydawca_expandmeta template experr
wydawca --no-preproc -c wydawca.rc || exit $?
diff --git a/tests/upl12f.at b/tests/upl12f.at
index f3d96e5..08d798e 100644
--- a/tests/upl12f.at
+++ b/tests/upl12f.at
@@ -42,16 +42,16 @@ wydawca: [[INFO]] check failures: 0
wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
AT_CHECK([
wydawca_init_testdirs
wydawca_config wydawca.rc
-destdir=$WD_DST/proj
+destdir=$WY_DST/proj
test -d $destdir || $MKDIR_P $destdir
-cp "$WD_DISTDIR/file" "$destdir"
-cp "$WD_DISTDIR/file.sig" "$destdir"
+cp "$WY_DISTDIR/file" "$destdir"
+cp "$WY_DISTDIR/file.sig" "$destdir"
wydawca_upload test file file12f.directive.asc
wydawca_expandmeta template experr
wydawca --no-preproc -c wydawca.rc || exit $?
diff --git a/tests/upl12t.at b/tests/upl12t.at
index faab877..17854d9 100644
--- a/tests/upl12t.at
+++ b/tests/upl12t.at
@@ -38,16 +38,16 @@ wydawca: [[INFO]] check failures: 0
wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) finished
])
AT_CHECK([
wydawca_init_testdirs
wydawca_config wydawca.rc
-destdir=$WD_DST/proj
+destdir=$WY_DST/proj
test -d $destdir || $MKDIR_P $destdir
-cp "$WD_DISTDIR/file" "$destdir"
-cp "$WD_DISTDIR/file.sig" "$destdir"
+cp "$WY_DISTDIR/file" "$destdir"
+cp "$WY_DISTDIR/file.sig" "$destdir"
wydawca_upload test file file12t.directive.asc
wydawca_expandmeta template experr
wydawca --no-preproc -c wydawca.rc || exit $?
diff --git a/tests/upload-dry.at b/tests/upload-dry.at
index 56ccc67..14389e1 100644
--- a/tests/upload-dry.at
+++ b/tests/upload-dry.at
@@ -15,25 +15,25 @@
# along with Wydawca. If not, see <http://www.gnu.org/licenses/>.
AT_SETUP([Dry-run upload])
AT_DATA([template],
[wydawca: [[NOTICE]] AT_PACKAGE_TARNAME (AT_PACKAGE_NAME AT_PACKAGE_VERSION) started
-wydawca: [[DEBUG]] @WD_SRC@/ok -> @WD_DST@
-wydawca: [[DEBUG]] @WD_SRC@/fail -> @WD_DST@
-wydawca: [[DEBUG]] @WD_SRC@/test -> @WD_DST@
-wydawca: [[DEBUG]] processing spool test (@WD_DST@)
+wydawca: [[DEBUG]] @WY_SRC@/ok -> @WY_DST@
+wydawca: [[DEBUG]] @WY_SRC@/fail -> @WY_DST@
+wydawca: [[DEBUG]] @WY_SRC@/test -> @WY_DST@
+wydawca: [[DEBUG]] processing spool test (@WY_DST@)
wydawca: [[DEBUG]] FILE file, DIST=file, SIG=file.sig, DIRECTIVE=file.directive.asc
wydawca: [[DEBUG]] Good signature from Wydawca (Testsuite) <bug-wydawca@gnu.org.ua>
wydawca: [[DEBUG]] file: directive file signature OK
wydawca: [[NOTICE]] file.directive.asc: VERSION: 1.1
wydawca: [[DEBUG]] processing triplet `file'
wydawca: [[NOTICE]] file.directive.asc: COMMENT: Gnupload for Wydawca testsuite
wydawca: [[DEBUG]] good detached signature for file
-wydawca: [[DEBUG]] installing file to @WD_DST@/proj
-wydawca: [[DEBUG]] installing file.sig to @WD_DST@/proj
+wydawca: [[DEBUG]] installing file to @WY_DST@/proj
+wydawca: [[DEBUG]] installing file.sig to @WY_DST@/proj
wydawca: [[INFO]] errors: 0
wydawca: [[INFO]] warnings: 0
wydawca: [[INFO]] bad signatures: 0
wydawca: [[INFO]] access violation attempts: 0
wydawca: [[INFO]] complete triplets: 1
wydawca: [[INFO]] incomplete triplets: 0

Return to:

Send suggestions and report system problems to the System administrator.