Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 111 for mkdtemp (0.09 sec)

  1. src/cmd/compile/profile.sh

    # license that can be found in the LICENSE file.
    
    # This script collects a CPU profile of the compiler
    # for building all targets in std and cmd, and puts
    # the profile at cmd/compile/default.pgo.
    
    dir=$(mktemp -d)
    cd $dir
    seed=$(date)
    
    for p in $(go list std cmd); do
    	h=$(echo $seed $p | md5sum | cut -d ' ' -f 1)
    	echo $p $h
    	go build -o /dev/null -gcflags=-cpuprofile=$PWD/prof.$h $p
    done
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 23 17:31:10 UTC 2023
    - 588 bytes
    - Viewed (0)
  2. hack/lib/etcd.sh

      printf '%s\n' "${@}" | awk -F . '{ printf("%d%03d%03d\n", $1, $2, $3) }'
    }
    
    kube::etcd::start() {
      # validate before running
      kube::etcd::validate
    
      # Start etcd
      ETCD_DIR=${ETCD_DIR:-$(mktemp -d 2>/dev/null || mktemp -d -t test-etcd.XXXXXX)}
      if [[ -d "${ARTIFACTS:-}" ]]; then
        ETCD_LOGFILE="${ARTIFACTS}/etcd.$(uname -n).$(id -un).log.DEBUG.$(date +%Y%m%d-%H%M%S).$$"
      else
        ETCD_LOGFILE=${ETCD_LOGFILE:-"/dev/null"}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 03:36:35 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/hack/verify-codegen.sh

    # limitations under the License.
    
    set -o errexit
    set -o nounset
    set -o pipefail
    
    SCRIPT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
    DIFFROOT="${SCRIPT_ROOT}/pkg"
    TMP_DIFFROOT="$(mktemp -d -t "$(basename "$0").XXXXXX")/pkg"
    
    cleanup() {
      rm -rf "${TMP_DIFFROOT}"
    }
    trap "cleanup" EXIT SIGINT
    
    cleanup
    
    mkdir -p "${TMP_DIFFROOT}"
    cp -a "${DIFFROOT}"/* "${TMP_DIFFROOT}"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 05 23:05:26 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. pkg/volume/util/fs/fs_windows_test.go

    )
    
    func TestDiskUsage(t *testing.T) {
    
    	dir1, err := os.MkdirTemp("", "dir_1")
    	if err != nil {
    		t.Fatalf("TestDiskUsage failed: %s", err.Error())
    	}
    	defer os.RemoveAll(dir1)
    
    	tmpfile1, err := os.CreateTemp(dir1, "test")
    	if _, err = tmpfile1.WriteString("just for testing"); err != nil {
    		t.Fatalf("TestDiskUsage failed: %s", err.Error())
    	}
    	dir2, err := os.MkdirTemp(dir1, "dir_2")
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/hack/verify-codegen.sh

    # limitations under the License.
    
    set -o errexit
    set -o nounset
    set -o pipefail
    
    SCRIPT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd -P)"
    DIFFROOT="${SCRIPT_ROOT}/pkg"
    TMP_DIFFROOT="$(mktemp -d -t "$(basename "$0").XXXXXX")/pkg"
    
    cleanup() {
      rm -rf "${TMP_DIFFROOT}"
    }
    trap "cleanup" EXIT SIGINT
    
    cleanup
    
    mkdir -p "${TMP_DIFFROOT}"
    cp -a "${DIFFROOT}"/* "${TMP_DIFFROOT}"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Mar 05 23:05:26 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  6. util/gradle_integration_tests.sh

    #         integration-tests/gradle/gradlew
    #         integration-tests/gradle/gradlew.bat
    # Please commit your changes or stash them before you switch branches.
    
    GRADLE_TEMP="$(mktemp -d)"
    trap 'rm -rf "${GRADLE_TEMP}"' EXIT
    
    # The Gradle tests need the pom.xml only to read its version number.
    # (And the file needs to be two directory levels up from the Gradle build file.)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 16 20:48:20 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. src/io/ioutil/tempfile.go

    // will not choose the same directory. It is the caller's responsibility
    // to remove the directory when no longer needed.
    //
    // Deprecated: As of Go 1.17, this function simply calls [os.MkdirTemp].
    func TempDir(dir, pattern string) (name string, err error) {
    	return os.MkdirTemp(dir, pattern)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:34:35 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  8. cluster/images/etcd-version-monitor/Makefile

    ARCH:=amd64
    GOLANG_VERSION?=1.19.9
    REGISTRY?=staging-k8s.gcr.io
    TAG?=0.1.3
    IMAGE:=$(REGISTRY)/etcd-version-monitor:$(TAG)
    CURRENT_DIR:=$(pwd)
    TEMP_DIR:=$(shell mktemp -d)
    
    build:
    	# Copy the necessary files for building the image to TEMP_DIR.
    	cp etcd-version-monitor.go Dockerfile $(TEMP_DIR)
    
    	# Compile etcd-version-monitor.
    	docker run --rm -it \
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 11 07:06:46 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  9. hack/verify-openapi-docs-urls.sh

    set -o pipefail
    
    KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
    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}"
    
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 05:44:44 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  10. ci/official/utilities/setup_docker.sh

    # The container is not cleaned up automatically! Remove it with:
    # docker rm tf
    if ! docker container inspect tf >/dev/null 2>&1 ; then
      # Pass all existing TFCI_ variables into the Docker container
      env_file=$(mktemp)
      env | grep ^TFCI_ > "$env_file"
      docker run $TFCI_DOCKER_ARGS --name tf -w "$TFCI_GIT_DIR" -itd --rm \
          -v "$TFCI_GIT_DIR:$TFCI_GIT_DIR" \
          --env-file "$env_file" \
          "$TFCI_DOCKER_IMAGE" \
        bash
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 18:22:06 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top