run_all_samples.bat
上传用户:xfwatch
上传日期:2020-12-14
资源大小:872k
文件大小:3k
- @echo off
- rem RUN THE FOOAPP SERVER
- cd %BLACKTIE_HOME%examplesxatmifooapp
- call generate_server -Dservice.names=BAR -Dserver.includes=BarService.c
- IF %ERRORLEVEL% NEQ 0 exit -1
- set BLACKTIE_CONFIGURATION=win32
- call btadmin startup
- IF %ERRORLEVEL% NEQ 0 exit -1
- set BLACKTIE_CONFIGURATION=
- rem RUN THE C CLIENT
- call generate_client -Dclient.includes=client.c
- client
- IF %ERRORLEVEL% NEQ 0 exit -1
- rem RUN THE JAVA CLIENT
- cd %BLACKTIE_HOME%examplesjab
- echo hello | mvn test
- IF %ERRORLEVEL% NEQ 0 exit -1
- rem RUN THE ADMIN JMX CLIENT
- cd %BLACKTIE_HOME%examplesadminjmx
- (echo 0& echo 0& echo 0& echo 0& echo 1) | mvn test
- IF %ERRORLEVEL% NEQ 0 exit -1
- rem RUN THE ADMIN JMX CLIENT
- cd %BLACKTIE_HOME%examplesadminjmx
- (echo 0& echo 0& echo 0& echo 0& echo 2) | mvn test
- IF %ERRORLEVEL% NEQ 0 exit -1
- rem PICK UP THE CLOSING SERVER
- @ping 127.0.0.1 -n 3 -w 1000 > nul
- rem RUN THE FOOAPP SERVER AGAIN
- cd %BLACKTIE_HOME%examplesxatmifooapp
- set BLACKTIE_CONFIGURATION=win32
- call btadmin startup
- IF %ERRORLEVEL% NEQ 0 exit -1
- set BLACKTIE_CONFIGURATION=
- rem SHUTDOWN THE SERVER RUNNING THE XATMI ADMIN CLIENT
- cd %BLACKTIE_HOME%examplesadminxatmi
- call generate_client -Dclient.includes=client.c
- (echo 0& echo 0& echo 0& echo 0& echo 1) | client
- rem SHUTDOWN THE SERVER RUNNING THE XATMI ADMIN CLIENT
- cd %BLACKTIE_HOME%examplesadminxatmi
- call generate_client -Dclient.includes=client.c
- (echo 0& echo 0& echo 0& echo 0& echo 2) | client
- rem PICK UP THE CLOSING SERVER
- @ping 127.0.0.1 -n 3 -w 1000 > nul
- rem RUN THE SECURE SERVER
- cd %BLACKTIE_HOME%examplessecurity
- call generate_server -Dservice.names=SECURE -Dserver.includes=BarService.c
- IF %ERRORLEVEL% NEQ 0 exit -1
- set BLACKTIE_CONFIGURATION_DIR=serv
- set BLACKTIE_CONFIGURATION=win32
- call btadmin startup secure
- IF %ERRORLEVEL% NEQ 0 exit -1
- set BLACKTIE_CONFIGURATION=
- set BLACKTIE_CONFIGURATION_DIR=
- rem RUN THE "guest" USER CLIENT
- call generate_client -Dclient.includes=client.c
- set BLACKTIE_CONFIGURATION_DIR=guest
- client
- rem This test is expected to fail so make sure the exit status was not 0
- IF %ERRORLEVEL% EQU 0 exit -1
- set BLACKTIE_CONFIGURATION_DIR=
- rem RUN THE "dynsub" USER CLIENT
- set BLACKTIE_CONFIGURATION_DIR=dynsub
- client
- IF %ERRORLEVEL% NEQ 0 exit -1
- set BLACKTIE_CONFIGURATION_DIR=
- rem SHUTDOWN THE SERVER RUNNING THE btadmin TOOL
- set BLACKTIE_CONFIGURATION_DIR=serv
- set BLACKTIE_CONFIGURATION=win32
- call btadmin shutdown secure
- IF %ERRORLEVEL% NEQ 0 exit -1
- set BLACKTIE_CONFIGURATION=
- set BLACKTIE_CONFIGURATION_DIR=
- rem RUN THE MDB EXAMPLE
- cd %BLACKTIE_HOME%examplesmdb
- mvn install
- IF %ERRORLEVEL% NEQ 0 exit -1
- rem LET THE USER KNOW THE OUTPUT
- echo "All samples ran OK"