summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfukachan <fukachan>2001-01-24 03:20:52 +0000
committerfukachan <fukachan>2001-01-24 03:20:52 +0000
commitacd55e2d8248d691a3d76e79d8d0f9acb6e15cf8 (patch)
tree3c6af40fe1c7401779df914386e56de1decab86e
parentdde6ff68f498af6025caf9238182cc49e2e61a26 (diff)
downloadfml8-acd55e2d8248d691a3d76e79d8d0f9acb6e15cf8.tar.gz
fml8-acd55e2d8248d691a3d76e79d8d0f9acb6e15cf8.tar.bz2
fml8-acd55e2d8248d691a3d76e79d8d0f9acb6e15cf8.zip
Initial revision
-rwxr-xr-xdoc/bin/dir2url65
-rwxr-xr-xregress/simulation/alltest.sh15
-rw-r--r--regress/simulation/example19
-rw-r--r--regress/simulation/example.re19
-rw-r--r--regress/simulation/main.cf25
-rwxr-xr-xregress/simulation/re.test.sh17
-rwxr-xr-xregress/simulation/test.sh19
7 files changed, 179 insertions, 0 deletions
diff --git a/doc/bin/dir2url b/doc/bin/dir2url
new file mode 100755
index 00000000..bef94fc4
--- /dev/null
+++ b/doc/bin/dir2url
@@ -0,0 +1,65 @@
+#!/bin/sh
+#
+# $Id$
+#
+
+HEADER () {
+cat <<'_EOF'
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
+<HTML>
+<HEAD>
+<TITLE>
+fml5 homepage menubar
+</TITLE>
+<META http-equiv="Content-Type"
+ content="text/html; charset=EUC-JP">
+</HEAD>
+
+<BODY BGCOLOR="#E6E6FA">
+_EOF
+}
+
+FOOTER () {
+cat <<'_EOF'
+</BODY>
+</HTML>
+_EOF
+}
+
+
+SHOW () {
+ echo "<UL>"
+ for x in *[a-z0-9A-Z]
+ do
+ if [ "X$x" = XCVS ]; then continue; fi
+ if [ "X$x" = Xindex.ja.html ]; then continue; fi
+ if [ "X$x" = Xindex.en.html ]; then continue; fi
+ if [ "X$x" = Xindex.html ]; then continue; fi
+
+ echo " <LI>";
+ if [ -d $x ];then
+ if [ -f $x/index.ja.html ];then
+ echo " <A HREF=$x/index.ja.html>$x::</A>"
+ else
+ echo " $x ";
+ if [ -f $x/README ];then
+ echo " <A HREF=$x/README>README</A>"
+ fi
+ if [ -f $x/INSTALL ];then
+ echo " <A HREF=$x/INSTALL>INSTALL</A>"
+ fi
+ fi
+ else
+ echo " $x"
+ fi
+ echo ""
+ done
+ echo "</UL>"
+}
+
+
+HEADER
+SHOW
+FOOTER
+
+exit 0;
diff --git a/regress/simulation/alltest.sh b/regress/simulation/alltest.sh
new file mode 100755
index 00000000..b6131448
--- /dev/null
+++ b/regress/simulation/alltest.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+#
+# $Id$
+#
+
+(cd ../../fml/etc/;sh .gen.sh)
+sudo rm -f /etc/fml/main.cf
+sudo rm -f /usr/local/libexec/fml/fmlwrapper
+(cd ../..; sudo sh INSTALL.sh )
+cat example |\
+perl -w /usr/local/libexec/fml/fml.pl --params pwd=$PWD /var/spool/ml/elena
+
+
+exit 0
+
diff --git a/regress/simulation/example b/regress/simulation/example
new file mode 100644
index 00000000..6046c334
--- /dev/null
+++ b/regress/simulation/example
@@ -0,0 +1,19 @@
+Return-Path: <fukachan@fml.org>
+Received: from hikari.fml.org (hikari.fml.org [192.168.1.6])
+ by elena.fml.org (Postfix) with ESMTP id C995C1D8C9
+ for <mailbox@elena.fml.org>; Tue, 2 Jan 2001 17:08:05 +0900 (JST)
+Received: by hikari.fml.org (8.9.3/3.4W6+Hikari-2.1) with ESMTP id RAA17788 for <caesar@fml.org>; Tue, 2 Jan 2001 17:08:04 +0900 (JST)
+Received: by iris.fml.org (Postfix, from userid 0)
+ id 1BCBE15024; Tue, 2 Jan 2001 17:08:03 +0900 (JST)
+From: fukachan@fml.org
+To: rudo@nuinui.net
+Reply-To: rudo@nuinui.net
+Subject: [elena:00300] test 01
+ appended_mesg
+Message-Id: <20010102080803.1BCBE15024@iris.fml.org>
+Date: Tue, 2 Jan 2001 17:08:03 +0900 (JST)
+
+test message
+
+-- rudo's mabuachi
+
diff --git a/regress/simulation/example.re b/regress/simulation/example.re
new file mode 100644
index 00000000..e5bfb5da
--- /dev/null
+++ b/regress/simulation/example.re
@@ -0,0 +1,19 @@
+Return-Path: <fukachan@fml.org>
+Received: from hikari.fml.org (hikari.fml.org [192.168.1.6])
+ by elena.fml.org (Postfix) with ESMTP id C995C1D8C9
+ for <mailbox@elena.fml.org>; Tue, 2 Jan 2001 17:08:05 +0900 (JST)
+Received: by hikari.fml.org (8.9.3/3.4W6+Hikari-2.1) with ESMTP id RAA17788 for <caesar@fml.org>; Tue, 2 Jan 2001 17:08:04 +0900 (JST)
+Received: by iris.fml.org (Postfix, from userid 0)
+ id 1BCBE15024; Tue, 2 Jan 2001 17:08:03 +0900 (JST)
+From: fukachan@fml.org
+To: rudo@nuinui.net
+Reply-To: rudo@nuinui.net
+Subject: Re: [elena:00300] test 01
+ appended_mesg
+Message-Id: <20010102080803.1BCBE15024@iris.fml.org>
+Date: Tue, 2 Jan 2001 17:08:03 +0900 (JST)
+
+test message
+
+-- rudo's mabuachi
+
diff --git a/regress/simulation/main.cf b/regress/simulation/main.cf
new file mode 100644
index 00000000..9c501bf1
--- /dev/null
+++ b/regress/simulation/main.cf
@@ -0,0 +1,25 @@
+version = test
+
+config_dir = $pwd/fml/etc
+
+prefix_dir = $pwd
+
+libexec_dir = $prefix_dir/fml/libexec
+
+lib_dir = $prefix_dir/fml/lib
+ $prefix_dir/cpan/lib
+
+# site local
+local_lib_dir = $prefix_dir/site_local
+
+
+# default_config.cf
+default_config = $config_dir/default_config.cf.ja
+
+
+# default domain
+default_domain = fml.org
+
+
+# domain specific configurations
+domain_default_config = $config_dir/domains/__domain__/config.cf
diff --git a/regress/simulation/re.test.sh b/regress/simulation/re.test.sh
new file mode 100755
index 00000000..3f7a8524
--- /dev/null
+++ b/regress/simulation/re.test.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# $Id$
+#
+
+cd .. || exit 1
+pwd
+cat regress/example.re |\
+perl -w fml/libexec/fmlwrapper \
+ --params pwd=$PWD \
+ -c $PWD/regress/main.cf \
+ /var/spool/ml/elena
+
+echo "-- exit code: $?"
+
+exit 0
+
diff --git a/regress/simulation/test.sh b/regress/simulation/test.sh
new file mode 100755
index 00000000..cb7d2c37
--- /dev/null
+++ b/regress/simulation/test.sh
@@ -0,0 +1,19 @@
+#!/bin/sh
+#
+# $Id$
+#
+
+pwd=`pwd`
+
+cd ../.. || exit 1
+pwd
+cat $pwd/example |\
+perl -w fml/libexec/fmlwrapper \
+ --params pwd=$PWD \
+ -c $pwd/main.cf \
+ /var/spool/ml/elena
+
+echo "-- exit code: $?"
+
+exit 0
+