Files
cld2/internal/compile_and_test_all.sh
andrewhayden@google.com b2c2d34ea7 Remove the old 0715, 0122 and 0604 data sets for Chrome.
Adjust scripts accordingly and eliminate old unittest file as well.
As of this revision, the default for compilation in all the scripts
EXCEPT for compile_full.sh is the 20141015 dataset. The compile_full.sh
script still builds the most recent pre-20141015 data set, and should
also be updated soon.

The suffix (0122, 0715, 0604, or 20141015) has simply been deleted from
all affected filenames, e.g.:
  cld2_generated_deltaoctachrome0122.cc -> cld2_generated_deltaoctachrome.cc

Moving forward the intention is not keep the old data files around. Repository
history can be used to check out old versions of data files as necessary.

The clean.sh script has also been updated with the names of the new executables
produced in the compilation and testing process along with the svn:ignore
propset.

In the next commit, the compile20141015 will become compile.sh.



git-svn-id: https://cld2.googlecode.com/svn/trunk@190 b252ecd4-b096-bf77-eb8e-91563289f87e
2014-11-06 22:49:10 +00:00

62 lines
2.6 KiB
Bash
Executable File

#!/bin/sh
#
# Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http:# www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -e
trap 'echo "FAILED!" && exit 1' INT TERM EXIT
# ----------------------------------------------------------------------------
echo "--> [1 of 7] Invoking: compile.sh..."
./compile20141015.sh
echo "--> [2 of 7] Testing results of compile.sh..."
echo "--> compact_lang_det_test_chrome_2... "
echo "this is some english text" | ./compact_lang_det_test_chrome_2
echo "--> compact_lang_det_test_chrome_16... "
echo "this is some english text" | ./compact_lang_det_test_chrome_16
echo "--> cld2_unittest_chrome_2... "
./cld2_unittest_chrome_2 > /dev/null
echo "--> cld2_unittest_avoid_chrome_2... "
./cld2_unittest_avoid_chrome_2 > /dev/null
# ----------------------------------------------------------------------------
echo "--> [3 of 7] Invoking: compile_libs.sh..."
./compile_libs.sh
# ----------------------------------------------------------------------------
echo "--> [4 of 7] Invoking: compile_full.sh..."
./compile_full.sh
echo "--> [5 of 7] Testing results of compile_full.sh..."
echo "--> compact_lang_det_test_full... "
echo "this is some english text" | ./compact_lang_det_test_full
echo "--> cld2_unittest_full... "
./cld2_unittest_full > /dev/null
echo "--> cld2_unittest_full_avoid... "
./cld2_unittest_full_avoid > /dev/null
# ----------------------------------------------------------------------------
echo "--> [6 of 7] Invoking: compile_dynamic.sh..."
./compile_dynamic.sh
echo "--> [6 of 7] Dumping dynamic data to cld2_data.bin..."
./cld2_dynamic_data_tool --dump cld2_data.bin
echo "--> [6 of 7] Verifying dynamic data in cld2_data.bin..."
./cld2_dynamic_data_tool --verify cld2_data.bin
echo "--> [7 of 7] Testing results of compile_dynamic.sh..."
echo "--> compact_lang_det_dynamic_test_chrome... "
echo "this is some english text" | ./compact_lang_det_dynamic_test_chrome --data-file cld2_data.bin
echo "--> cld2_dynamic_unittest... "
./cld2_dynamic_unittest --data-file cld2_data.bin > /dev/null
trap - INT TERM EXIT
echo "All libraries compiled and all tests passed!"