Commands were tested on RedHat Linux version 4.2 using the bash shell. Except where noted, they will probably work on most systems. Commands like ps and tar vary wildly on what options you should use on each platform. Use common sense before typing in these commands.
各コマンドは bash シェルによる RedHat Linux version 4.2 でテスト されています。注意書きの箇所を除いてはほとんどのシステムで動きます。 ps とか tar などの コマンドはそれぞれのプラットホームにおいてどのようなオプションを 使っているかで異なります。これらのコマンドを入力する場合には 常識に従いましょう。
For a fresh install or upgrading from previous releases of Postgres:
Postgres の 新らしく導入した場合または以前のリリースからの更新に対して は以下の手順にしたがって下さい。
Postgres Regression の構成
The file /usr/src/pgsql/src/test/regress/README has detailed instructions for running and interpreting the regression tests. A short version follows here:
/usr/src/pgsql/src/test/regress/README ファイルに regression テストを行い理解するための詳細な指示が書いてあります。 要約すると以下のようになります。
If the postmaster is not already running, start the postmaster on an available window by typing
postmasteror start the postmaster daemon running in the background by typing
cd nohup postmaster > regress.log 2>&1 &
postmaster が起動していない場合、使用できるウィンドウから
postmasterと入力して起動させます。あるいは postmaster デーモンを バックグランドで起動させるために
cd nohup postmaster > regress.log 2>&1 &と入力します。
Run postmaster from your Postgres super user account (typically account postgres).
postmaster を Postgres スーパユーザ アカウント(通常は postgres)で起動します。
Note: Do not run postmaster from the root account.
決して postmaster をルートアカウントで 起動してはいけません。
If you have previously invoked the regression test, clean up the working directory with:
cd /usr/src/pgsql/src/test/regress gmake clean
以前に regression テストを実行したことがある場合は 以下のようにして作業ディレクトリをクリアします。
cd /usr/src/pgsql/src/test/regress gmake clean
You do not need to type "gmake clean" if this is the first time you are running the tests.
始めてテストを行う場合であれば "gmake clean" と入力する 必要はありません。
Build the regression test. Type
cd /usr/src/pgsql/src/test/regress gmake all
regression テストを組み立てるためには以下を入力します。
cd /usr/src/pgsql/src/test/regress gmake all
Run the regression tests. Type
cd /usr/src/pgsql/src/test/regress gmake runtest
テストの実行です。以下を入力します。
cd /usr/src/pgsql/src/test/regress gmake runtest
You should get on the screen (and also written to file ./regress.out) a series of statements stating which tests passed and which tests failed. Please note that it can be normal for some of the tests to "fail". For the failed tests, use diff to compare the files in directories ./results and ./expected. If float8 failed, type something like:
cd /usr/src/pgsql/src/test/regress diff -w expected/float8.out results
どのテストに通ったり失敗したことを示す一連の情報が画面に表示 されます。(同時に ./regress.out ファイルにも書かれます。) いくつかのテストで失敗することがあるのは普通と思って下さい。 テストに失敗したものは、diff を使って ./results と ./expected ディレクトリにあるファイルを比較します。float8 が失敗した場合は、 以下のように入力します。
cd /usr/src/pgsql/src/test/regress diff -w expected/float8.out results
After running the tests and examining the results, type
destroydb regression cd /usr/src/pgsql/src/test/regress gmake cleanto recover the temporary disk space used by the tests.
テストを実行した後は、
destroydb regression cd /usr/src/pgsql/src/test/regress gmake cleanと入力します。