Erlang下编译和测试openpoker

openpoker是一个基于Erlang开发的开源网络棋牌类游戏服务端

1)打开一个已创建mnesia schema的节点,比如master1

2)进入openpoker下的src目录(可以用我前面介绍的方法自动设定到该目录)

2)执行make:all(). 编译所有module到最新

3) 执行schema:install([node()]).

4) 执行test:all().

5)可以用appmon和tv等图形工具查看节点和表的状态

Erlang (BEAM) emulator version 5.6.3 [async-threads:0]

f:/ttttt/openpoker

Eshell V5.6.3  (abort with ^G)

(master1@xy)1> pwd().

f:/ttttt/openpoker

ok

(master1@xy)2> cd("./src").

f:/ttttt/openpoker/src

ok

(master1@xy)3> make:all().

Recompile: betting

Recompile: bits

Recompile: blinds

Recompile: bot

Recompile: counter

Recompile: deal_cards

Recompile: deck

Recompile: delayed_start

Recompile: fixed_limit

Recompile: game

Recompile: gateway

Recompile: hand

Recompile: id

Recompile: ircdb

Recompile: lang

Recompile: login

Recompile: monitor

Recompile: multibot

Recompile: observer

Recompile: player

Recompile: pot

Recompile: proto

Recompile: schema

Recompile: server

Recompile: showdown

Recompile: tcp_server

Recompile: util

Recompile: visitor

up_to_date

(master1@xy)4> schema:install([node()]).

=INFO REPORT==== 17-Jun-2008::09:45:49 ===

    application: mnesia

    exited: stopped

    type: temporary

ok

(master1@xy)5> test:all().

Starting a port server on 10000...

Starting a port server on 10000...

Starting a port server on 10000...

238: CHAT: 0: Game is cancelled, not enough players

238: CANCEL

238: JOIN: 4 at seat#2

238: JOIN: 3 at seat#1

238: CHAT: 0: Game is starting

238: START

238: DEALER: seat#2

238: SB: seat#1

238: BB: seat#2

238: BET: 3, 5.00         

238: BET: 4, 10.00        

238: CARD: 3

238: CARD: 4

238: CARD: 3

238: CARD: 4

238: STAGE: 1

238: STATE: 3 = 2

238: WIN: 4, 15.00        

238: END

Starting a port server on 10000...

Starting a port server on 10000...

ok

(master1@xy)6>appmon:start().

{ok,<0.9548.0>}

(master1@xy)7>tv:start().

<0.9561.0>

(master1@xy)8>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值