From: Ben Pfaff Date: Tue, 26 Oct 2010 03:50:05 +0000 (-0700) Subject: tests: Add keywords to render tests. X-Git-Tag: v0.7.7~177 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9f325b49bfe8d2eb871d35e07be427c9ed29b87;p=pspp-builds.git tests: Add keywords to render tests. This makes it easy to run just the rendering tests with: make check TESTSUITEFLAGS='-k render' --- diff --git a/tests/output/render.at b/tests/output/render.at index b9f8e623..902a5b6b 100644 --- a/tests/output/render.at +++ b/tests/output/render.at @@ -129,6 +129,7 @@ m4_define([RENDER_8X8_2], AT_BANNER([output rendering -- no page breaking]) AT_SETUP([single cell]) +AT_KEYWORDS([render rendering]) AT_DATA([input], [1 1 abc ]) @@ -137,6 +138,7 @@ AT_CHECK([render-test input], [0], [abc AT_CLEANUP AT_SETUP([single cell with border]) +AT_KEYWORDS([render rendering]) AT_DATA([input], [1 1 @abc ]) @@ -148,6 +150,7 @@ AT_CHECK([render-test input], [0], [dnl AT_CLEANUP AT_SETUP([joined columns]) +AT_KEYWORDS([render rendering]) AT_DATA([input], [2 2 1*2 @abcdefg @hij @@ -163,6 +166,7 @@ AT_CHECK([render-test input], [0], [dnl AT_CLEANUP AT_SETUP([3x3, joined rows and columns]) +AT_KEYWORDS([render rendering]) AT_DATA([input], [3 3 1*2 @abc 2*1 @d\ne\nf @@ -182,6 +186,7 @@ AT_CHECK([render-test input], [0], [dnl AT_CLEANUP AT_SETUP([6x6, joined rows and columns]) +AT_KEYWORDS([render rendering]) RENDER_WEAVE_6X6 AT_CHECK([render-test input], [0], [dnl +-+---+-+-+-+ @@ -201,6 +206,7 @@ AT_CHECK([render-test input], [0], [dnl AT_CLEANUP AT_SETUP([3 rows with many joined cells]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [3 19 m4_foreach([x], [a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s], [x @@ -219,6 +225,7 @@ AT_CHECK([render-test input], [0], [dnl AT_CLEANUP AT_SETUP([3 columns with many joined cells]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [3 19 m4_foreach([x], [a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s], [x @@ -270,6 +277,7 @@ s|cd|20| AT_CLEANUP AT_SETUP([joined rows]) +AT_KEYWORDS([render rendering]) AT_DATA([input], [2 2 2*1 @ab\ncd\nef @hij @@ -285,6 +293,7 @@ AT_CHECK([render-test input], [0], [dnl AT_CLEANUP AT_SETUP([5 big narrow cells]) +AT_KEYWORDS([render rendering]) AT_DATA([input], [1 5 @This cell has a lot of text but its minimum width is pretty narrow. @This cell also has a lot of text but its minimum width is pretty narrow. @@ -305,6 +314,7 @@ AT_CHECK([render-test input], [0], [dnl AT_CLEANUP AT_SETUP([9 big narrow cells]) +AT_KEYWORDS([render rendering]) AT_DATA([input], [1 9 @This cell has a lot of text but its minimum width is pretty narrow. @This cell also has a lot of text but its minimum width is pretty narrow. @@ -335,6 +345,7 @@ AT_CHECK([render-test input], [0], [dnl AT_CLEANUP AT_SETUP([2 big cells with new-lines]) +AT_KEYWORDS([render rendering]) AT_DATA([input], [1 2 @PSPP does not place many restrictions on ordering of commands. The main restriction is that variables must be defined before they are otherwise referenced. This section describes the details of command ordering, but most users will have no need to refer to them. PSPP possesses five internal states, called initial, INPUT PROGRAM, FILE TYPE, transformation, and procedure states. @PSPP includes special support\nfor unknown numeric data values.\nMissing observations are assigned\na special value, called the\n``system-missing value''. This\n``value'' actually indicates the\nabsence of a value; it\nmeans that the actual\nvalue is unknown. @@ -365,6 +376,7 @@ AT_CHECK([render-test input], [0], [dnl AT_CLEANUP AT_SETUP([8x8 with many 2x2 joins]) +AT_KEYWORDS([render rendering]) RENDER_8X8_2 AT_CHECK([render-test input], [0],[dnl +---+---+----+----+ @@ -395,6 +407,7 @@ AT_CLEANUP AT_BANNER([output rendering -- horizontal page breaks]) AT_SETUP([breaking row of many small cells]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [1 50 m4_for([x], [1], [50], [1], [@x @@ -411,6 +424,7 @@ AT_CHECK([render-test input], [0], [dnl AT_CLEANUP AT_SETUP([breaking row of many small cells, with headers]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [1 54 2 2 @ha @@ -436,6 +450,7 @@ AT_CHECK([render-test input], [0], [dnl AT_CLEANUP AT_SETUP([breaking row of many medium-size cells]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [1 50 m4_for([x], [1], [50], [1], [@cell x @@ -464,6 +479,7 @@ AT_CHECK([render-test input], [0], [dnl AT_CLEANUP AT_SETUP([breaking row of many medium-size cells, with headers]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [1 52 1 1 header1 @@ -500,6 +516,7 @@ header1|cell|cell|header2 AT_CLEANUP AT_SETUP([breaking row of many big narrow cells]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [1 50 m4_for([x], [1], [50], [1], [@This is cell x in a series of 50. @@ -558,6 +575,7 @@ AT_CHECK([render-test input], [0], [dnl AT_CLEANUP AT_SETUP([breaking 2 rows of many small cells]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [2 50 m4_for([x], [1], [100], [1], [@x @@ -578,6 +596,7 @@ AT_CHECK([render-test input], [0], [dnl AT_CLEANUP AT_SETUP([breaking 3 rows with many joined cells]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [3 49 m4_foreach([var], [a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,dnl @@ -604,6 +623,7 @@ AT_CHECK([render-test input], [0], [dnl AT_CLEANUP AT_SETUP([horz break 6x6, joined rows and columns]) +AT_KEYWORDS([render rendering]) RENDER_WEAVE_6X6 AT_CHECK([render-test --width=6 input], [0], [dnl +-+-- @@ -651,6 +671,7 @@ yz|s| AT_CLEANUP AT_SETUP([horz break 6x6, joined rows and columns, left header]) +AT_KEYWORDS([render rendering]) RENDER_WEAVE_6X6([1 0 0 0]) AT_CHECK([render-test --width=10 input], [0], [dnl +-+---+-+ @@ -684,6 +705,7 @@ AT_CHECK([render-test --width=10 input], [0], [dnl AT_CLEANUP AT_SETUP([horz break 6x6, joined rows and columns, right header]) +AT_KEYWORDS([render rendering]) RENDER_WEAVE_6X6([0 1 0 0]) AT_CHECK([render-test --width=10 input], [0], [dnl +-+---+-+ @@ -717,6 +739,7 @@ op|h|q| AT_CLEANUP AT_SETUP([breaking joined cells too wide for page]) +AT_KEYWORDS([render rendering]) AT_DATA([input], [4 6 1*6 @abc def ghi jkl 1*3 @mno pqr @@ -759,6 +782,7 @@ AT_CHECK([render-test --width=10 input], [0], [dnl AT_CLEANUP AT_SETUP([breaking joined cells much too wide for page]) +AT_KEYWORDS([render rendering]) AT_DATA([input], [4 6 1*6 @abc def ghi jkl 1*3 @mno pqr @@ -813,6 +837,7 @@ qr| AT_CLEANUP AT_SETUP([breaking cell too wide for page, no border]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [1 1 abcdefghijklmnopqrstuvwxyz @@ -831,6 +856,7 @@ yz AT_CLEANUP AT_SETUP([breaking cell too wide for page, with border]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [1 1 @abcdefghijklmnopqrstuvwxyz @@ -867,6 +893,7 @@ xyz| AT_CLEANUP AT_SETUP([horz break 8x8 with many 2x2 joins]) +AT_KEYWORDS([render rendering]) RENDER_8X8_2 AT_CHECK([render-test --width=8 input], [0],[dnl +---+-- @@ -945,6 +972,7 @@ AT_CLEANUP AT_BANNER([output rendering -- vertical page breaks]) AT_SETUP([breaking column of many small cells]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [20 1 m4_for([x], [1], [20], [1], [@x @@ -1003,6 +1031,7 @@ AT_CHECK([render-test --length=10 input], [0], [dnl AT_CLEANUP AT_SETUP([breaking column of many small cells, with headers]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [17 1 0 0 1 1 @a @@ -1067,6 +1096,7 @@ AT_CHECK([render-test --length=13 input], [0], [dnl AT_CLEANUP AT_SETUP([disabling too-big headers]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [17 1 0 0 1 1 @a @@ -1121,6 +1151,7 @@ AT_CHECK([render-test --length=10 input], [0], [dnl AT_CLEANUP AT_SETUP([breaking column of many medium-size cells]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [20 1 m4_for([x], [1], [20], [1], [@top x\ncell x\nbottom x @@ -1229,6 +1260,7 @@ AT_CHECK([render-test --length 10 input], [0], [dnl AT_CLEANUP AT_SETUP([breaking 3 columns with many joined cells]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [3 19 m4_foreach([x], [a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s], [x @@ -1298,6 +1330,7 @@ s|cd|20| AT_CLEANUP AT_SETUP([vert break 6x6, joined rows and columns]) +AT_KEYWORDS([render rendering]) RENDER_WEAVE_6X6 AT_CHECK([render-test --length=6 input], [0], [dnl +-+---+-+-+-+ @@ -1321,6 +1354,7 @@ AT_CHECK([render-test --length=6 input], [0], [dnl AT_CLEANUP AT_SETUP([breaking joined cells too tall for page]) +AT_KEYWORDS([render rendering]) AT_DATA([input], [4 6 1*6 @abc\ndef\nghi\njkl\nmno\npqr\nstu\nvwx\nyzA\nBCD\nEFG 1*3 @HIJ\nKLM\nOPQ\nRST\nUVW @@ -1357,6 +1391,7 @@ AT_CHECK([render-test --transpose --length=6 input], [0], [dnl AT_CLEANUP AT_SETUP([breaking cell too tall for page, no border]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [1 1 abc defg hij klmn opq rstu vwx yz ABCDE FGH I JK LMNOP QR STU VWXYZ @@ -1381,6 +1416,7 @@ QR STU AT_CLEANUP AT_SETUP([breaking cell too tall for page, with border]) +AT_KEYWORDS([render rendering]) AT_CAPTURE_FILE([input]) AT_DATA([input], [1 1 @abc defg hij klmn opq rstu vwx yz ABCDE FGH I JK LMNOP QR STU VWXYZ @@ -1418,6 +1454,7 @@ AT_CLEANUP AT_BANNER([output rendering -- double page breaks]) AT_SETUP([double break 6x6, joined rows and columns]) +AT_KEYWORDS([render rendering]) RENDER_WEAVE_6X6 AT_CHECK([render-test --width=6 --length=6 input], [0], [dnl +-+-- @@ -1477,6 +1514,7 @@ yz|s| AT_CLEANUP AT_SETUP([double break 8x8, with joins, left and right headers]) +AT_KEYWORDS([render rendering]) RENDER_8X8([1 1 0 0]) AT_CHECK([render-test input --width=14 --length=14], [0], [dnl +-+-+-+-+-+-+ @@ -1522,6 +1560,7 @@ AT_CHECK([render-test input --width=14 --length=14], [0], [dnl AT_CLEANUP AT_SETUP([double break 8x8, with joins, top and bottom headers]) +AT_KEYWORDS([render rendering]) RENDER_8X8([0 0 1 1]) AT_CHECK([render-test input --width=14 --length=14], [0], [dnl +-+-+-+-+-+-+ @@ -1577,6 +1616,7 @@ fg|h| AT_CLEANUP AT_SETUP([double break 8x8, with joins, all headers]) +AT_KEYWORDS([render rendering]) RENDER_8X8([1 1 1 1]) AT_CHECK([render-test input --width=14 --length=14], [0], [dnl +-+-+-+-+-+-+ @@ -1632,6 +1672,7 @@ AT_CHECK([render-test input --width=14 --length=14], [0], [dnl AT_CLEANUP AT_SETUP([double break joined cells too big for page]) +AT_KEYWORDS([render rendering]) AT_DATA([input], [7 7 @a @b