test suite: Add expected output for every test.
authorCarl Worth <cworth@cworth.org>
Wed, 2 Jun 2010 22:59:45 +0000 (15:59 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 2 Jun 2010 22:59:45 +0000 (15:59 -0700)
Rather than using the (munged) output of "gcc -E" we now capture
precisely the output we expect from every test case. This allows us to
stay immune from strange output from gcc (unpredictable whitespace
output---aprticularly with different gcc versions).

This will also allow us to write tests that capture expected error
messages from the preprocessor as well.

70 files changed:
.gitignore
Makefile
tests/000-content-with-spaces.c.expected [new file with mode: 0644]
tests/001-define.c.expected [new file with mode: 0644]
tests/002-define-chain.c.expected [new file with mode: 0644]
tests/003-define-chain-reverse.c.expected [new file with mode: 0644]
tests/004-define-recursive.c.expected [new file with mode: 0644]
tests/005-define-composite-chain.c.expected [new file with mode: 0644]
tests/006-define-composite-chain-reverse.c.expected [new file with mode: 0644]
tests/007-define-composite-recursive.c.expected [new file with mode: 0644]
tests/008-define-empty.c.expected [new file with mode: 0644]
tests/009-undef.c.expected [new file with mode: 0644]
tests/010-undef-re-define.c.expected [new file with mode: 0644]
tests/011-define-func-empty.c.expected [new file with mode: 0644]
tests/012-define-func-no-args.c.expected [new file with mode: 0644]
tests/013-define-func-1-arg-unused.c.expected [new file with mode: 0644]
tests/014-define-func-2-arg-unused.c.expected [new file with mode: 0644]
tests/015-define-object-with-parens.c.expected [new file with mode: 0644]
tests/016-define-func-1-arg.c.expected [new file with mode: 0644]
tests/017-define-func-2-args.c.expected [new file with mode: 0644]
tests/018-define-func-macro-as-parameter.c.expected [new file with mode: 0644]
tests/019-define-func-1-arg-multi.c.expected [new file with mode: 0644]
tests/020-define-func-2-arg-multi.c.expected [new file with mode: 0644]
tests/021-define-func-compose.c.expected [new file with mode: 0644]
tests/022-define-func-arg-with-parens.c.expected [new file with mode: 0644]
tests/023-define-extra-whitespace.c.expected [new file with mode: 0644]
tests/024-define-chain-to-self-recursion.c.expected [new file with mode: 0644]
tests/025-func-macro-as-non-macro.c.expected [new file with mode: 0644]
tests/026-define-func-extra-newlines.c.expected [new file with mode: 0644]
tests/027-define-chain-obj-to-func.c.expected [new file with mode: 0644]
tests/028-define-chain-obj-to-non-func.c.expected [new file with mode: 0644]
tests/029-define-chain-obj-to-func-with-args.c.expected [new file with mode: 0644]
tests/030-define-chain-obj-to-func-compose.c.expected [new file with mode: 0644]
tests/031-define-chain-func-to-func-compose.c.expected [new file with mode: 0644]
tests/032-define-func-self-recurse.c.expected [new file with mode: 0644]
tests/033-define-func-self-compose.c.expected [new file with mode: 0644]
tests/034-define-func-self-compose-non-func.c.expected [new file with mode: 0644]
tests/035-define-func-self-compose-non-func-multi-token-argument.c.expected [new file with mode: 0644]
tests/036-define-func-non-macro-multi-token-argument.c.expected [new file with mode: 0644]
tests/037-finalize-unexpanded-macro.c.expected [new file with mode: 0644]
tests/038-func-arg-with-commas.c.expected [new file with mode: 0644]
tests/039-func-arg-obj-macro-with-comma.c.expected [new file with mode: 0644]
tests/040-token-pasting.c.expected [new file with mode: 0644]
tests/041-if-0.c.expected [new file with mode: 0644]
tests/042-if-1.c.expected [new file with mode: 0644]
tests/043-if-0-else.c.expected [new file with mode: 0644]
tests/044-if-1-else.c.expected [new file with mode: 0644]
tests/045-if-0-elif.c.expected [new file with mode: 0644]
tests/046-if-1-elsif.c.expected [new file with mode: 0644]
tests/047-if-elif-else.c.expected [new file with mode: 0644]
tests/048-if-nested.c.expected [new file with mode: 0644]
tests/049-if-expression-precedence.c.expected [new file with mode: 0644]
tests/050-if-defined.c.expected [new file with mode: 0644]
tests/051-if-relational.c.expected [new file with mode: 0644]
tests/052-if-bitwise.c.expected [new file with mode: 0644]
tests/053-if-divide-and-shift.c.expected [new file with mode: 0644]
tests/054-if-with-macros.c.expected [new file with mode: 0644]
tests/055-define-chain-obj-to-func-parens-in-text.c.expected [new file with mode: 0644]
tests/056-macro-argument-with-comma.c.expected [new file with mode: 0644]
tests/057-empty-arguments.c.expected [new file with mode: 0644]
tests/058-token-pasting-empty-arguments.c.expected [new file with mode: 0644]
tests/059-token-pasting-integer.c.expected [new file with mode: 0644]
tests/060-left-paren-in-macro-right-paren-in-text.c.expected [new file with mode: 0644]
tests/061-define-chain-obj-to-func-multi.c.expected [new file with mode: 0644]
tests/062-if-0-skips-garbage.c.expected [new file with mode: 0644]
tests/063-comments.c.expected [new file with mode: 0644]
tests/071-punctuator.c.expected [new file with mode: 0644]
tests/072-token-pasting-same-line.c.expected [new file with mode: 0644]
tests/099-c99-example.c.expected [new file with mode: 0644]
tests/glcpp-test

index b88f0cc75c7463b51e9333620f5a94efc0261b84..077db8d8e14f895acdfe644e7cdca6bf9a6421fb 100644 (file)
@@ -4,7 +4,4 @@ glcpp-parse.c
 glcpp-parse.h
 *.o
 *~
-tests/*.expected
-tests/*.gcc
-tests/*.glcpp
 tests/*.out
index 0c06aa880fb30cdba66a9505c5fd12fb9458d85d..3fb44ac3b2ed88a5ffcd4918519f2693e075a2fb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,4 +22,4 @@ test: glcpp
 
 clean:
        rm -f glcpp glcpp-lex.c glcpp-parse.c *.o *~
-       rm -f tests/*.out tests/*.gcc tests/*.expected tests/*~
+       rm -f tests/*.out tests/*~
diff --git a/tests/000-content-with-spaces.c.expected b/tests/000-content-with-spaces.c.expected
new file mode 100644 (file)
index 0000000..a7fc918
--- /dev/null
@@ -0,0 +1 @@
+this is four tokens
diff --git a/tests/001-define.c.expected b/tests/001-define.c.expected
new file mode 100644 (file)
index 0000000..a464d9d
--- /dev/null
@@ -0,0 +1,2 @@
+
+1
diff --git a/tests/002-define-chain.c.expected b/tests/002-define-chain.c.expected
new file mode 100644 (file)
index 0000000..c6c9ee3
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+1
diff --git a/tests/003-define-chain-reverse.c.expected b/tests/003-define-chain-reverse.c.expected
new file mode 100644 (file)
index 0000000..c6c9ee3
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+1
diff --git a/tests/004-define-recursive.c.expected b/tests/004-define-recursive.c.expected
new file mode 100644 (file)
index 0000000..2d07687
--- /dev/null
@@ -0,0 +1,6 @@
+
+
+
+foo
+bar
+baz
diff --git a/tests/005-define-composite-chain.c.expected b/tests/005-define-composite-chain.c.expected
new file mode 100644 (file)
index 0000000..892975c
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+a 1
diff --git a/tests/006-define-composite-chain-reverse.c.expected b/tests/006-define-composite-chain-reverse.c.expected
new file mode 100644 (file)
index 0000000..892975c
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+a 1
diff --git a/tests/007-define-composite-recursive.c.expected b/tests/007-define-composite-recursive.c.expected
new file mode 100644 (file)
index 0000000..0b0b477
--- /dev/null
@@ -0,0 +1,6 @@
+
+
+
+a b c foo
+b c a bar
+c a b baz
diff --git a/tests/008-define-empty.c.expected b/tests/008-define-empty.c.expected
new file mode 100644 (file)
index 0000000..139597f
--- /dev/null
@@ -0,0 +1,2 @@
+
+
diff --git a/tests/009-undef.c.expected b/tests/009-undef.c.expected
new file mode 100644 (file)
index 0000000..9c0b35a
--- /dev/null
@@ -0,0 +1,4 @@
+
+1
+
+foo
diff --git a/tests/010-undef-re-define.c.expected b/tests/010-undef-re-define.c.expected
new file mode 100644 (file)
index 0000000..5970f49
--- /dev/null
@@ -0,0 +1,6 @@
+
+1
+
+foo
+
+2
diff --git a/tests/011-define-func-empty.c.expected b/tests/011-define-func-empty.c.expected
new file mode 100644 (file)
index 0000000..139597f
--- /dev/null
@@ -0,0 +1,2 @@
+
+
diff --git a/tests/012-define-func-no-args.c.expected b/tests/012-define-func-no-args.c.expected
new file mode 100644 (file)
index 0000000..9f075f2
--- /dev/null
@@ -0,0 +1,2 @@
+
+bar
diff --git a/tests/013-define-func-1-arg-unused.c.expected b/tests/013-define-func-1-arg-unused.c.expected
new file mode 100644 (file)
index 0000000..a464d9d
--- /dev/null
@@ -0,0 +1,2 @@
+
+1
diff --git a/tests/014-define-func-2-arg-unused.c.expected b/tests/014-define-func-2-arg-unused.c.expected
new file mode 100644 (file)
index 0000000..a464d9d
--- /dev/null
@@ -0,0 +1,2 @@
+
+1
diff --git a/tests/015-define-object-with-parens.c.expected b/tests/015-define-object-with-parens.c.expected
new file mode 100644 (file)
index 0000000..a70321a
--- /dev/null
@@ -0,0 +1,4 @@
+
+()1()
+
+()2()
diff --git a/tests/016-define-func-1-arg.c.expected b/tests/016-define-func-1-arg.c.expected
new file mode 100644 (file)
index 0000000..6bfe04f
--- /dev/null
@@ -0,0 +1,2 @@
+
+((bar)+1)
diff --git a/tests/017-define-func-2-args.c.expected b/tests/017-define-func-2-args.c.expected
new file mode 100644 (file)
index 0000000..f7a2b8c
--- /dev/null
@@ -0,0 +1,2 @@
+
+((bar)*(baz))
diff --git a/tests/018-define-func-macro-as-parameter.c.expected b/tests/018-define-func-macro-as-parameter.c.expected
new file mode 100644 (file)
index 0000000..c6c9ee3
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+1
diff --git a/tests/019-define-func-1-arg-multi.c.expected b/tests/019-define-func-1-arg-multi.c.expected
new file mode 100644 (file)
index 0000000..1e89b8c
--- /dev/null
@@ -0,0 +1,2 @@
+
+(this is more than one word)
diff --git a/tests/020-define-func-2-arg-multi.c.expected b/tests/020-define-func-2-arg-multi.c.expected
new file mode 100644 (file)
index 0000000..19f59f5
--- /dev/null
@@ -0,0 +1,2 @@
+
+one fish,two fish,red fish,blue fish
diff --git a/tests/021-define-func-compose.c.expected b/tests/021-define-func-compose.c.expected
new file mode 100644 (file)
index 0000000..87f51f0
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+(2*((1+(3))))
diff --git a/tests/022-define-func-arg-with-parens.c.expected b/tests/022-define-func-arg-with-parens.c.expected
new file mode 100644 (file)
index 0000000..1dfc669
--- /dev/null
@@ -0,0 +1,2 @@
+
+(argument(including parens)for the win)
diff --git a/tests/023-define-extra-whitespace.c.expected b/tests/023-define-extra-whitespace.c.expected
new file mode 100644 (file)
index 0000000..9c58275
--- /dev/null
@@ -0,0 +1,8 @@
+
+
+
+
+1
+2
+3 4
+5 6 7
diff --git a/tests/024-define-chain-to-self-recursion.c.expected b/tests/024-define-chain-to-self-recursion.c.expected
new file mode 100644 (file)
index 0000000..15600af
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+foo
diff --git a/tests/025-func-macro-as-non-macro.c.expected b/tests/025-func-macro-as-non-macro.c.expected
new file mode 100644 (file)
index 0000000..4a59f05
--- /dev/null
@@ -0,0 +1,2 @@
+
+foo bar
diff --git a/tests/026-define-func-extra-newlines.c.expected b/tests/026-define-func-extra-newlines.c.expected
new file mode 100644 (file)
index 0000000..5e3c70f
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+bar
diff --git a/tests/027-define-chain-obj-to-func.c.expected b/tests/027-define-chain-obj-to-func.c.expected
new file mode 100644 (file)
index 0000000..94c15f9
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+success
diff --git a/tests/028-define-chain-obj-to-non-func.c.expected b/tests/028-define-chain-obj-to-non-func.c.expected
new file mode 100644 (file)
index 0000000..94c15f9
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+success
diff --git a/tests/029-define-chain-obj-to-func-with-args.c.expected b/tests/029-define-chain-obj-to-func-with-args.c.expected
new file mode 100644 (file)
index 0000000..94c15f9
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+success
diff --git a/tests/030-define-chain-obj-to-func-compose.c.expected b/tests/030-define-chain-obj-to-func-compose.c.expected
new file mode 100644 (file)
index 0000000..bed826e
--- /dev/null
@@ -0,0 +1,4 @@
+
+
+
+success
diff --git a/tests/031-define-chain-func-to-func-compose.c.expected b/tests/031-define-chain-func-to-func-compose.c.expected
new file mode 100644 (file)
index 0000000..bed826e
--- /dev/null
@@ -0,0 +1,4 @@
+
+
+
+success
diff --git a/tests/032-define-func-self-recurse.c.expected b/tests/032-define-func-self-recurse.c.expected
new file mode 100644 (file)
index 0000000..983f941
--- /dev/null
@@ -0,0 +1,2 @@
+
+foo(2*(3))
diff --git a/tests/033-define-func-self-compose.c.expected b/tests/033-define-func-self-compose.c.expected
new file mode 100644 (file)
index 0000000..0818362
--- /dev/null
@@ -0,0 +1,2 @@
+
+foo(2*(foo(2*(3))))
diff --git a/tests/034-define-func-self-compose-non-func.c.expected b/tests/034-define-func-self-compose-non-func.c.expected
new file mode 100644 (file)
index 0000000..3f808fe
--- /dev/null
@@ -0,0 +1,2 @@
+
+foo
diff --git a/tests/035-define-func-self-compose-non-func-multi-token-argument.c.expected b/tests/035-define-func-self-compose-non-func-multi-token-argument.c.expected
new file mode 100644 (file)
index 0000000..09dfdd6
--- /dev/null
@@ -0,0 +1,2 @@
+
+1+foo
diff --git a/tests/036-define-func-non-macro-multi-token-argument.c.expected b/tests/036-define-func-non-macro-multi-token-argument.c.expected
new file mode 100644 (file)
index 0000000..580ed95
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+more success
diff --git a/tests/037-finalize-unexpanded-macro.c.expected b/tests/037-finalize-unexpanded-macro.c.expected
new file mode 100644 (file)
index 0000000..e804d7e
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+expand(just once)
diff --git a/tests/038-func-arg-with-commas.c.expected b/tests/038-func-arg-with-commas.c.expected
new file mode 100644 (file)
index 0000000..6544adb
--- /dev/null
@@ -0,0 +1,2 @@
+
+success
diff --git a/tests/039-func-arg-obj-macro-with-comma.c.expected b/tests/039-func-arg-obj-macro-with-comma.c.expected
new file mode 100644 (file)
index 0000000..8a15397
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+(two,words)
diff --git a/tests/040-token-pasting.c.expected b/tests/040-token-pasting.c.expected
new file mode 100644 (file)
index 0000000..48e836e
--- /dev/null
@@ -0,0 +1,2 @@
+
+onetoken
diff --git a/tests/041-if-0.c.expected b/tests/041-if-0.c.expected
new file mode 100644 (file)
index 0000000..8b506b3
--- /dev/null
@@ -0,0 +1,5 @@
+success_1
+
+
+
+success_2
diff --git a/tests/042-if-1.c.expected b/tests/042-if-1.c.expected
new file mode 100644 (file)
index 0000000..a6ae946
--- /dev/null
@@ -0,0 +1,5 @@
+success_1
+
+success_2
+
+success_3
diff --git a/tests/043-if-0-else.c.expected b/tests/043-if-0-else.c.expected
new file mode 100644 (file)
index 0000000..3d7e6be
--- /dev/null
@@ -0,0 +1,7 @@
+success_1
+
+
+
+success_2
+
+success_3
diff --git a/tests/044-if-1-else.c.expected b/tests/044-if-1-else.c.expected
new file mode 100644 (file)
index 0000000..4a31e1c
--- /dev/null
@@ -0,0 +1,7 @@
+success_1
+
+success_2
+
+
+
+success_3
diff --git a/tests/045-if-0-elif.c.expected b/tests/045-if-0-elif.c.expected
new file mode 100644 (file)
index 0000000..a9bb158
--- /dev/null
@@ -0,0 +1,11 @@
+success_1
+
+
+
+
+
+success_3
+
+
+
+success_4
diff --git a/tests/046-if-1-elsif.c.expected b/tests/046-if-1-elsif.c.expected
new file mode 100644 (file)
index 0000000..a499571
--- /dev/null
@@ -0,0 +1,11 @@
+success_1
+
+success_2
+
+
+
+
+
+
+
+success_3
diff --git a/tests/047-if-elif-else.c.expected b/tests/047-if-elif-else.c.expected
new file mode 100644 (file)
index 0000000..54d3086
--- /dev/null
@@ -0,0 +1,11 @@
+success_1
+
+
+
+
+
+
+
+success_2
+
+success_3
diff --git a/tests/048-if-nested.c.expected b/tests/048-if-nested.c.expected
new file mode 100644 (file)
index 0000000..8beb9c3
--- /dev/null
@@ -0,0 +1,11 @@
+success_1
+
+
+
+
+
+
+
+
+
+success_2
diff --git a/tests/049-if-expression-precedence.c.expected b/tests/049-if-expression-precedence.c.expected
new file mode 100644 (file)
index 0000000..729bdd1
--- /dev/null
@@ -0,0 +1,5 @@
+
+
+
+success
+
diff --git a/tests/050-if-defined.c.expected b/tests/050-if-defined.c.expected
new file mode 100644 (file)
index 0000000..737eb8d
--- /dev/null
@@ -0,0 +1,17 @@
+
+
+
+success_1
+
+
+
+success_2
+
+
+
+
+
+
+
+success_3
+
diff --git a/tests/051-if-relational.c.expected b/tests/051-if-relational.c.expected
new file mode 100644 (file)
index 0000000..652fefd
--- /dev/null
@@ -0,0 +1,35 @@
+
+
+
+success_1
+
+
+
+success_2
+
+
+
+
+
+success_3
+
+
+
+
+
+success_3
+
+
+
+
+
+
+
+success_4
+
+
+
+success_5
+
+
+
diff --git a/tests/052-if-bitwise.c.expected b/tests/052-if-bitwise.c.expected
new file mode 100644 (file)
index 0000000..44e52b2
--- /dev/null
@@ -0,0 +1,20 @@
+
+
+
+success_1
+
+
+success_2
+
+
+
+
+
+
+success_3
+
+
+success_4
+
+
+
diff --git a/tests/053-if-divide-and-shift.c.expected b/tests/053-if-divide-and-shift.c.expected
new file mode 100644 (file)
index 0000000..7e78e04
--- /dev/null
@@ -0,0 +1,15 @@
+
+
+
+success_1
+
+
+success_2
+
+
+
+
+
+
+success_3
+
diff --git a/tests/054-if-with-macros.c.expected b/tests/054-if-with-macros.c.expected
new file mode 100644 (file)
index 0000000..70f737c
--- /dev/null
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+success_1
+
+
+success_2
+
+
+
+
+success_3
+
+
+
+
+success_4
+
+
+
+
+
+
+success_5
+
+
+success_6
+
+
+
diff --git a/tests/055-define-chain-obj-to-func-parens-in-text.c.expected b/tests/055-define-chain-obj-to-func-parens-in-text.c.expected
new file mode 100644 (file)
index 0000000..94c15f9
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+success
diff --git a/tests/056-macro-argument-with-comma.c.expected b/tests/056-macro-argument-with-comma.c.expected
new file mode 100644 (file)
index 0000000..bed826e
--- /dev/null
@@ -0,0 +1,4 @@
+
+
+
+success
diff --git a/tests/057-empty-arguments.c.expected b/tests/057-empty-arguments.c.expected
new file mode 100644 (file)
index 0000000..7d97e15
--- /dev/null
@@ -0,0 +1,6 @@
+
+success
+
+success
+
+success
diff --git a/tests/058-token-pasting-empty-arguments.c.expected b/tests/058-token-pasting-empty-arguments.c.expected
new file mode 100644 (file)
index 0000000..e0967a1
--- /dev/null
@@ -0,0 +1,5 @@
+
+ab
+a
+b
+
diff --git a/tests/059-token-pasting-integer.c.expected b/tests/059-token-pasting-integer.c.expected
new file mode 100644 (file)
index 0000000..f1288aa
--- /dev/null
@@ -0,0 +1,4 @@
+
+12
+1000
+identifier2
diff --git a/tests/060-left-paren-in-macro-right-paren-in-text.c.expected b/tests/060-left-paren-in-macro-right-paren-in-text.c.expected
new file mode 100644 (file)
index 0000000..3e5501a
--- /dev/null
@@ -0,0 +1,3 @@
+
+
+5*2
diff --git a/tests/061-define-chain-obj-to-func-multi.c.expected b/tests/061-define-chain-obj-to-func-multi.c.expected
new file mode 100644 (file)
index 0000000..15eb64b
--- /dev/null
@@ -0,0 +1,5 @@
+
+
+
+
+success
diff --git a/tests/062-if-0-skips-garbage.c.expected b/tests/062-if-0-skips-garbage.c.expected
new file mode 100644 (file)
index 0000000..3f2ff2d
--- /dev/null
@@ -0,0 +1,5 @@
+
+
+
+
+
diff --git a/tests/063-comments.c.expected b/tests/063-comments.c.expected
new file mode 100644 (file)
index 0000000..4998d76
--- /dev/null
@@ -0,0 +1,13 @@
+
+
+f = g /h;
+ l();
+m = n
++ p;
+more code here
+are not treated like comments.
diff --git a/tests/071-punctuator.c.expected b/tests/071-punctuator.c.expected
new file mode 100644 (file)
index 0000000..959d682
--- /dev/null
@@ -0,0 +1 @@
+a = b
diff --git a/tests/072-token-pasting-same-line.c.expected b/tests/072-token-pasting-same-line.c.expected
new file mode 100644 (file)
index 0000000..7b80af7
--- /dev/null
@@ -0,0 +1,2 @@
+
+success_1 success_2 success_3
diff --git a/tests/099-c99-example.c.expected b/tests/099-c99-example.c.expected
new file mode 100644 (file)
index 0000000..352bbff
--- /dev/null
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+f(2 * (y+1)) + f(2 * (f(2 * (z[0])))) % f(2 * (0)) + t(1);
+f(2 * (2 +(3,4)-0,1)) | f(2 * (~ 5)) & f(2 * (0,1))^m(0,1);
+int i[] = { 1, 23, 4, 5, };
index 24110333a5e388e1c9d9167915360e140b9bc53b..396f6e175e8eaa31d39711b6d20ea360a11480c2 100755 (executable)
@@ -2,9 +2,6 @@
 
 for test in *.c; do
     echo "Testing $test"
-    ../glcpp < $test > $test.glcpp
-    grep -v '^ *$' < $test.glcpp > $test.out || true
-    gcc -E $test -o $test.gcc
-    grep -v '^#' < $test.gcc | grep -v '^$' | sed -r -e 's/^ +/ /' > $test.expected || true
+    ../glcpp < $test > $test.out
     diff -u $test.expected $test.out
 done