Test project setup with vagrant. Purpose is to test different versions of OpenOffice and LibreOffice to measure performance.
#!/bin/bash
OFFICE_VERSIONS=(\
'4.4.1.2' \
'4.3.6.2' \
'4.2.8.2' \
'4.1.6.2' \
'4.1.1' \
'4.0.6.2' \
'4.0.1' \
'3.6.7.2' \
'3.5.7.2' \
'3.4.6.2' \
);
OFFICE_DEB_FILES=(\
'LibreOffice_4.4.1.2_Linux_x86_deb' \
'LibreOffice_4.3.6.2_Linux_x86_deb' \
'LibreOffice_4.2.8.2_Linux_x86_deb' \
'LibreOffice_4.1.6.2_Linux_x86_deb' \
'Apache_OpenOffice_4.1.1_Linux_x86_install-deb_en-US' \
'LibreOffice_4.0.6.2_Linux_x86_deb' \
'Apache_OpenOffice_4.0.1_Linux_x86_install-deb_en-US' \
'LibO_3.6.7.2_Linux_x86_install-deb_en-US' \
'LibO_3.5.7rc2_Linux_x86_install-deb_en-US' \
'LibO_3.4.6rc2_Linux_x86_install-deb_en-US' \
);
for (( i=0; i<${#OFFICE_VERSIONS[@]}; i++)); do
echo "Start setup for Office ${OFFICE_DEB_FILES[$i]}";
vagrant halt
vagrant destroy --force
vagrant init
OFFICE_VERSION="${OFFICE_VERSIONS[$i]}" \
OFFICE_DEB_FILE="${OFFICE_DEB_FILES[$i]}" \
vagrant up
sleep 10;
vagrant ssh --command "cd /vagrant_data/; ./ooo.sh ${OFFICE_DEB_FILES[$i]}; ./execute_test_soffice.sh ${OFFICE_DEB_FILES[$i]};"
done
For document conversion jodconverter library was used.
java -jar ../jodconverter-2.2.2/lib/jodconverter-cli-2.2.2.jar input/${filename}.odt result/${filename}.pdf 2>> execute_test_log.txt
Results:
Complete test results can be found in the repository.