ispc: extend test suite
This commit is contained in:
parent
c083ab99b2
commit
2f33b06119
@ -1,4 +1,6 @@
|
|||||||
{stdenv, fetchFromGitHub, bash, which, m4, python, bison, flex, llvmPackages, clangWrapSelf}:
|
{stdenv, fetchFromGitHub, bash, which, m4, python, bison, flex, llvmPackages, clangWrapSelf,
|
||||||
|
testedTargets ? ["sse4" "host"]
|
||||||
|
}:
|
||||||
|
|
||||||
# TODO: patch LLVM so Skylake-EX works better (patch included in ispc github) - needed for LLVM 3.9?
|
# TODO: patch LLVM so Skylake-EX works better (patch included in ispc github) - needed for LLVM 3.9?
|
||||||
|
|
||||||
@ -6,6 +8,8 @@ stdenv.mkDerivation rec {
|
|||||||
version = "1.9.1";
|
version = "1.9.1";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
|
|
||||||
|
inherit testedTargets;
|
||||||
|
|
||||||
name = "ispc-${version}";
|
name = "ispc-${version}";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
@ -44,8 +48,14 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
export ISPC_HOME=$PWD
|
export ISPC_HOME=$PWD
|
||||||
PATH=${llvmPackages.clang}/bin:$PATH python run_tests.py --non-interactive --verbose --file=test_output.log
|
for target in $testedTargets
|
||||||
fgrep -q "No new fails" test_output.log || exit 1
|
do
|
||||||
|
echo "Testing target $target"
|
||||||
|
echo "================================"
|
||||||
|
echo
|
||||||
|
PATH=${llvmPackages.clang}/bin:$PATH python run_tests.py -t $target --non-interactive --verbose --file=test_output.log
|
||||||
|
fgrep -q "No new fails" test_output.log || exit 1
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user