diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-10-30 18:51:53 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-11-01 00:55:09 +0100 |
| commit | 74ba40fadc42f7b3b2222cc231d2c38959943643 (patch) | |
| tree | fe6c4a3bfc2767c779002cf62a412ebb634afa49 /validation/optim | |
| parent | 49c98aa3ed1b315ed2f4fbe44271ecd5bdd9cbc7 (diff) | |
| download | sparse-dev-74ba40fadc42f7b3b2222cc231d2c38959943643.tar.gz | |
testsuite: add a new tag: check-output-match
The current tags check-output-contains/excludes/pattern are
quite powerful, universal, but they often need 'complex' regular
expressions with escaping which make them not so nice to read.
For testing IR results, a very common pattern is:
this instruction must have this (kind of) operand.
So, make a new tag for this. It does nothing than can't be done
with done with the previous ones, on the contrary, but is much
simpler to use:
check-output-match(instruction): operand
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation/optim')
| -rw-r--r-- | validation/optim/testsuite.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/validation/optim/testsuite.c b/validation/optim/testsuite.c new file mode 100644 index 00000000..15c9bdd6 --- /dev/null +++ b/validation/optim/testsuite.c @@ -0,0 +1,12 @@ +int foo(void) +{ + return 0; +} + +/* + * check-name: testsuite + * check-command: test-linearize -Wno-decl $file + * + * check-output-ignore + * check-output-match(ret): \\$0 + */ |
