Show More
@@ -104,6 +104,27 b' run_one() {' | |||
|
104 | 104 | return $fail |
|
105 | 105 | } |
|
106 | 106 | |
|
107 | # list of prerequisite programs | |
|
108 | # stuff from coreutils (cat, rm, etc) are not tested | |
|
109 | prereqs="python merge diff grep unzip md5sum gunzip sed" | |
|
110 | missing='' | |
|
111 | for pre in $prereqs ; do | |
|
112 | if type $pre > /dev/null 2>&1 ; then | |
|
113 | : prereq exists | |
|
114 | else | |
|
115 | missing="$pre $missing" | |
|
116 | fi | |
|
117 | done | |
|
118 | ||
|
119 | if [ "$missing" != '' ] ; then | |
|
120 | echo "ERROR: the test suite needs some programs to execute correctly." | |
|
121 | echo "The following programs are missing: " | |
|
122 | for pre in $missing; do | |
|
123 | echo " $pre" | |
|
124 | done | |
|
125 | exit 1 | |
|
126 | fi | |
|
127 | ||
|
107 | 128 | TESTS="$*" |
|
108 | 129 | if [ -z "$TESTS" ] ; then |
|
109 | 130 | TESTS=`ls test-* | grep -v "[.~]"` |
General Comments 0
You need to be logged in to leave comments.
Login now