"Fossies" - the Fresh Open Source Software Archive

Member "detox-1.4.5/tests/tests/legacy-max_32/test.sh" (15 Aug 2021, 1351 Bytes) of package /linux/privat/detox-1.4.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "test.sh": 1.4.2_vs_1.4.3.

    1 #!/usr/bin/env bash
    2 #
    3 # Subset of legacy regression tests: max_32
    4 #
    5 
    6 set -e
    7 
    8 if [ -z "$TESTBASE" ] ; then
    9     echo TESTBASE needs to be passed via the env
   10     exit 1
   11 fi
   12 
   13 . $TESTBASE/test-functions
   14 
   15 DETOX=$1
   16 TABLEPATH=$(dirname $TESTBASE)/table
   17 METHOD1=safe
   18 METHOD2=wipeup
   19 METHOD3=max-length-32
   20 
   21 # ---------------------------------------------------------------------------
   22 
   23 INPUT="___________underscore_______________________x"
   24 OUTPUT="underscore_x"
   25 
   26 test_sequence "$DETOX" "$INPUT" "$OUTPUT" "$TABLEPATH" "$METHOD1" "$METHOD2" "$METHOD3"
   27 
   28 # ---------------------------------------------------------------------------
   29 
   30 INPUT="..........how.....does.....this....translate......"
   31 OUTPUT="..........how.....does.....this."
   32 
   33 test_sequence "$DETOX" "$INPUT" "$OUTPUT" "$TABLEPATH" "$METHOD1" "$METHOD2" "$METHOD3"
   34 
   35 # ---------------------------------------------------------------------------
   36 
   37 INPUT="_-_-_-_-_-dotted-_-_-_-_line.....part......two......."
   38 OUTPUT="dotted-line.....part......two."
   39 
   40 test_sequence "$DETOX" "$INPUT" "$OUTPUT" "$TABLEPATH" "$METHOD1" "$METHOD2" "$METHOD3"
   41 
   42 # ---------------------------------------------------------------------------
   43 
   44 INPUT="registered trademark symbol, ®, is a typographic symbol"
   45 OUTPUT="registered_trademark_symbol,_®,"
   46 
   47 test_sequence "$DETOX" "$INPUT" "$OUTPUT" "$TABLEPATH" "$METHOD1" "$METHOD2" "$METHOD3"
   48