Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,311 for _mkdir (0.17 sec)

  1. platforms/core-runtime/build-process-services/src/test/groovy/org/gradle/api/internal/classpath/ManifestUtilTest.groovy

        @Rule
        final TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
        def jarFile = tmpDir.file("mydir/jarfile.jar").createFile()
    
        def "creates manifest classpath with relative urls"() {
            when:
            def classpathFiles = [tmpDir.file('mydir/jar1.jar'), tmpDir.file('mydir/nested/jar2.jar')]
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 06:16:07 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/build_relative_tmpdir.txt

    env GO111MODULE=off
    
    # If GOTMPDIR is relative, 'go build' should derive an absolute $WORK directory.
    cd $WORK
    mkdir tmp
    env GOTMPDIR=tmp
    go build -work a
    stderr 'WORK='$WORK
    
    # Similarly if TMP/TMPDIR is relative.
    env GOTMPDIR=
    env TMP=tmp    # Windows
    env TMPDIR=tmp # Unix
    go build -work a
    stderr 'WORK='$WORK
    
    -- a/a.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:18:16 UTC 2022
    - 337 bytes
    - Viewed (0)
  3. src/os/removeall_test.go

    	// The test is that we can remove them without calling fcntl
    	// on each one.
    	tmpdir := t.TempDir()
    	subdir := filepath.Join(tmpdir, "subdir")
    	if err := Mkdir(subdir, 0o755); err != nil {
    		t.Fatal(err)
    	}
    	for i := 0; i < 100; i++ {
    		subsubdir := filepath.Join(subdir, strconv.Itoa(i))
    		if err := Mkdir(filepath.Join(subdir, strconv.Itoa(i)), 0o755); err != nil {
    			t.Fatal(err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:21:29 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_tidy_temp.txt

    # 1. /tmp/go.mod exists
    # 2. run 'go mod tidy' in /tmp or in the child directory not having go.mod.
    
    [GOOS:plan9] stop  # Plan 9 has no $TMPDIR variable to set.
    
    env GOROOT=$TESTGO_GOROOT
    env TMP=$WORK
    env TMPDIR=$WORK
    mkdir $WORK/child
    
    ! go mod tidy
    ! stdout .
    stderr 'go: go.mod file not found in current directory or any parent directory'
    
    cd $WORK/child
    ! go mod tidy
    ! stdout .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 640 bytes
    - Viewed (0)
  5. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/msvcpp/LegacyWindowsSdkLocatorTest.groovy

            when:
            def result = windowsSdkLocator.locateComponent(sdkDir)
    
            then:
            result.available
            result.component.name == "installed sdk"
            result.component.version == VersionNumber.parse("7.0")
            result.component.baseDir == sdkDir
        }
    
        def sdkDir(String name) {
            def dir = tmpDir.createDir(name)
            dir.createFile("bin/rc.exe")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testerrors/badsym_test.go

    		if err := os.Mkdir(ret, 0755); err != nil {
    			t.Fatal(err)
    		}
    		return ret
    	}
    
    	cdir := mkdir("c")
    	godir := mkdir("go")
    
    	makeFile := func(mdir, base, source string) string {
    		ret := filepath.Join(mdir, base)
    		if err := os.WriteFile(ret, []byte(source), 0644); err != nil {
    			t.Fatal(err)
    		}
    		return ret
    	}
    
    	cDefFile := makeFile(cdir, "cdef.c", cDefSource)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:37:31 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. pkg/volume/volume_linux_test.go

    				t.Fatalf("error reading permission stats for tmpdir: %s", tmpDir)
    			}
    
    			var expectedGid int64 = int64(stat.Gid)
    			err = test.setupFunc(tmpDir)
    			if err != nil {
    				t.Errorf("for %s error running setup with: %v", test.description, err)
    			}
    
    			mounter := &localFakeMounter{path: "FAKE_DIR_DOESNT_EXIST"} // SetVolumeOwnership() must rely on tmpDir
    			err = SetVolumeOwnership(mounter, tmpDir, &expectedGid, test.fsGroupChangePolicy, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  8. hack/verify-openapi-docs-urls.sh

    source "${KUBE_ROOT}/hack/lib/init.sh"
    
    SPECROOT="${KUBE_ROOT}/api/openapi-spec"
    SPECV3PATH="${SPECROOT}/v3"
    
    _tmpdir="$(kube::realpath "$(mktemp -d -t "$(basename "$0").XXXXXX")")"
    mkdir -p "${_tmpdir}"
    trap 'rm -rf ${_tmpdir}' EXIT SIGINT
    trap "echo Aborted; exit;" SIGINT SIGTERM
    
    TMP_URLS="${_tmpdir}/docs_urls.txt"
    touch "${TMP_URLS}"
    
    
    for full_repo_path in "${SPECV3PATH}"/*.json; do
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 05:44:44 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. test/fixedbugs/bug369.go

    	"path/filepath"
    )
    
    func main() {
    	err := os.Chdir(filepath.Join(".", "fixedbugs", "bug369.dir"))
    	check(err)
    
    	tmpDir, err := ioutil.TempDir("", "bug369")
    	check(err)
    	defer os.RemoveAll(tmpDir)
    
    	tmp := func(name string) string {
    		return filepath.Join(tmpDir, name)
    	}
    
    	check(os.Mkdir(tmp("test"), 0777))
    
    	stdlibimportcfg, err := os.ReadFile(os.Getenv("STDLIB_IMPORTCFG"))
    	check(err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. platforms/jvm/jvm-services/src/test/groovy/org/gradle/internal/jvm/inspection/DefaultJvmMetadataDetectorTest.groovy

    import spock.lang.TempDir
    
    class DefaultJvmMetadataDetectorTest extends Specification {
    
        @TempDir
        File temporaryFolder
    
        TestFile tmpDir
        def setup() {
            tmpDir = new TestFile(new File(temporaryFolder, "tmp").tap { mkdirs() })
        }
    
        def "cleans up generated Probe class"() {
            given:
            def execHandleFactory = createExecHandleFactory(currentGradle())
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 18:25:34 UTC 2024
    - 22.9K bytes
    - Viewed (0)
Back to top