Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 63 for writeResources (0.54 sec)

  1. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/LibraryApiDependenciesIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        def "can choose alternative library implementation of api"() {
            given:
            def app = new CppHelloWorldApp()
            app.executable.writeSources(file("src/main"))
            app.library.writeSources(file("src/hello"))
    
            app.alternateLibrarySources*.writeToDir(file("src/hello2"))
    
            and:
            buildFile << """
    model {
        components {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/SourceSetDependenciesIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        def "source dependency on source set of same type"() {
            def app = new CHelloWorldApp()
            app.executable.writeSources(file("src/main"))
            app.library.writeSources(file("src/library"))
    
            buildFile << """
    apply plugin: 'c'
    
    model {
        components {
            main(NativeExecutableSpec) {
                sources {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  3. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/visualstudio/VisualStudioIncrementalIntegrationTest.groovy

        def "visual studio tasks re-execute when new component is added"() {
            app.writeSources(file("src/main"))
    
            when:
            run "visualStudio"
    
            then:
            executedAndNotSkipped ":appVisualStudioSolution"
            executedAndNotSkipped getComponentTasks("app")
    
            when:
            app.writeSources(file("foo/src/main"))
            settingsFile << """
                include ':foo'
            """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  4. testing/smoke-test/src/smokeTest/groovy/org/gradle/play/integtest/fixtures/external/AbstractPlayExternalContinuousBuildIntegrationTest.groovy

        protected PlayApp playApp
    
        def setup() {
            playApp = new BasicPlayApp(versionNumber)
            writeSources()
            buildTimeout = 90
        }
    
        TestFile getPlayRunBuildFile() {
            buildFile
        }
    
        def writeSources() {
            playApp.writeSources(testDirectory)
    
            playRunBuildFile << """
                runPlay {
                    httpPort = 0
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  5. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/TestNGOptionsIntegrationTest.groovy

                            }
                        }
                    }
                }
            """
            writeSources(file("src/integrationTest/java"))
    
            when:
            succeeds("check")
            then:
            assertIntegrationTestsWereExecutedAndExcluded()
        }
    
        @Override
        void writeSources(TestFile sourcePath) {
            sourcePath.file("com/example/IncludedTest.java") << """
    package com.example;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/cunit/CUnitIntegrationTest.groovy

        }
    
        @ToBeFixedForConfigurationCache
        def "can configure location of cunit test sources"() {
            given:
            useStandardConfig()
            app.library.writeSources(file("src/hello"))
            app.cunitTests.writeSources(file("src/alternateHelloTest"))
    
            when:
            buildFile << """
    model {
        testSuites {
            helloTest {
                sources {
                    c {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 17K bytes
    - Viewed (0)
  7. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/JUnitOptionsIntegrationTest.groovy

                            }
                        }
                    }
                }
            """
            writeSources(file("src/integrationTest/java"))
    
            when:
            succeeds("check")
            then:
            assertIntegrationTestsWereExecutedAndExcluded()
        }
    
        @Override
        void writeSources(TestFile sourcePath) {
            sourcePath.file("com/example/Exclude.java") << """
    package com.example;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/ExeWithLibraryUsingLibraryHelloWorldApp.groovy

    import org.gradle.test.fixtures.file.TestFile
    
    class ExeWithLibraryUsingLibraryHelloWorldApp extends HelloWorldApp {
    
        void writeSources(TestFile mainSourceDir, TestFile librarySourceDir, TestFile greetingsLibrarySourceDir) {
            getExecutable().writeSources(mainSourceDir)
            getLibrary().writeSources(librarySourceDir)
            getGreetingsHeader().writeToDir(greetingsLibrarySourceDir)
            for (SourceFile sourceFile : greetingsSources) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  9. platforms/native/testing-native/src/integTest/groovy/org/gradle/nativeplatform/test/googletest/GoogleTestIntegrationTest.groovy

        }
    
        @ToBeFixedForConfigurationCache
        def "can configure location of googleTest test sources"() {
            given:
            useStandardConfig()
            app.library.writeSources(file("src/hello"))
            app.googleTestTests.writeSources(file("src/alternateHelloTest"))
    
            when:
            buildFile << """
    model {
        testSuites {
            helloTest {
                sources {
                    cpp {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.1K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/BinaryBuildTypesIntegrationTest.groovy

        @ToBeFixedForConfigurationCache
        def "executable with build type depends on library with matching build type"() {
            when:
            helloWorldApp.executable.writeSources(file("src/main"))
            helloWorldApp.library.writeSources(file("src/hello"))
    
            and:
            buildFile << """
    apply plugin: 'cpp'
    model {
        buildTypes {
            debug
            release
        }
        components {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.6K bytes
    - Viewed (0)
Back to top