summaryrefslogtreecommitdiff
path: root/assembler/test
diff options
context:
space:
mode:
authorMarius Vlad <marius.c.vlad@intel.com>2016-08-31 19:59:02 +0300
committerMarius Vlad <marius.c.vlad@intel.com>2016-09-01 09:59:55 +0300
commit75e7a3a8d255a4b925e24939e771af3e7cdf15dc (patch)
tree30b5962f581eb8493ff746776c99469408646394 /assembler/test
parent7213c3e09621d9708a87d26cda4b1b71fe73d206 (diff)
autotools/: Allow check target to be invoked w/o the need to issue a build.
We need to have the test list generated before running the check target. Migrated igt_command_line.sh to tests/ from lib/tests/, which allows to building the tests and execute the script. This would allow cleaning followed by a make check. Also assembler/ directory needs also to be adjusted in order for this to work. Kept the possibility to invoke tests/igt_command_line.sh to determine which test is failing. Signed-off-by: Marius Vlad <marius.c.vlad@intel.com> Url: https://patchwork.freedesktop.org/series/6539/ Reviewed-By: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'assembler/test')
-rw-r--r--assembler/test/Makefile.am93
-rw-r--r--assembler/test/run-test.sh2
2 files changed, 1 insertions, 94 deletions
diff --git a/assembler/test/Makefile.am b/assembler/test/Makefile.am
index f1131198..e69de29b 100644
--- a/assembler/test/Makefile.am
+++ b/assembler/test/Makefile.am
@@ -1,93 +0,0 @@
-check_SCRIPTS = run-test.sh
-
-TESTS_ENVIRONMENT = top_builddir=${top_builddir}
-TESTS = \
- mov \
- frc \
- rndd \
- rndu \
- rnde \
- rnde-intsrc \
- rndz \
- lzd \
- not \
- immediate
-
-# Tests that are expected to fail because they contain some inccorect code.
-XFAIL_TESTS =
-
-# Those tests were already failing when the assembler was imported from
-# the intel-gen4asm git repository:
-# http://cgit.freedesktop.org/xorg/app/intel-gen4asm/
-# We disable them "for now" as a workaround to be able to release i-g-t
-disabled_tests = \
- declare \
- jmpi \
- if \
- iff \
- while \
- else \
- break \
- cont \
- halt \
- wait \
- endif
-
-disabled_xfail_tests = \
- rnde-intsrc
-
-TESTDATA = \
- mov.expected \
- mov.g4a \
- frc.expected \
- frc.g4a \
- rndd.expected \
- rndd.g4a \
- rndu.expected \
- rndu.g4a \
- rnde.expected \
- rnde.g4a \
- rnde-intsrc.expected \
- rnde-intsrc.g4a \
- rndz.expected \
- rndz.g4a \
- lzd.expected \
- lzd.g4a \
- not.expected \
- not.g4a \
- jmpi.expected \
- jmpi.g4a \
- if.expected \
- if.g4a \
- iff.expected \
- iff.g4a \
- while.expected \
- while.g4a \
- else.expected \
- else.g4a \
- break.expected \
- break.g4a \
- cont.expected \
- cont.g4a \
- halt.expected \
- halt.g4a \
- wait.expected \
- wait.g4a \
- endif.expected \
- endif.g4a \
- declare.expected \
- declare.g4a \
- immediate.g4a \
- immediate.expected
-
-EXTRA_DIST = \
- ${TESTDATA} \
- run-test.sh
-
-$(TESTS): run-test.sh
- sed "s|TEST|$@|g" ${srcdir}/run-test.sh > $@
- chmod +x $@
-
-CLEANFILES = \
- *.out \
- ${TESTS}
diff --git a/assembler/test/run-test.sh b/assembler/test/run-test.sh
index 27c5c2d3..20a408c6 100644
--- a/assembler/test/run-test.sh
+++ b/assembler/test/run-test.sh
@@ -3,7 +3,7 @@
SRCDIR=${srcdir-`pwd`}
BUILDDIR=${top_builddir-`pwd`}
-${BUILDDIR}/assembler/intel-gen4asm -o TEST.out $SRCDIR/TEST.g4a
+${BUILDDIR}/intel-gen4asm -o TEST.out $SRCDIR/TEST.g4a
if cmp TEST.out ${SRCDIR}/TEST.expected 2> /dev/null; then : ; else
echo "Output comparison for TEST"
diff -u ${SRCDIR}/TEST.expected TEST.out