Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for TestExecutable (0.18 sec)

  1. platforms/core-execution/workers/src/test/groovy/org/gradle/workers/internal/DefaultWorkerExecutorTest.groovy

            1 * worker.execute(_, _) >> { spec, buildOperation ->
                assert spec.implementationClass == TestExecutable.class
                return new DefaultWorkResult(true, null)
            }
        }
    
        def "executor executes a given runnable in-process"() {
            when:
            workerExecutor.classLoaderIsolation().submit(TestExecutable.class, Actions.doNothing())
    
            then:
            1 * workerThreadRegistry.workerThread >> true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 11 15:27:52 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/plugins/NativeComponentPluginTest.groovy

            then:
            def testExecutable = binaries.testExecutable
            with(project.tasks.linkTestExecutable) {
                it instanceof LinkExecutable
                it == testExecutable.tasks.link
                it.toolChain.get() == testExecutable.toolChain
                it.targetPlatform.get() == testExecutable.targetPlatform
                it.linkerArgs.get() == testExecutable.linker.args
            }
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. platforms/native/testing-native/src/test/groovy/org/gradle/nativeplatform/test/xctest/internal/DefaultSwiftXCTestSuiteTest.groovy

            def platformToolProvider = Stub(PlatformToolProvider)
    
            expect:
            def exe = testSuite.addExecutable(identity, targetPlatform, toolChain, platformToolProvider)
            exe.name == 'testExecutable'
            exe.targetPlatform == targetPlatform
            exe.toolChain == toolChain
            exe.platformToolProvider == platformToolProvider
        }
    
        def "can add a test bundle"() {
            expect:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  4. platforms/native/testing-native/src/test/groovy/org/gradle/nativeplatform/test/xctest/plugins/XCTestConventionPluginTest.groovy

            when:
            project.pluginManager.apply(XCTestConventionPlugin)
            project.evaluate()
    
            then:
            project.components.test == project.xctest
            project.xctest.binaries.get().name == ['testExecutable']
            project.components.containsAll(project.xctest.binaries.get())
    
            and:
            def binaries = project.xctest.binaries.get()
            binaries.size() == 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 8K bytes
    - Viewed (0)
  5. src/os/executable_test.go

    package os_test
    
    import (
    	"fmt"
    	"internal/testenv"
    	"os"
    	"path/filepath"
    	"runtime"
    	"testing"
    )
    
    const executable_EnvVar = "OSTEST_OUTPUT_EXECPATH"
    
    func TestExecutable(t *testing.T) {
    	testenv.MustHaveExec(t)
    	t.Parallel()
    
    	ep, err := os.Executable()
    	if err != nil {
    		t.Fatalf("Executable failed: %v", err)
    	}
    	// we want fn to be of the form "dir/prog"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/test/groovy/org/gradle/language/AbstractNativeComponentPluginTest.groovy

                            }
                        }
                    }
                }
            }
    
            then:
            NativeExecutableBinarySpec binary = realizeBinaries().testExecutable
            binary.tasks.withType(compileTaskClass)*.name as Set == ["compileTestExecutableTestAnotherOne", "compileTestExecutableTest${StringUtils.capitalize(pluginName)}"] as Set
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/test/groovy/org/gradle/language/assembler/plugins/AssemblerPluginTest.groovy

                            }
                        }
                    }
                }
            }
    
            then:
            NativeExecutableBinarySpec binary = realizeBinaries().testExecutable
            binary.tasks.withType(Assemble)*.name == ["assembleTestExecutableTestAnotherOne", "assembleTestExecutableTestAsm"]
    
            and:
            binary.tasks.withType(Assemble).each { compile ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  8. platforms/native/testing-native/src/test/groovy/org/gradle/nativeplatform/test/cpp/plugins/CppUnitTestPluginTest.groovy

            when:
            project.pluginManager.apply(CppUnitTestPlugin)
            project.evaluate()
    
            then:
            project.components.test == project.unitTest
            project.unitTest.binaries.get().name == ['testExecutable']
            project.components.containsAll project.unitTest.binaries.get()
    
            and:
            def binaries = project.unitTest.binaries.get()
            binaries.size() == 1
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.3K bytes
    - Viewed (0)
Back to top