Commit 3be9f4cd authored by Claes's avatar Claes Committed by Esteban Blanc

Docker files for project pwrtest02

parent 56cc1e9e
......@@ -17,6 +17,9 @@ project/pwrdemo/src/login/initvol.pwr_com
project/pwrtest01/bld
project/pwrtest01/src/login/initdir.pwr_com
project/pwrtest01/src/login/initvol.pwr_com
project/pwrtest02/bld
project/pwrtest02/src/login/initdir.pwr_com
project/pwrtest02/src/login/initvol.pwr_com
*.db
*.db.lock
*.gjl
......
......@@ -41,8 +41,8 @@ else
fi
platform=${hw:3}_${os:3}
#srcdir=$pwre_croot/src/tools/docker/pwrtest02
srcdir=/home/claes/wb
srcdir=$pwre_croot/src/tools/docker/pwrtest02
#srcdir=/home/claes/wb
export pwrp_root=$pwre_croot/project/pwrtest02
broot=$pwre_broot/$os/$hw/bld/project/pwrtest02/bld
......
ARG RELEASE=debian:10
FROM $RELEASE
ARG INSTALL_UPDATE
ARG INSTALL_PWR
ARG PKG_PWR
ENV DISPLAY :1
ENV DEBIAN_FRONTEND none_interactive
COPY ./pwrtest02/create_project.sh ./pwrtest02/configure_cvolpwrtest02.pwr_com ./pwrtest02/configure_directory.pwr_com ./pwrtest02/configure_volpwrtest02.pwr_com ./pwrtest02/pwrtest02.tar.gz ./pwrtest02/wa_testall.sh ./dummy_display_xorg.conf ./$PKG_PWR ./
RUN $INSTALL_UPDATE
RUN $INSTALL_PWR
RUN apt-get install -y python
RUN apt-get install -y make pkg-config
RUN apt-get install -y xserver-xorg-video-dummy
RUN dpkg -i $PKG_PWR
RUN ./create_project.sh create
This diff is collapsed.
main()
verify(0);
string nname;
string pname="pwrtest02";
string rvol = "VolPwrtest02";
string cvol = "CVolPwrtest02";
create volume/database=BerkeleyDB/name='rvol'/class=$RootVolume/identity="0.254.254.210"
create volume/database=WbLoad/name='cvol'/class=$ClassVolume/identity="0.0.240.210"
nname = get_node_name();
CreateObject(rvol, "RootVolumeConfig", "_O254.254.254.253:0", 1);
CreateObject(cvol, "ClassVolumeConfig", rvol, 3);
CreateObject("System", "$System", cvol, 3);
SetAttribute("System.SystemName", p1);
SetAttribute("System.SystemGroup", "Common");
CreateObject("Bus999", "BusConfig", "System", 3);
SetAttribute("Bus999.BusNumber", 999);
CreateObject("Pwrt02", "NodeConfig", "Bus999", 1);
SetAttribute("Bus999-Pwrt02.NodeName", nname);
SetAttribute("Bus999-Pwrt02.Address", "127.0.0.1");
SetAttribute("Bus999-Pwrt02.OperatingSystem", 128);
RenameObject("Bus999-Pwrt02-O1", rvol);
save
endmain
\ No newline at end of file
This diff is collapsed.
#!/bin/bash
ver="V5.7"
pname="pwrtest02"
proot="/usr/pwrp/$pname"
ls -l ./pwrtest02.tar.gz
Xorg -noreset +extension GLX +extension RANDR +extension RENDER -config ./dummy_display_xorg.conf :99 &
sleep 20
export DISPLAY=:99
export pwra_db=/usr/pwrp/adm/db
cat $pwra_db/pwr_projectlist.dat
source $pwra_db/pwr_setup.sh
pwrp set base $ver
#if [ "$1" == "create" ]; then
pwrp create project $pname $ver $proot "Wb test project"
echo $pname $ver $proot $pname \"Wb test project\" >> $pwra_db/pwr_projectlist.dat
echo Vol$pname 0.254.254.210 $pname >> $pwra_db/pwr_volumelist.dat
echo CVol$pname 0.0.240.210 $pname >> $pwra_db/pwr_volumelist.dat
#fi
dir=`eval pwd`
source $pwra_db/pwra_env.sh set project $pname
cd $dir
echo "* Configure directory"
ls /configure_directory.pwr_com
ls -l $pwrp_db/directory.wb_load
wb_cmd @/configure_directory $pname
ls -l $pwrp_db/directory.wb_load
echo "* Configure class volume"
ls -l $pwrp_db/cvolpwrtest02.wb_load
ls -l /configure_cvolpwrtest02.pwr_com
wb_cmd -c cvolpwrtest02 @/configure_cvolpwrtest02
ls -l $pwrp_db/cvolpwrtest02.wb_load
wb_cmd -q create snapshot/file=\"$pwrp_db/cvol$pname.wb_load\"/out=\"$pwrp_load/cvol$pname.dbs\"
co_convert -so -d $pwrp_inc $pwrp_db/cvol$pname.wb_load
echo "* Configure root volume"
ls -l $pwrp_db/volpwrtest02.db
ls -l /configure_volpwrtest02.pwr_com
wb_cmd -v vol$pname @/configure_volpwrtest02
echo "* Build node pwrt02"
wb_cmd -v vol$pname build node/name=pwrt02
mv /pwrtest02.tar.gz $pwrp_exe/
cd $pwrp_exe
tar -xzf pwrtest02.tar.gz
echo "* Run test programs"
cd $dir
export PYTHONPATH=$pwr_exe
/wa_testall.sh
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment