Prepare polybench_test.sh for multiple options
commit25ffd2e0fba8fbfbacafc43b25053c8593b9c93a
authorTobias Grosser <tobias@grosser.es>
Thu, 22 Nov 2012 01:29:41 +0000 (22 02:29 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 23 Nov 2012 13:07:05 +0000 (23 14:07 +0100)
treed9e4379c8bc5e04887b073c132b38019c2e1648a
parente36b4e1d8af33cc99a804d080a90bbd1512aaa7b
Prepare polybench_test.sh for multiple options

  * Introduce run_tests method
  * Place generated files into a temporary directory
  * Name generated files descriptively
  * Use flag --std=gnu99
  * Keep files until the end of the test run

Enforcing gnu99 is required to compile the ppcg generated code with gcc.

Keeping the files until the end of the test run allows the inspection of
the generated files, in case incorrect code is generated and the test
is aborted. The overall size of generated files is less than 10 Mb, so
this should not cause any problems.

Signed-off-by: Tobias Grosser <tobias@grosser.es>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
polybench_test.sh.in