2 # Copyright (C) 2011-2013 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18 # - which log files get copied in the global log?
24 cat > ok.test << 'END'
29 not seen in global log
46 cat top - bot > skip.test << 'END'
51 cat top - bot > todo.test << 'END'
56 cat top - bot > fail.test << 'END'
61 cat top - bot > xpass.test << 'END'
66 cat top - bot > bail.test << 'END'
71 cat top - bot > error.test << 'END'
76 # Created with "dd if=/dev/urandom count=1 | base64-encode"
77 cat > hodgepodge <<'END'
80 512 bytes (512 B) copied, 0.000241092 s, 2.1 MB/s
81 gdivnV4VhL4DOzhE3zULJuun3PwqqQqMdATVcZbIQkNgyRvNBoqqHMBQEs7QsjDbp2nK+Szz
82 EcelGyvXmHrW7yImaom6Yrg95k31VCmp/pGDRnTDwDrcOPJiv9jDReEmTAQkPuqLO+mFNly+
83 DDHM9fNbzGumstsQ3wq3DOXz1pCV3JXwhjeaHSboeEbmr55bX0XHLSKaecctA0rXDXEyZWZ/
84 ODlawSrAXzw0H7a+xBwjnNXZ3zYiwk3x+WQrPqNjb+qXiLLTxAKzx2/KnaFhxkPlte5jPRNB
85 FciDolL+H/10LsCdSzLOrGnY2zH6vL2JMZfxjnb73zWFcdWWE01LTD7wpN5O1MP3+N47lcVe
86 lWbkD04cJvhwxLElYSO24B743GG5EyGYt9SeZRE6xbgwq3fVOS8KqjwGxwi4adSBTtw0CV8W
87 S/6n8dck1vBvjA+qpk0zMSYSqc3+jzW9UiGTmTEIwfw80p/lGNsfjcNBJ86nFkWUnHmrsi8k
88 Dv57sK70mTg239g08f5Uvdga/5UreMBSgB0hUj5sbq57r7B1fsVr0Kag468la8zKy3ZEZ0gX
89 ++sbaJ9WGHhnKvjooeH+4Y6HwAFsdINde++FlCmp4EuNKKEEuXbSKLaOTy3+6pJ2DYdvRCL+
90 frZwxH4hcrw8qh+8IakB02viewZS/qT57v4=
96 echo 'not ok # TODO' >&5
100 cat > skipall.test << 'END'
104 run_make -e IGNORE TESTS="$(echo *.test)" check
107 grep ':.*ok|not seen' test-suite.log && exit 1
109 for s in skip todo fail xpass bail error; do
110 $FGREP "::$s::" test-suite.log
113 grep '^1\.\.0 # SKIP all$' test-suite.log
115 test_suite_contents=$(cat test-suite.log)
116 hodgepodge_contents=$(cat hodgepodge)
117 case $test_suite_contents in
118 *"$hodgepodge_contents"*) ;;