Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 397 for testPipe (0.24 sec)

  1. platforms/core-runtime/files/src/testFixtures/groovy/org/gradle/internal/file/AbstractFileMetadataAccessorTest.groovy

            stat.length == 0
            assertSameAccessType(stat, VIA_SYMLINK)
        }
    
        @Requires(UnitTestPreconditions.UnixDerivative)
        def "stats named pipes"() {
            def pipe = tmpDir.file("testPipe").createNamedPipe()
    
            when:
            accessor.stat(pipe)
            then:
            thrown(UncheckedIOException)
        }
    
        @Requires(UnitTestPreconditions.FilePermissions)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java

            new TestFileHelper(this).tgzTo(tarFile, readOnly);
            return this;
        }
    
        public TestFile tbzTo(TestFile tarFile) {
            return tbzTo(tarFile, false);
        }
    
        public TestFile tbzTo(TestFile tarFile, boolean readOnly) {
            new TestFileHelper(this).tbzTo(tarFile, readOnly);
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:31:52 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  3. platforms/jvm/plugins-jvm-test-suite/src/integTest/groovy/org/gradle/api/plugins/JvmTestSuitePluginIntegrationTest.groovy

                            testType = TestSuiteType.INTEGRATION_TEST
    
                            dependencies {
                                implementation project()
                            }
                        }
                    }
                }
                """.stripIndent()
    
            expect:
            succeeds "outgoingVariants"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 16:00:57 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/integTest/groovy/org/gradle/integtests/ExecIntegrationTest.groovy

                    def testFile = file("$buildDir/out.txt")
                    outputs.file testFile
                    executable = org.gradle.internal.jvm.Jvm.current().getJavaExecutable()
                    args '-cp', sourceSets.main.runtimeClasspath.asPath, 'org.gradle.TestMain', projectDir, testFile
                    doLast {
                        assert testFile.exists()
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 20:01:36 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. src/io/pipe_test.go

    	n, err := w.Write(data)
    	if err != nil {
    		t.Errorf("write: %v", err)
    	}
    	if n != len(data) {
    		t.Errorf("short write: %d != %d", n, len(data))
    	}
    	c <- 0
    }
    
    // Test a single read/write pair.
    func TestPipe1(t *testing.T) {
    	c := make(chan int)
    	r, w := Pipe()
    	var buf = make([]byte, 64)
    	go checkWrite(t, w, []byte("hello, world"), c)
    	n, err := r.Read(buf)
    	if err != nil {
    		t.Errorf("read: %v", err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/AbstractModule.groovy

        TestFile getSha512File(TestFile file) {
            getHashFile(file, Hashing.sha512())
        }
    
        TestFile sha512File(TestFile file) {
            hashFile(file, Hashing.sha512())
        }
    
        TestFile getMd5File(TestFile file) {
            getHashFile(file, Hashing.md5())
        }
    
        TestFile md5File(TestFile file) {
            hashFile(file, Hashing.md5())
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5K bytes
    - Viewed (0)
  7. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/executer/IntegrationTestBuildContext.java

            }
            return new ReleasedGradleDistribution(version, previousVersionDir.file(version));
        }
    
        protected static TestFile file(String propertyName, String defaultPath) {
            TestFile testFile = optionalFile(propertyName);
            if (testFile != null) {
                return testFile;
            }
            if (defaultPath == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/integtests/JavaProjectIntegrationTest.groovy

            testFile("build/classes/java/test/test.resource").assertDoesNotExist()
    
            testFile("build/classes/java/main/Main.class").assertExists()
            testFile("build/classes/java/test/TestFoo.class").assertExists()
        }
    
        @Test
        void generatesArtifactsWhenVersionIsEmpty() {
            testFile("settings.gradle") << "rootProject.name = 'empty'"
            def buildFile = testFile("build.gradle")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 20:01:36 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  9. platforms/core-execution/execution-e2e-tests/src/integTest/groovy/org/gradle/integtests/fixtures/StaleOutputJavaProject.groovy

    import org.gradle.test.fixtures.file.TestFile
    
    class StaleOutputJavaProject {
        public final static String JAR_TASK_NAME = 'jar'
        private final TestFile testDir
        private final String projectPath
        private final String projectDir
        private final String buildDirName
        private final TestFile mainSourceFile
        private final TestFile redundantSourceFile
        private final TestFile mainClassFile
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 04 10:15:40 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/internal/classpath/transforms/ClasspathElementTransformTest.groovy

        }
    
        def "instrumentation for #factory preserves classes"() {
            given:
            def testFile = jar(testDir.file("thing.jar")) {
                manifest {}
                entry("Foo.class", classOne())
            }
    
            expect:
            with(transformJar(factory, testFile)) {
                if (expectManifest) {
                    assertManifestPresentAndFirstEntry()
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 14 09:24:02 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top