[8a957e] | 1 | ### duplicating box
|
---|
| 2 |
|
---|
| 3 | AT_SETUP([Domain - duplicating box])
|
---|
[718542] | 4 | AT_KEYWORDS([domain,repeat-box])
|
---|
[23b0c2] | 5 |
|
---|
| 6 | file=test.conf
|
---|
| 7 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 8 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 1"], 0, [stdout], [stderr])
|
---|
[3bd460a] | 9 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
[8a957e] | 10 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[caeeb8] | 11 | AT_CHECK([file=test.xyz;sort -n ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/post/test.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[8a957e] | 12 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
[23b0c2] | 13 |
|
---|
| 14 | file=test-x.conf
|
---|
| 15 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 16 | AT_CHECK([../../molecuilder -i $file -o xyz -d "2, 1, 1"], 0, [stdout], [stderr])
|
---|
[3bd460a] | 17 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
[8a957e] | 18 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[caeeb8] | 19 | AT_CHECK([file=test-x.xyz;sort -n ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/post/test-x.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[8a957e] | 20 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
[23b0c2] | 21 |
|
---|
| 22 | file=test-y.conf
|
---|
| 23 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 24 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 2, 1"], 0, [stdout], [stderr])
|
---|
[3bd460a] | 25 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
[8a957e] | 26 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[caeeb8] | 27 | AT_CHECK([file=test-y.xyz;sort -n ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/post/test-y.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[8a957e] | 28 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
[23b0c2] | 29 |
|
---|
| 30 | file=test-z.conf
|
---|
| 31 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 32 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 2"], 0, [stdout], [stderr])
|
---|
[3bd460a] | 33 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
[8a957e] | 34 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
[caeeb8] | 35 | AT_CHECK([file=test-z.xyz;sort -n ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/post/test-z.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
[8a957e] | 36 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
[23b0c2] | 37 |
|
---|
[8a957e] | 38 | AT_CLEANUP
|
---|
[e69c87] | 39 |
|
---|
| 40 |
|
---|
| 41 | AT_SETUP([Domain - duplicating box with Undo])
|
---|
| 42 | AT_XFAIL_IF([/bin/true])
|
---|
[718542] | 43 | AT_KEYWORDS([domain,repeat-box,undo])
|
---|
[e69c87] | 44 |
|
---|
| 45 | file=test.conf
|
---|
| 46 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 47 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 1" --undo], 0, [stdout], [stderr])
|
---|
| 48 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 49 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 50 | AT_CHECK([file=test.xyz;sort -n ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/post/test.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
| 51 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 52 |
|
---|
| 53 | file=test-x.conf
|
---|
| 54 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 55 | AT_CHECK([../../molecuilder -i $file -o xyz -d "2, 1, 1" --undo], 0, [stdout], [stderr])
|
---|
| 56 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 57 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 58 | AT_CHECK([file=test-x.xyz;sort -n ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/post/test-x.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
| 59 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 60 |
|
---|
| 61 | file=test-y.conf
|
---|
| 62 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 63 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 2, 1" --undo], 0, [stdout], [stderr])
|
---|
| 64 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 65 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 66 | AT_CHECK([file=test-y.xyz;sort -n ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/post/test-y.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
| 67 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 68 |
|
---|
| 69 | file=test-z.conf
|
---|
| 70 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 71 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 2" --undo], 0, [stdout], [stderr])
|
---|
| 72 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 73 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 74 | AT_CHECK([file=test-z.xyz;sort -n ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/post/test-z.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
| 75 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 76 |
|
---|
| 77 | AT_CLEANUP
|
---|
| 78 |
|
---|
| 79 |
|
---|
| 80 | AT_SETUP([Domain - duplicating box with Redo])
|
---|
| 81 | AT_XFAIL_IF([/bin/true])
|
---|
[718542] | 82 | AT_KEYWORDS([domain,repeat-box,redo])
|
---|
[e69c87] | 83 |
|
---|
| 84 | file=test.conf
|
---|
| 85 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 86 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 1" --undo --redo], 0, [stdout], [stderr])
|
---|
| 87 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 88 | AT_CHECK([file=test.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 89 | AT_CHECK([file=test.xyz;sort -n ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/post/test.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
| 90 | AT_CHECK([file=test.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 91 |
|
---|
| 92 | file=test-x.conf
|
---|
| 93 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 94 | AT_CHECK([../../molecuilder -i $file -o xyz -d "2, 1, 1" --undo --redo], 0, [stdout], [stderr])
|
---|
| 95 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 96 | AT_CHECK([file=test-x.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 97 | AT_CHECK([file=test-x.xyz;sort -n ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/post/test-x.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
| 98 | AT_CHECK([file=test-x.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 99 |
|
---|
| 100 | file=test-y.conf
|
---|
| 101 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 102 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 2, 1" --undo --redo], 0, [stdout], [stderr])
|
---|
| 103 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 104 | AT_CHECK([file=test-y.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 105 | AT_CHECK([file=test-y.xyz;sort -n ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/post/test-y.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
| 106 | AT_CHECK([file=test-y.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 107 |
|
---|
| 108 | file=test-z.conf
|
---|
| 109 | AT_CHECK([/bin/cp -f ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/pre/test.conf $file], 0)
|
---|
| 110 | AT_CHECK([../../molecuilder -i $file -o xyz -d "1, 1, 2" --undo --redo], 0, [stdout], [stderr])
|
---|
| 111 | AT_CHECK([fgrep "Box domain is now" stdout], 0, [ignore], [ignore])
|
---|
| 112 | AT_CHECK([file=test-z.xyz;sort -n $file | grep -v "Created by" >$file-sorted], 0, [ignore], [ignore])
|
---|
| 113 | AT_CHECK([file=test-z.xyz;sort -n ${abs_top_srcdir}/${AUTOTEST_PATH}/Domain/RepeatBox/post/test-z.xyz | grep -v "Created by" >$file-sorted2], 0, [ignore], [ignore])
|
---|
| 114 | AT_CHECK([file=test-z.xyz; diff $file-sorted $file-sorted2], 0, [ignore], [ignore])
|
---|
| 115 |
|
---|
| 116 | AT_CLEANUP
|
---|