glcpp: Exhaustively test all legal characters in GLSL
authorCarl Worth <cworth@cworth.org>
Tue, 5 Aug 2014 23:33:04 +0000 (16:33 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 4 Jan 2017 22:40:48 +0000 (14:40 -0800)
commit5363518705e7593718a886f2f2fc906b2923acae
tree319a7ffc6e246126cb410164ba99597c2503f182
parent16b480547ffaa5bcc8fdac184349b13ce8f019f5
glcpp: Exhaustively test all legal characters in GLSL

Here, each legal character (as defined by GLSL Language Specification version
4.30.6, section 3.1) appears at least once in the input file. Obviously,
characters with special meaning (like '#' and '\') aren't treated exhaustively
with respect to all their possible uses. We have many other tests for that.

Here, we're simply ensuring that the test suite sees every legal character at
least once.

v2 (by Ken): Fix expectations, move to src/compiler, renumber tests.

   Carl's .expected:            Updated .expected:

   ..                           ..

   . .                          . .
   . .                          . .
   . .                          . .
   . .                          . .
   .                            ..
   .                            .
   .                            .
   .

(For some reason, the original test expected ".." to produce two lines.
glcpp, cpp, and mcpp all follow my updated behavior, so I believe it to
be correct.)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/glcpp/tests/148-legal-characters.c [new file with mode: 0644]
src/compiler/glsl/glcpp/tests/148-legal-characters.c.expected [new file with mode: 0644]