]>
git.proxmox.com Git - ceph.git/blob - ceph/src/erasure-code/jerasure/jerasure/Examples/time_all_gfs_argv_init.sh
3 # Copyright (c) 2013, James S. Plank and Kevin Greenan
6 # Jerasure - A C/C++ Library for a Variety of Reed-Solomon and RAID-6 Erasure
9 # Revision 2.0: Galois Field backend now links to GF-Complete
11 # Redistribution and use in source and binary forms, with or without
12 # modification, are permitted provided that the following conditions
15 # - Redistributions of source code must retain the above copyright
16 # notice, this list of conditions and the following disclaimer.
18 # - Redistributions in binary form must reproduce the above copyright
19 # notice, this list of conditions and the following disclaimer in
20 # the documentation and/or other materials provided with the
23 # - Neither the name of the University of Tennessee nor the names of its
24 # contributors may be used to endorse or promote products derived
25 # from this software without specific prior written permission.
27 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
29 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
30 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
31 # HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
32 # INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
33 # BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
34 # OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
35 # AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
37 # WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
38 # POSSIBILITY OF SUCH DAMAGE.
40 GF_COMPLETE_DIR
=/usr
/local
/bin
41 GF_METHODS
=${GF_COMPLETE_DIR}/gf_methods
49 ${GF_METHODS} $w -B -L |
awk -F: '{ if ($1 == "w='$w'") print $2; }' |
51 echo "Testing ${k} ${m} ${w} ${seed} ${ITERATIONS} ${BUFSIZE} ${method}"
52 .
/reed_sol_time_gf
${k} ${m} ${w} ${seed} ${ITERATIONS} ${BUFSIZE} ${method} |
tail -n 2
53 if [[ $?
!= "0" ]]; then
54 echo "Failed test for ${k} ${m} ${w} ${seed} ${ITERATIONS} ${BUFSIZE} ${method}"
59 if [[ $?
== "1" ]]; then
64 echo "Passed all tests!"