Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 7,950 for testEnv (1.46 sec)

  1. src/internal/testenv/testenv.go

    // license that can be found in the LICENSE file.
    
    // Package testenv provides information about what functionality
    // is available in different testing environments run by the Go team.
    //
    // It is an internal package because these details are specific
    // to the Go team's test setup (on build.golang.org) and not
    // fundamental to tests in general.
    package testenv
    
    import (
    	"bytes"
    	"errors"
    	"flag"
    	"fmt"
    	"internal/cfg"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  2. src/cmd/link/link_test.go

    	importcfgfile := filepath.Join(tmpdir, "importcfg")
    	testenv.WriteImportcfg(t, importcfgfile, nil, main)
    
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "tool", "compile", "-importcfg="+importcfgfile, "-p=main", "main.go")
    	cmd.Dir = tmpdir
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		t.Fatalf("failed to compile main.go: %v, output: %s\n", err, out)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:02 UTC 2024
    - 43.5K bytes
    - Viewed (0)
  3. src/cmd/link/elf_test.go

    	"cmd/link/internal/ld"
    	"debug/elf"
    	"fmt"
    	"internal/platform"
    	"internal/testenv"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"sync"
    	"testing"
    	"text/template"
    )
    
    func getCCAndCCFLAGS(t *testing.T, env []string) (string, []string) {
    	goTool := testenv.GoToolPath(t)
    	cmd := testenv.Command(t, goTool, "env", "CC")
    	cmd.Env = env
    	ccb, err := cmd.Output()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 16:34:01 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  4. src/internal/testenv/testenv_test.go

    	goTool, err := testenv.GoTool()
    	if err != nil {
    		t.Fatalf("testenv.GoTool(): %v", err)
    	}
    	t.Logf("testenv.GoTool() = %q", goTool)
    
    	gotInfo, err := os.Stat(goTool)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if !os.SameFile(wantInfo, gotInfo) {
    		t.Fatalf("%q is not the same file as %q", absWant, goTool)
    	}
    }
    
    func TestHasGoBuild(t *testing.T) {
    	if !testenv.HasGoBuild() {
    		switch runtime.GOOS {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 25 23:12:44 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. src/runtime/signal_windows_test.go

    import (
    	"bufio"
    	"bytes"
    	"fmt"
    	"internal/testenv"
    	"os/exec"
    	"path/filepath"
    	"runtime"
    	"strings"
    	"syscall"
    	"testing"
    )
    
    func TestVectoredHandlerExceptionInNonGoThread(t *testing.T) {
    	if *flagQuick {
    		t.Skip("-quick")
    	}
    	if strings.HasPrefix(testenv.Builder(), "windows-amd64-2012") {
    		testenv.SkipFlaky(t, 49681)
    	}
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	testenv.MustHaveExecPath(t, "gcc")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 08:26:52 UTC 2023
    - 9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/test/global_test.go

    	dst := filepath.Join(dir, "test")
    
    	// Compile source.
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-o", dst, src)
    	out, err := cmd.CombinedOutput()
    	if err != nil {
    		t.Fatalf("could not build target: %v\n%s", err, out)
    	}
    
    	// Check destination to see if scanf code was included.
    	cmd = testenv.Command(t, testenv.GoToolPath(t), "tool", "nm", dst)
    	out, err = cmd.CombinedOutput()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 06 18:07:35 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. src/runtime/lockrank_test.go

    package runtime_test
    
    import (
    	"bytes"
    	"internal/testenv"
    	"os"
    	"os/exec"
    	"testing"
    )
    
    // Test that the generated code for the lock rank graph is up-to-date.
    func TestLockRankGenerated(t *testing.T) {
    	testenv.MustHaveGoRun(t)
    	cmd := testenv.CleanCmdEnv(testenv.Command(t, testenv.GoToolPath(t), "run", "mklockrank.go"))
    	want, err := cmd.Output()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 20:57:33 UTC 2023
    - 856 bytes
    - Viewed (0)
  8. src/cmd/internal/obj/riscv/asm_test.go

    	testenv.MustHaveGoBuild(t)
    
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "test")
    	cmd.Dir = "testdata/testbranch"
    	if out, err := testenv.CleanCmdEnv(cmd).CombinedOutput(); err != nil {
    		t.Errorf("Branch test failed: %v\n%s", err, out)
    	}
    }
    
    func TestPCAlign(t *testing.T) {
    	dir := t.TempDir()
    	tmpfile := filepath.Join(dir, "x.s")
    	asm := `
    TEXT _stub(SB),$0-0
    	FENCE
    	PCALIGN	$8
    	FENCE
    	RET
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 22 01:50:18 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. pkg/scheduler/framework/plugins/volumebinding/binder_test.go

    		testEnv.initCSINodes(scenario.initCSINodes)
    		testEnv.initVolumes(scenario.initPVs, nil)
    		testEnv.initClaims(scenario.initPVCs, nil)
    		testEnv.assumeVolumes(t, "node1", pod, scenario.bindings, scenario.provisionedPVCs)
    
    		// Before execute
    		if err := testEnv.updateVolumes(ctx, scenario.apiPVs); err != nil {
    			t.Errorf("Failed to update PVs: %v", err)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 09:46:58 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  10. src/cmd/link/internal/ld/nooptcgolink_test.go

    package ld
    
    import (
    	"internal/testenv"
    	"path/filepath"
    	"testing"
    )
    
    func TestNooptCgoBuild(t *testing.T) {
    	if testing.Short() {
    		t.Skip("skipping test in short mode.")
    	}
    	t.Parallel()
    
    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t)
    	dir := t.TempDir()
    	cmd := testenv.Command(t, testenv.GoToolPath(t), "build", "-gcflags=-N -l", "-o", filepath.Join(dir, "a.out"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:14 UTC 2022
    - 733 bytes
    - Viewed (0)
Back to top