From: Lei Zhang Date: Wed, 4 May 2016 18:35:16 +0000 (-0400) Subject: Remove duplicated tests from the runtests script. X-Git-Tag: upstream/0.1~112^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=48e296b18c98f1e9e47d0a8a757943fae615cc72;p=platform%2Fupstream%2Fglslang.git Remove duplicated tests from the runtests script. --- diff --git a/README.md b/README.md index 7a14f56..5eb8d26 100644 --- a/README.md +++ b/README.md @@ -177,15 +177,11 @@ For more information, please check `gtests/` directory's For the `runtests` script, it will generate current results in the `localResults/` directory and `diff` them against the `baseResults/`. -The integration tests to run via the `runtests` script is registered -via various `Test/test-*` text files and `Test/testlist`. When you want to update the tracked test results, they need to be copied from `localResults/` to `baseResults/`. This can be done by the `bump` shell script. -The list of files tested comes from `testlist`, and lists input shaders -in this directory, which must all be public for this to work. However, -you can add your own private list of tests, not tracked here, by using +You can add your own private list of tests, not tracked publicly, by using `localtestlist` to list non-tracked tests. This is automatically read by `runtests` and included in the `diff` and `bump` process. diff --git a/Test/runtests b/Test/runtests index d54fb58..3bf03fb 100755 --- a/Test/runtests +++ b/Test/runtests @@ -6,27 +6,6 @@ EXE=../build/install/bin/glslangValidator HASERROR=0 mkdir -p localResults -# -# configuration file tests -# -echo running configuration file test -$EXE -c > $TARGETDIR/test.conf -diff -b $BASEDIR/test.conf $TARGETDIR/test.conf || HASERROR=1 -$EXE -i -l $TARGETDIR/test.conf specExamples.vert > $TARGETDIR/specExamples.vert.out -diff -b $BASEDIR/specExamples.vert.out $TARGETDIR || HASERROR=1 -$EXE -l 100Limits.vert 100.conf > $TARGETDIR/100LimitsConf.vert.out -diff -b $BASEDIR/100LimitsConf.vert.out $TARGETDIR/100LimitsConf.vert.out || HASERROR=1 - -# -# isolated compilation tests -# -while read t; do - echo Running $t... - b=`basename $t` - $EXE -i -l $t > $TARGETDIR/$b.out - diff -b $BASEDIR/$b.out $TARGETDIR/$b.out || HASERROR=1 -done < testlist - if [ -a localtestlist ] then while read t; do @@ -37,75 +16,9 @@ if [ -a localtestlist ] done < localtestlist fi -# -# SPIR-V code generation tests -# -while read t; do - case $t in - \#*) - # Skip comment lines in the test list file. - ;; - *) - echo Running SPIR-V $t... - b=`basename $t` - $EXE -H $t > $TARGETDIR/$b.out - diff -b $BASEDIR/$b.out $TARGETDIR/$b.out || HASERROR=1 - ;; - esac -done < test-spirv-list rm -f comp.spv frag.spv geom.spv tesc.spv tese.spv vert.spv # -# HLSL -> SPIR-V code generation tests -# -while read t; do - case $t in - \#*) - # Skip comment lines in the test list file. - ;; - *) - echo Running HLSL-to-SPIR-V $t... - b=`basename $t` - $EXE -D -e PixelShaderFunction -H -i $t > $TARGETDIR/$b.out - diff -b $BASEDIR/$b.out $TARGETDIR/$b.out || HASERROR=1 - ;; - esac -done < test-hlsl-spirv-list -rm -f comp.spv frag.spv geom.spv tesc.spv tese.spv vert.spv - -# -# Preprocessor tests -# -while read t; do - echo Running Preprocessor $t... - b=`basename $t` - $EXE -E $t > $TARGETDIR/$b.out 2> $TARGETDIR/$b.err - diff -b $BASEDIR/$b.out $TARGETDIR/$b.out || HASERROR=1 - diff -b $BASEDIR/$b.err $TARGETDIR/$b.err || HASERROR=1 -done < test-preprocessor-list - -# -# grouped shaders for bulk (faster) tests -# -function runBulkTest { - echo Running $*... - $EXE -i -l -t $* > $TARGETDIR/$1.out - diff -b $BASEDIR/$1.out $TARGETDIR/$1.out || HASERROR=1 -} - -runBulkTest mains1.frag mains2.frag noMain1.geom noMain2.geom -runBulkTest noMain.vert mains.frag -runBulkTest link1.frag link2.frag link3.frag -runBulkTest es-link1.frag es-link2.frag -runBulkTest recurse1.vert recurse1.frag recurse2.frag -runBulkTest 300link.frag -runBulkTest 300link2.frag -runBulkTest 300link3.frag -runBulkTest empty.frag empty2.frag empty3.frag -runBulkTest 150.tesc 150.tese 400.tesc 400.tese 410.tesc 420.tesc 420.tese -runBulkTest max_vertices_0.geom - -# # reflection tests # echo Running reflection... diff --git a/Test/test-hlsl-spirv-list b/Test/test-hlsl-spirv-list deleted file mode 100644 index d98a3cb..0000000 --- a/Test/test-hlsl-spirv-list +++ /dev/null @@ -1,4 +0,0 @@ -# Test looping constructs. -# No tests yet for making sure break and continue from a nested loop -# goes to the innermost target. -hlsl.frag diff --git a/Test/test-preprocessor-list b/Test/test-preprocessor-list deleted file mode 100644 index bd7e963..0000000 --- a/Test/test-preprocessor-list +++ /dev/null @@ -1,16 +0,0 @@ -preprocessor.cpp_style_line_directive.vert -preprocessor.cpp_style___FILE__.vert -preprocessor.edge_cases.vert -preprocessor.errors.vert -preprocessor.extensions.vert -preprocessor.function_macro.vert -preprocessor.include.enabled.vert -preprocessor.include.disabled.vert -preprocessor.line.vert -preprocessor.line.frag -preprocessor.pragma.vert -preprocessor.simple.vert -preprocessor.success_if_parse_would_fail.vert -preprocessor.defined.vert -preprocessor.many.endif.vert -preprocessor.eof_missing.vert diff --git a/Test/test-spirv-list b/Test/test-spirv-list deleted file mode 100644 index 03f4432..0000000 --- a/Test/test-spirv-list +++ /dev/null @@ -1,115 +0,0 @@ -# Test looping constructs. -# No tests yet for making sure break and continue from a nested loop -# goes to the innermost target. -spv.do-simple.vert -spv.do-while-continue-break.vert -spv.for-complex-condition.vert -spv.for-continue-break.vert -spv.for-simple.vert -spv.for-notest.vert -spv.for-nobody.vert -spv.while-continue-break.vert -spv.while-simple.vert -# vulkan-specific tests -spv.set.vert -spv.double.comp -spv.100ops.frag -spv.130.frag -spv.140.frag -spv.150.geom -spv.150.vert -spv.300BuiltIns.vert -spv.300layout.frag -spv.300layout.vert -spv.300layoutp.vert -spv.310.comp -spv.330.geom -spv.400.frag -spv.400.tesc -spv.400.tese -spv.420.geom -spv.430.vert -spv.accessChain.frag -spv.aggOps.frag -spv.always-discard.frag -spv.always-discard2.frag -spv.bitCast.frag -spv.bool.vert -spv.boolInBlock.frag -spv.branch-return.vert -spv.conditionalDiscard.frag -spv.conversion.frag -spv.dataOut.frag -spv.dataOutIndirect.frag -spv.dataOutIndirect.vert -spv.deepRvalue.frag -spv.depthOut.frag -spv.discard-dce.frag -spv.doWhileLoop.frag -spv.earlyReturnDiscard.frag -spv.flowControl.frag -spv.forLoop.frag -spv.forwardFun.frag -spv.functionCall.frag -spv.functionSemantics.frag -spv.interpOps.frag -spv.int64.frag -spv.layoutNested.vert -spv.length.frag -spv.localAggregates.frag -spv.loops.frag -spv.loopsArtificial.frag -spv.matFun.vert -spv.matrix.frag -spv.matrix2.frag -spv.memoryQualifier.frag -spv.merge-unreachable.frag -spv.newTexture.frag -spv.noDeadDecorations.vert -spv.nonSquare.vert -spv.Operations.frag -spv.intOps.vert -spv.precision.frag -spv.prepost.frag -spv.qualifiers.vert -spv.shaderBallot.comp -spv.shaderGroupVote.comp -spv.shiftOps.frag -spv.simpleFunctionCall.frag -spv.simpleMat.vert -spv.sparseTexture.frag -spv.sparseTextureClamp.frag -spv.structAssignment.frag -spv.structDeref.frag -spv.structure.frag -spv.switch.frag -spv.swizzle.frag -spv.test.frag -spv.test.vert -spv.texture.frag -spv.texture.vert -spv.image.frag -spv.types.frag -spv.uint.frag -spv.uniformArray.frag -spv.variableArrayIndex.frag -spv.varyingArray.frag -spv.varyingArrayIndirect.frag -spv.voidFunction.frag -spv.whileLoop.frag -spv.AofA.frag -spv.queryL.frag -spv.separate.frag -spv.shortCircuit.frag -spv.pushConstant.vert -spv.subpass.frag -spv.specConstant.vert -spv.specConstant.comp -spv.specConstantComposite.vert -spv.specConstantOperations.vert -spv.precise.tese -spv.precise.tesc -# GLSL-level semantics -vulkan.frag -vulkan.vert -vulkan.comp diff --git a/Test/testlist b/Test/testlist deleted file mode 100644 index 09f8fd8..0000000 --- a/Test/testlist +++ /dev/null @@ -1,135 +0,0 @@ -sample.frag -sample.vert -decls.frag -specExamples.frag -specExamples.vert -versionsClean.frag -versionsClean.vert -versionsErrors.frag -versionsErrors.vert -100.frag -120.vert -120.frag -130.vert -130.frag -140.vert -140.frag -150.vert -150.geom -150.frag -precision.frag -precision.vert -nonSquare.vert -matrixError.vert -cppSimple.vert -cppIndent.vert -cppNest.vert -cppComplexExpr.vert -badChars.frag -pointCoord.frag -array.frag -array100.frag -comment.frag -300.vert -300.frag -300BuiltIns.frag -300layout.vert -300layout.frag -300operations.frag -300block.frag -310.comp -310.vert -310.geom -310.frag -310.tesc -310.tese -310implicitSizeArrayError.vert -310AofA.vert -330.frag -330comp.frag -constErrors.frag -constFold.frag -errors.frag -forwardRef.frag -uint.frag -switch.frag -tokenLength.vert -100Limits.vert -100scope.vert -110scope.vert -300scope.vert -400.frag -420.frag -420.vert -420.geom -420_size_gl_in.geom -430scope.vert -lineContinuation100.vert -lineContinuation.vert -numeral.frag -400.geom -400.tesc -400.tese -410.tesc -420.tesc -420.tese -410.geom -430.vert -430.comp -430AofA.frag -440.vert -440.frag -450.vert -450.geom -450.tesc -450.tese -450.frag -450.comp -dce.frag -atomic_uint.frag -aggOps.frag -always-discard.frag -always-discard2.frag -conditionalDiscard.frag -conversion.frag -dataOut.frag -dataOutIndirect.frag -deepRvalue.frag -depthOut.frag -discard-dce.frag -doWhileLoop.frag -earlyReturnDiscard.frag -flowControl.frag -forLoop.frag -functionCall.frag -functionSemantics.frag -length.frag -localAggregates.frag -loops.frag -loopsArtificial.frag -matrix.frag -matrix2.frag -newTexture.frag -Operations.frag -prepost.frag -simpleFunctionCall.frag -structAssignment.frag -structDeref.frag -structure.frag -swizzle.frag -syntaxError.frag -test.frag -texture.frag -types.frag -uniformArray.frag -variableArrayIndex.frag -varyingArray.frag -varyingArrayIndirect.frag -voidFunction.frag -whileLoop.frag -nonVulkan.frag -negativeArraySize.comp -spv.atomic.comp -precise.tesc -precise_struct_block.vert -maxClipDistances.vert diff --git a/gtests/AST.FromFile.cpp b/gtests/AST.FromFile.cpp index 38d6d0a..3e5ea37 100644 --- a/gtests/AST.FromFile.cpp +++ b/gtests/AST.FromFile.cpp @@ -185,7 +185,11 @@ INSTANTIATE_TEST_CASE_P( "voidFunction.frag", "whileLoop.frag", "nonVulkan.frag", + "negativeArraySize.comp", "spv.atomic.comp", + "precise.tesc", + "precise_struct_block.vert", + "maxClipDistances.vert", })), FileNameAsCustomTestSuffix ); diff --git a/gtests/Pp.FromFile.cpp b/gtests/Pp.FromFile.cpp index 01bdfc3..04ac3f7 100644 --- a/gtests/Pp.FromFile.cpp +++ b/gtests/Pp.FromFile.cpp @@ -65,6 +65,7 @@ INSTANTIATE_TEST_CASE_P( "preprocessor.success_if_parse_would_fail.vert", "preprocessor.defined.vert", "preprocessor.many.endif.vert", + "preprocessor.eof_missing.vert", })), FileNameAsCustomTestSuffix ); diff --git a/gtests/Spv.FromFile.cpp b/gtests/Spv.FromFile.cpp index fd9a38b..3906779 100644 --- a/gtests/Spv.FromFile.cpp +++ b/gtests/Spv.FromFile.cpp @@ -184,6 +184,9 @@ INSTANTIATE_TEST_CASE_P( "spv.specConstant.vert", "spv.specConstant.comp", "spv.specConstantComposite.vert", + "spv.specConstantOperations.vert", + "spv.precise.tese", + "spv.precise.tesc", })), FileNameAsCustomTestSuffix );