Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 63 for writeResources (0.2 sec)

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

                    lib library: 'hello', linkage: 'static'
                }
            }
            hello(NativeLibrarySpec)
        }
    }
    """
    
            helloWorldApp.executable.writeSources(file("src/main"))
            helloWorldApp.library.writeSources(file("src/hello"))
        }
    
        @ToBeFixedForConfigurationCache
        def "can build when language tools that are not required are not available"() {
            when:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/testFixtures/groovy/org/gradle/nativeplatform/fixtures/app/TestNativeComponent.groovy

        List<SourceFile> getFiles() {
            return sourceFiles + headerFiles
        }
    
        abstract List<SourceFile> getSourceFiles()
    
        abstract List<SourceFile> getHeaderFiles()
    
        void writeSources(TestFile sourceDir) {
            for (SourceFile srcFile : files) {
                srcFile.writeToDir(sourceDir)
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/PrebuiltLibrariesIntegrationTest.groovy

        final app = new CppHelloWorldApp()
    
        def "setup"() {
            settingsFile << "rootProject.name = 'test'"
            app.executable.writeSources(file("src/main"))
            app.library.writeSources(file("libs/src/hello"))
    
            file("libs/build.gradle") << """
    apply plugin: 'cpp'
    model {
        flavors {
            english
            french
        }
        components {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  4. platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/testsuites/AbstractTestFrameworkOptionsIntegrationTest.groovy

                plugins {
                    id 'java'
                }
    
                ${mavenCentralRepository()}
    
                check.dependsOn testing.suites
            """
        }
    
        abstract void writeSources(TestFile sourcePath)
    
        void assertTestsWereExecutedAndExcluded() {
            DefaultTestExecutionResult result = new DefaultTestExecutionResult(testDirectory)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/integTest/groovy/org/gradle/language/objectivecpp/ObjectiveCppUnsupportedIntegrationTest.groovy

            given:
            buildFile << """
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
            """
    
            and:
            helloWorldApp.writeSources(file("src/main"))
    
            when:
            fails "compileMainExecutableMainObjcpp"
    
            then:
            failure.assertThatCause(containsString("Objective-C++ is not available on the Visual C++ toolchain"))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/integTest/groovy/org/gradle/language/objectivec/ObjectiveCUnsupportedIntegrationTest.groovy

            given:
            buildFile << """
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
            """
    
            and:
            helloWorldApp.writeSources(file("src/main"))
    
            when:
            fails "compileMainExecutableMainObjc"
    
            then:
            failure.assertThatCause(containsString("Objective-C is not available on the Visual C++ toolchain"))
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  7. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/GccToolChainCustomisationIntegrationTest.groovy

                    lib library: 'hello', linkage: 'static'
                }
            }
            hello(NativeLibrarySpec)
        }
    }
    """
    
            helloWorldApp.executable.writeSources(file("src/main"))
            helloWorldApp.library.writeSources(file("src/hello"))
        }
    
        @RequiresInstalledToolChain(SUPPORTS_32)
        @ToBeFixedForConfigurationCache
        def "can configure platform specific args"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  8. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/LibraryBinariesIntegrationTest.groovy

                        }
                    }
                }
            }
        }
    }
    """
    
            and:
            app.executable.writeSources(file("src/main"))
            app.library.writeSources(file("src/helloLib"))
    
            when:
            succeeds "installMainExecutable"
    
            then:
            installation("build/install/main").exec().out == app.englishOutput
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/SharedLibrarySoNameIntegrationTest.groovy

    class SharedLibrarySoNameIntegrationTest extends AbstractInstalledToolChainIntegrationSpec {
        def "setup"() {
            settingsFile << "rootProject.name = 'test'"
    
            def app = new CppHelloWorldApp()
            app.library.writeSources(file("src/hello"))
    
            buildFile << """
    apply plugin: 'cpp'
    model {
        components {
            hello(NativeLibrarySpec)
        }
    }
    """
        }
    
        @ToBeFixedForConfigurationCache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  10. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/platform/InstallExecutableIntegrationTest.groovy

        def setup() {
            buildFile << """
    plugins {
        id 'cpp'
    }
    model {
        components {
            main(NativeExecutableSpec)
        }
    }
    """
    
            testApp.writeSources(file("src/main"))
        }
    
        @ToBeFixedForConfigurationCache
        def "can create installation for a different os than the current one"() {
            String installOS
            if (os.windows) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top