diff INSTALL.FreeBSD @ 290:7842bed901ca

Updated documentation
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 07 May 2010 16:33:12 +0900
parents 6e6ada749a11
children f34646a91dbc
line wrap: on
line diff
--- a/INSTALL.FreeBSD	Fri May 07 15:03:15 2010 +0900
+++ b/INSTALL.FreeBSD	Fri May 07 16:33:12 2010 +0900
@@ -48,4 +48,45 @@
 8) make, run, enjoy :)
 
 
+------------------------------
+app_acct test ADDITIONAL STEPS
+------------------------------
+Here is additional steps in order to run the test for app_acct
 
+1) Install the required packages
+  # pkg_add -v -r postgresql84-client
+  # pkg_add -v -r postgresql84-server
+
+2) Prepare access to the database:
+  # echo postgresql_enable=YES >> /etc/rc.conf
+  # /usr/local/etc/rc.d/postgresql initdb
+  # su - pgsql
+  > /usr/local/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start
+  > /usr/local/bin/createuser root
+  Shall the new user be allowed to create databases? (y/n) y
+  > logout
+  # /usr/local/bin/createdb root
+  # /usr/local/bin/psql root
+  root=# CREATE TABLE incoming_test (
+  root(# recorded_on timestamp with time zone NOT NULL,
+  root(# "Accounting-Record-Type" integer,
+  root(# "Session-Id" bytea, "
+  root(# "Accounting-Record-Number" integer,
+  root(# "Route-Record1" bytea,
+  root(# "Route-Record2" bytea,
+  root(# "Route-Record3" bytea,
+  root(# "Route-Record4" bytea );
+  root=# \q
+
+3) configure the sources
+  # ccmake .
+   BUILD_APP_ACCT:BOOL=ON
+   TEST_APP_ACCT:BOOL=ON
+   TEST_APP_ACCT_CONNINFO:STRING="user=root dbname=root"
+   
+4) run the test
+  # freeDiameter/tests/testappacct -d
+  or
+  # make test
+  
+  
"Welcome to our mercurial repository"