22 Commits

Author SHA1 Message Date
Damien Lespiau
01283245ab assembler: Disable the declare test
It's not hitting a valid assertion that it tries to write an instruction
without a defined execution size (because the "default" exec_size never
end up being set).

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-08-20 18:25:52 +01:00
Damien Lespiau
ca043f3a8f assembler: Disable tests that where already failing in the gen4asm repo
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-08-20 18:22:45 +01:00
Damien Lespiau
f8b25a3612 assembler: Ignore make check output
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-08-20 18:12:49 +01:00
Damien Lespiau
751f8a7378 assembler: Fix the path of intel-gen4asm
With the move to intel-gpu-tools, we need to update that as well.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2013-08-20 18:02:37 +01:00
Damien Lespiau
63720a4f86 assembler: Revert "Fix missing environment variables problem in test/run-test.sh"
Same as:

  commit 497814f2f2828efdc5bdd787ebc490d5083f61b8
  Author: Damien Lespiau <damien.lespiau@intel.com>
  Date:   Tue Aug 20 14:52:05 2013 +0100

      assembler: Revert "Automatically run all test cases."

make check will define srcdir and buildir variables for us.

This reverts commit 1c009349bc894bd195b5522540536898b0bee574.
2013-08-20 17:58:48 +01:00
Damien Lespiau
497814f2f2 assembler: Revert "Automatically run all test cases."
The tests where supposed to be run through make check, not running the
"run-test.sh" standalone. So revert that patch to have make check work
as intended.

This reverts commit 6983eebf47f37def8f2315d5af1800b81644f240.
2013-08-20 14:52:05 +01:00
Homer Hsing
d6f02c181f Add test case for ".declare" overriding feature.
Later same name .declare pragma will override previously defined
one. This patch add a test case for that feature.
2013-03-04 15:54:33 +00:00
Homer Hsing
6983eebf47 Automatically run all test cases.
In the past test/run-test.sh run only one test case per call.
This patch let it automatically run all test cases.
2013-03-04 15:54:32 +00:00
Homer Hsing
1c009349bc Fix missing environment variables problem in test/run-test.sh
Currently test/run-test.sh cannot get the value of ${srcdir} and
${top_builddir}. Thus we cannot run any test case. This patch uses
$0 to get the absolute path of run-test.sh. Now test cases work.
2013-03-04 15:54:32 +00:00
Homer Hsing
131f61f2ef Add a test case for ".declare" pragma 2013-03-04 15:54:32 +00:00
Eric Anholt
6e4b04a807 Add accidentally forgotten rnde test. 2013-03-04 15:54:25 +00:00
Eric Anholt
a1170c5e64 Rename package and binary to intel-gen4asm. 2013-03-04 15:54:25 +00:00
Eric Anholt
9201e4e2a0 Add tests for break, cont, and halt instructions. 2013-03-04 15:54:25 +00:00
Eric Anholt
7c3ba4d49d Add a test for ENDIF, revealing issues. 2013-03-04 15:54:24 +00:00
Eric Anholt
a8eb735270 Add a test for the ELSE instruction, revealing issues. 2013-03-04 15:54:24 +00:00
Eric Anholt
055be60abf Add a test for wait instruction (not yet implemented). 2013-03-04 15:54:24 +00:00
Eric Anholt
d72f5c9828 Add a failing test for maximum ranges of UD/D immediates. 2013-03-04 15:54:24 +00:00
Eric Anholt
d538dfc462 Fix the width of the IP count field expected by the while test. 2013-03-04 15:54:24 +00:00
Eric Anholt
8828725dc9 Add tests for jmpi, if, iff, and while, revealing issues. 2013-03-04 15:54:24 +00:00
Eric Anholt
cc865f1bc0 Explain why rnde-intsrc is expected to fail. 2013-03-04 15:54:24 +00:00
Eric Anholt
863cd6a5b7 Add more unary operation tests. 2013-03-04 15:54:23 +00:00
Eric Anholt
e3cc73bec4 Start adding a test suite. 2013-03-04 15:54:23 +00:00