Changeset 1549 in tailor for test-scripts/test-darcs2aegis-simple.sh
- Timestamp:
- 05/24/08 16:31:33 (5 years ago)
- Hash name:
- 20080524143133-bb3d1-18ed85db6c0d8222f85ee1cc0ba6425e80f685dd
- File:
-
- 1 edited
-
test-scripts/test-darcs2aegis-simple.sh (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
test-scripts/test-darcs2aegis-simple.sh
r1548 r1549 3 3 # Copyright (C) 2008 Walter Franzini 4 4 # 5 5 6 6 7 here=`pwd` … … 14 15 pass() 15 16 { 17 echo "PASSED:" 16 18 exit 0 17 19 } … … 61 63 if test $? -ne 0; then no_result; fi 62 64 65 cat > $work/darcs-repo/bar.txt <<EOF 66 This is bar.txt 67 EOF 68 if test $? -ne 0; then no_result; fi 69 70 darcs add bar.txt --repodir=$work/darcs-repo > log 2>&1 71 if test $? -ne 0; then cat log; no_result; fi 72 63 73 darcs record --repodir=$work/darcs-repo -a -A Nobody --ignore-time \ 64 74 -m "second commit" > log 2>&1 … … 71 81 EOF 72 82 if test $? -ne 0; then no_result; fi 83 84 darcs mv bar.txt baz.txt --repodir=$work/darcs-repo > log 2>&1 85 if test $? -ne 0; then cat log; no_result; fi 73 86 74 87 darcs record --repodir=$work/darcs-repo -a -A Nobody --ignore-time \ … … 190 203 191 204 activity="run tailor" 205 python $here/tailor -c $work/tailor.conf > tailor.log 2>&1 206 if test $? -ne 0; then cat tailor.log; fail; fi 207 208 cat > $work/ok <<EOF 209 1 10 initial commit 210 2 11 second commit 211 3 12 third commit 212 EOF 213 if test $? -ne 0; then no_result; fi 214 215 activity="check aegis project history" 216 aegis -list project_history -unformatted 2> log | cut -d\ -f 1,7- > history 217 if test $? -ne 0; then cat log; no_result; fi 218 219 diff ok history 220 if test $? -ne 0; then cat tailor.log; fail; fi 221 222 # 223 # add more darcs changes 224 # 225 cat > $work/darcs-repo/bar.txt <<EOF 226 A simple text file 227 wit some more text. 228 more text again! 229 ancora piu\` test 230 EOF 231 if test $? -ne 0; then no_result; fi 232 233 darcs remove foo.txt --repodir=$work/darcs-repo > log 2>&1 234 if test $? -ne 0; then cat log; no_result; fi 235 236 cat > $work/logfile <<EOF 237 fourth commit 238 This text is now 239 the description of the aegis change 240 splitted on multiple lines. 241 EOF 242 if test $? -ne 0; then no_result; fi 243 244 darcs record --repodir=$work/darcs-repo -a -A Nobody --ignore-time \ 245 --logfile $work/logfile > log 2>&1 246 if test $? -ne 0; then cat log; no_result; fi 247 248 activity="run tailor again" 192 249 python $here/tailor -c $work/tailor.conf > log 2>&1 193 250 if test $? -ne 0; then cat log; fail; fi 194 251 252 cat > $work/ok <<EOF 253 1 10 initial commit 254 2 11 second commit 255 3 12 third commit 256 4 13 fourth commit 257 EOF 258 if test $? -ne 0; then no_result; fi 259 195 260 activity="check aegis project history" 196 aegis -list project_history -unformatted 197 if test $? -ne 0; then cat log; no_result; fi 261 aegis -list project_history -unformatted 2> log | cut -d\ -f 1,7- > history 262 if test $? -ne 0; then cat log; no_result; fi 263 264 diff ok history 265 if test $? -ne 0; then fail; fi 266 267 cat > $work/ok <<EOF 268 brief_description = "fourth commit"; 269 description = "This text is now the description of the aegis change splitted on\n\\ 270 multiple lines."; 271 cause = external_improvement; 272 test_exempt = true; 273 test_baseline_exempt = true; 274 regression_test_exempt = true; 275 architecture = 276 [ 277 "unspecified", 278 ]; 279 copyright_years = 280 [ 281 `date +%Y`, 282 ]; 283 EOF 284 if test $? -ne 0; then no_result; fi 285 286 activity="check project content" 287 aegis -ca -l 13 > $work/change_attr 2> log 288 if test $? -ne 0; then cat log; no_result; fi 289 290 diff ok change_attr 291 if test $? -ne 0; then fail; fi 292 198 293 199 294 pass
Note: See TracChangeset
for help on using the changeset viewer.
