diff options
| author | fukachan <fukachan> | 2001-01-24 03:20:52 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2001-01-24 03:20:52 +0000 |
| commit | bd1bdbbccb50d85acb8a6a481ab40f0a05bfb053 (patch) | |
| tree | d669a683b426dad053d63a208bed980bffd28285 | |
| parent | c05ab7973e00f5fec59ac577937f14e2c18d282f (diff) | |
| download | fml8-bd1bdbbccb50d85acb8a6a481ab40f0a05bfb053.tar.gz fml8-bd1bdbbccb50d85acb8a6a481ab40f0a05bfb053.tar.bz2 fml8-bd1bdbbccb50d85acb8a6a481ab40f0a05bfb053.zip | |
simulation tools
| -rwxr-xr-x | regress/simulation/alltest.sh | 15 | ||||
| -rw-r--r-- | regress/simulation/example | 19 | ||||
| -rw-r--r-- | regress/simulation/example.re | 19 | ||||
| -rw-r--r-- | regress/simulation/main.cf | 25 | ||||
| -rwxr-xr-x | regress/simulation/re.test.sh | 17 | ||||
| -rwxr-xr-x | regress/simulation/test.sh | 19 |
6 files changed, 114 insertions, 0 deletions
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 + |
