Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 473 for tmpDirs (0.12 sec)

  1. testing/integ-test/src/integTest/groovy/org/gradle/integtests/fixture/TempDirIsUniquePerTestSpec.groovy

        static tests = new HashSet()
        static tmpDirs = new HashSet()
    
        def setup() {
            //it's very important we try to access the test dir in the setup()
            tmp.testDirectory
        }
    
        def "testOne"() {
            when:
            tests << "testOne"
            tmpDirs << tmp.testDirectory
    
            then:
            tests.size() == tmpDirs.size()
        }
    
        def "testTwo"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. testing/internal-testing/src/test/groovy/org/gradle/util/TempDirIsUniquePerTestSpec.groovy

        static tests = new HashSet()
        static tmpDirs = new HashSet()
    
        def setup() {
            //it's very important we try to access the test dir in the setup()
            temp.testDirectory
        }
    
        def "testOne"() {
            when:
            tests << "testOne"
            tmpDirs << temp.testDirectory
    
            then:
            tests.size() == tmpDirs.size()
        }
    
        def "testTwo"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. platforms/ide/ide/src/test/groovy/org/gradle/plugins/ide/idea/model/PathFactoryTest.groovy

            factory.addPathVariable('SUB_DIR', tmpDir.file('sub'))
    
            expect:
            def path = factory.path(tmpDir.file('sub', 'a'))
            path.url == 'file://$SUB_DIR$/a'
            path.relPath == '$SUB_DIR$/a'
        }
    
        def createsPathForARootDir() {
            factory.addPathVariable('SUB_DIR', tmpDir.file('sub'))
            factory.addPathVariable('ROOT_DIR', tmpDir.testDirectory)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  4. pkg/volume/local/local_test.go

    }
    
    func TestCanSupport(t *testing.T) {
    	tmpDir, plug := getPlugin(t)
    	defer os.RemoveAll(tmpDir)
    
    	if !plug.CanSupport(getTestVolume(false, tmpDir, false, nil)) {
    		t.Errorf("Expected true")
    	}
    }
    
    func TestGetAccessModes(t *testing.T) {
    	tmpDir, plug := getPersistentPlugin(t)
    	defer os.RemoveAll(tmpDir)
    
    	modes := plug.GetAccessModes()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 08 10:53:39 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/initialization/layout/BuildLayoutFactoryTest.groovy

            layout.buildDefinitionMissing
    
            cleanup: "temporary tree"
            tmpDir.deleteDir()
        }
    
        def "returns closest ancestor directory that contains a #settingsFilename file"() {
            given:
            def locator = buildLayoutFactoryFor()
    
            and:
            def currentDir = tmpDir.createDir("sub/current")
            def subDir = tmpDir.createDir("sub")
            def settingsFile = subDir.createFile(settingsFilename)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 09:18:31 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/ZipHasherTest.groovy

        def "adding an empty jar inside another jar changes the hashcode"() {
            given:
            def outerContent = tmpDir.createDir("outer")
            def outer = tmpDir.file("outer.jar")
            outerContent.zipTo(outer)
            def originalHash = zipHasher.hash(snapshotContext(outer))
    
            when:
            def innerContent = tmpDir.createDir("inner")
            def inner = outerContent.file("inner.jar")
            innerContent.zipTo(inner)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  7. platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/filesystem/services/UnsupportedFilePermissionsTest.groovy

            when:
            permissions.chmod(tmpDir.createFile("file"), 0644)
            permissions.chmod(tmpDir.createDir("dir"), 0644)
    
            then:
            outputEventListener.toString() == WARN_MESSAGE
        }
    
        def "warns at most once"() {
            when:
            permissions.chmod(tmpDir.createFile("file"), 0644)
            permissions.getUnixMode(tmpDir.createDir("dir"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  8. platforms/software/platform-base/src/test/groovy/org/gradle/language/base/internal/tasks/StaleOutputCleanerTest.groovy

        }
    
        def "deletes empty parent directories"() {
            def file1 = tmpDir.file('foo/bar/file1').createFile()
            tmpDir.file('foo/baz/file2').createFile()
    
            expect:
            StaleOutputCleaner.cleanOutputs(deleter, files(file1), tmpDir.testDirectory)
            !tmpDir.file('foo/bar').exists()
            tmpDir.file('foo/baz').exists()
        }
    
        def "deletes parent directories regardless of order"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/impl/AbstractSymlinkDeleterTest.groovy

        )
    
        def doesNotDeleteFilesInsideSymlinkDir() {
            Assume.assumeTrue(canCreateSymbolicLinkToDirectory())
    
            given:
            def keepTxt = tmpDir.createFile("originalDir", "keep.txt")
            def originalDir = keepTxt.parentFile
            def link = new File(tmpDir.getTestDirectory(), "link")
    
            when:
            createSymbolicLink(link, originalDir)
    
            then:
            link.exists()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:55:52 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/api/internal/file/DefaultFileOperationsTest.groovy

            fileTree.matching(_) >> fileTree
            resolver.resolve('dir') >> tmpDir.getTestDirectory()
    
            when:
            def result = fileOperations.copy { from 'file'; into 'dir' }
    
            then:
            !result.didWork
        }
    
        def deletes() {
            def fileToBeDeleted = tmpDir.file("file")
            def fileCollection = Stub(FileCollectionInternal)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 15:15:04 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top