From bd1bdbbccb50d85acb8a6a481ab40f0a05bfb053 Mon Sep 17 00:00:00 2001 From: fukachan Date: Wed, 24 Jan 2001 03:20:52 +0000 Subject: simulation tools --- regress/simulation/alltest.sh | 15 +++++++++++++++ regress/simulation/example | 19 +++++++++++++++++++ regress/simulation/example.re | 19 +++++++++++++++++++ regress/simulation/main.cf | 25 +++++++++++++++++++++++++ regress/simulation/re.test.sh | 17 +++++++++++++++++ regress/simulation/test.sh | 19 +++++++++++++++++++ 6 files changed, 114 insertions(+) create mode 100755 regress/simulation/alltest.sh create mode 100644 regress/simulation/example create mode 100644 regress/simulation/example.re create mode 100644 regress/simulation/main.cf create mode 100755 regress/simulation/re.test.sh create mode 100755 regress/simulation/test.sh 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: +Received: from hikari.fml.org (hikari.fml.org [192.168.1.6]) + by elena.fml.org (Postfix) with ESMTP id C995C1D8C9 + for ; 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 ; 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: +Received: from hikari.fml.org (hikari.fml.org [192.168.1.6]) + by elena.fml.org (Postfix) with ESMTP id C995C1D8C9 + for ; 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 ; 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 + -- cgit v1.2.1