From 8a00021b2ab5529640e5acaca30a27cdaca04178 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 13 Jul 2016 16:10:28 +0200 Subject: Integrate tests into autotools build system Add automake files for the test binaries. If configured to do so, install the test binaries to libexec/mtd-utils and use autoconf to fix the paths in the test scripts. Signed-off-by: David Oberhollenzer Signed-off-by: Richard Weinberger --- tests/ubi-tests/runtests.sh | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100755 tests/ubi-tests/runtests.sh (limited to 'tests/ubi-tests/runtests.sh') diff --git a/tests/ubi-tests/runtests.sh b/tests/ubi-tests/runtests.sh deleted file mode 100755 index 539ef9d..0000000 --- a/tests/ubi-tests/runtests.sh +++ /dev/null @@ -1,36 +0,0 @@ -#!/bin/sh -euf - -tests="mkvol_basic mkvol_bad mkvol_paral rsvol io_basic io_read io_update io_paral volrefcnt" - -fatal() -{ - echo "Error: $1" 1>&2 - echo "FAILURE" - exit 1 -} - -usage() -{ - cat 1>&2 < -Example: - ${0##*/} /dev/ubi1 - test /dev/ubi1. -EOF -} - -if [ "$#" -lt 1 ]; then - usage - exit 1 -fi - -ubidev="$1" -[ -c "$ubidev" ] || fatal "$ubidev is not character device" - -for t in $tests; do - echo "Running $t $ubidev" - "./$t" "$ubidev" || fatal "$t failed" -done - -echo "SUCCESS" -- cgit v1.2.3