]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: allow to use memory checks for libsmartcols
authorKarel Zak <kzak@redhat.com>
Thu, 23 Nov 2017 14:24:36 +0000 (15:24 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 23 Nov 2017 14:24:36 +0000 (15:24 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/libsmartcols/fromfile
tests/ts/libsmartcols/title

index 311dd7e1e5ca587da55f324c79627446f7b34840..274081ea0e5701e566303471a27deb6a8bdf40ee 100755 (executable)
@@ -24,7 +24,7 @@ TESTPROG="$TS_HELPER_LIBSMARTCOLS_FROMFILE"
 ts_check_test_command "$TESTPROG"
 
 ts_init_subtest "tree"
-$TESTPROG --nlines 10 \
+ts_run $TESTPROG --nlines 10 \
        --tree-id-column 1 \
        --tree-parent-column 2 \
        --column $TS_SELF/files/col-tree \
@@ -39,7 +39,7 @@ $TESTPROG --nlines 10 \
 ts_finalize_subtest
 
 ts_init_subtest "tree-json"
-$TESTPROG --nlines 10 --json \
+ts_run $TESTPROG --nlines 10 --json \
        --tree-id-column 1 \
        --tree-parent-column 2 \
        --column $TS_SELF/files/col-tree \
@@ -54,7 +54,7 @@ $TESTPROG --nlines 10 --json \
 ts_finalize_subtest
 
 ts_init_subtest "tree-middle"
-$TESTPROG --nlines 10 \
+ts_run $TESTPROG --nlines 10 \
        --tree-id-column 0 \
        --tree-parent-column 1 \
        --column $TS_SELF/files/col-id \
@@ -69,7 +69,7 @@ $TESTPROG --nlines 10 \
 ts_finalize_subtest
 
 ts_init_subtest "tree-end"
-$TESTPROG --nlines 10 \
+ts_run $TESTPROG --nlines 10 \
        --tree-id-column 0 \
        --tree-parent-column 1 \
        --column $TS_SELF/files/col-id \
@@ -84,7 +84,7 @@ $TESTPROG --nlines 10 \
 ts_finalize_subtest
 
 ts_init_subtest "trunc"
-$TESTPROG --nlines 10 --width 40 \
+ts_run $TESTPROG --nlines 10 --width 40 \
        --column $TS_SELF/files/col-name \
        --column $TS_SELF/files/col-number \
        --column $TS_SELF/files/col-trunc \
@@ -95,7 +95,7 @@ $TESTPROG --nlines 10 --width 40 \
 ts_finalize_subtest
 
 ts_init_subtest "right"
-$TESTPROG --nlines 10 \
+ts_run $TESTPROG --nlines 10 \
        --column $TS_SELF/files/col-name \
        --column $TS_SELF/files/col-number \
        --column $TS_SELF/files/col-string \
@@ -106,7 +106,7 @@ $TESTPROG --nlines 10 \
 ts_finalize_subtest
 
 ts_init_subtest "right-maxout"
-$TESTPROG --nlines 10 --maxout --width 80\
+ts_run $TESTPROG --nlines 10 --maxout --width 80\
        --column $TS_SELF/files/col-name \
        --column $TS_SELF/files/col-number \
        $TS_SELF/files/data-string \
@@ -115,7 +115,7 @@ $TESTPROG --nlines 10 --maxout --width 80\
 ts_finalize_subtest
 
 ts_init_subtest "strictwidth"
-$TESTPROG --nlines 10 \
+ts_run $TESTPROG --nlines 10 \
        --column $TS_SELF/files/col-name \
        --column $TS_SELF/files/col-strict \
        --column $TS_SELF/files/col-number \
@@ -126,7 +126,7 @@ $TESTPROG --nlines 10 \
 ts_finalize_subtest
 
 ts_init_subtest "noextremes"
-$TESTPROG --nlines 10 --width 45 \
+ts_run $TESTPROG --nlines 10 --width 45 \
        --column $TS_SELF/files/col-name \
        --column $TS_SELF/files/col-noextremes \
        --column $TS_SELF/files/col-number \
@@ -141,7 +141,7 @@ $TESTPROG --nlines 10 --width 45 \
 ts_finalize_subtest
 
 ts_init_subtest "hidden"
-$TESTPROG --nlines 10 \
+ts_run $TESTPROG --nlines 10 \
        --column $TS_SELF/files/col-name \
        --column $TS_SELF/files/col-hidden \
        --column $TS_SELF/files/col-number \
@@ -152,7 +152,7 @@ $TESTPROG --nlines 10 \
 ts_finalize_subtest
 
 ts_init_subtest "wrap"
-$TESTPROG --nlines 10 --width 40 \
+ts_run $TESTPROG --nlines 10 --width 40 \
        --column $TS_SELF/files/col-name \
        --column $TS_SELF/files/col-number \
        --column $TS_SELF/files/col-wrap \
@@ -163,7 +163,7 @@ $TESTPROG --nlines 10 --width 40 \
 ts_finalize_subtest
 
 ts_init_subtest "wrap-tree"
-$TESTPROG --nlines 10 --width 45 \
+ts_run $TESTPROG --nlines 10 --width 45 \
        --tree-id-column 1 \
        --tree-parent-column 2 \
        --column $TS_SELF/files/col-tree \
@@ -178,7 +178,7 @@ $TESTPROG --nlines 10 --width 45 \
 ts_finalize_subtest
 
 ts_init_subtest "wrapnl"
-$TESTPROG --nlines 10 \
+ts_run $TESTPROG --nlines 10 \
        --column $TS_SELF/files/col-name \
        --column $TS_SELF/files/col-number \
        --column $TS_SELF/files/col-wrapnl \
@@ -189,7 +189,7 @@ $TESTPROG --nlines 10 \
 ts_finalize_subtest
 
 ts_init_subtest "wrapnl-tree"
-$TESTPROG --nlines 10 \
+ts_run $TESTPROG --nlines 10 \
        --tree-id-column 1 \
        --tree-parent-column 2 \
        --column $TS_SELF/files/col-tree \
@@ -204,7 +204,7 @@ $TESTPROG --nlines 10 \
 ts_finalize_subtest
 
 ts_init_subtest "raw"
-$TESTPROG --nlines 10 --raw \
+ts_run $TESTPROG --nlines 10 --raw \
        --column $TS_SELF/files/col-name \
        --column $TS_SELF/files/col-number \
        --column $TS_SELF/files/col-trunc \
@@ -215,7 +215,7 @@ $TESTPROG --nlines 10 --raw \
 ts_finalize_subtest
 
 ts_init_subtest "export"
-$TESTPROG --nlines 10 --export \
+ts_run $TESTPROG --nlines 10 --export \
        --column $TS_SELF/files/col-name \
        --column $TS_SELF/files/col-number \
        --column $TS_SELF/files/col-trunc \
@@ -226,7 +226,7 @@ $TESTPROG --nlines 10 --export \
 ts_finalize_subtest
 
 ts_init_subtest "column-separator"
-$TESTPROG --nlines 10 --colsep \| \
+ts_run $TESTPROG --nlines 10 --colsep \| \
        --column $TS_SELF/files/col-name \
        --column $TS_SELF/files/col-number \
        --column $TS_SELF/files/col-trunc \
index a9ba6a4fd06532946ed3e66fad54b0e50c84452e..576aa2d476bdb00fefa78cd6e8ae23a4c632d918 100755 (executable)
@@ -23,6 +23,6 @@ ts_init "$*"
 TESTPROG="$TS_HELPER_LIBSMARTCOLS_TITLE"
 ts_check_test_command "$TESTPROG"
 
-$TESTPROG --width 80 >> $TS_OUTPUT 2>&1
+ts_run $TESTPROG --width 80 >> $TS_OUTPUT 2>&1
 
 ts_finalize