Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 44 for writeResources (0.28 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/NativeDependentComponentsIntegrationSpec.groovy

                                lib library: 'hello'
                            }
                        }
                    }
                }
            '''.stripIndent()
    
            helloWorldApp.writeSources(file("src/main"), file("src/hello"), file("src/greetings"))
        }
    
        def "creates #taskPrefix dependents tasks"() {
            when:
            succeeds 'tasks'
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/MultipleNativeToolChainIntegrationTest.groovy

        def helloWorld = new CppCompilerDetectingTestApp()
    
        def setup() {
            buildFile << """
    plugins { id 'cpp' }
    """
    
            helloWorld.writeSources(file("src/main"))
        }
    
        @Requires(UnitTestPreconditions.CanInstallExecutable)
        @RequiresInstalledToolChain(ToolChainRequirement.GCC)
        @ToBeFixedForConfigurationCache
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  10. testing/smoke-test/src/smokeTest/groovy/org/gradle/play/integtest/fixtures/external/PlayApp.groovy

            URL resource = getClass().getResource("$baseDir/$path/$name");
            File file = new File(resource.toURI())
            return new SourceFile(path, name, file.text);
        }
    
        void writeSources(TestFile sourceDir) {
            gradleBuild.writeToDir(sourceDir)
            for (SourceFile srcFile : allFiles) {
                srcFile.writeToDir(sourceDir)
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top