Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for setupCmds (0.44 sec)

  1. src/net/interface_linux_test.go

    	ti.name = fmt.Sprintf("gotest%d", suffix)
    	xname, err := exec.LookPath("ip")
    	if err != nil {
    		return err
    	}
    	ti.setupCmds = append(ti.setupCmds, &exec.Cmd{
    		Path: xname,
    		Args: []string{"ip", "link", "add", ti.name, "type", "dummy"},
    	})
    	ti.setupCmds = append(ti.setupCmds, &exec.Cmd{
    		Path: xname,
    		Args: []string{"ip", "address", "add", ti.local, "peer", ti.remote, "dev", ti.name},
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 06 00:05:32 UTC 2018
    - 3.7K bytes
    - Viewed (0)
  2. src/net/interface_bsd_test.go

    	ti.name = fmt.Sprintf("gif%d", suffix)
    	xname, err := exec.LookPath("ifconfig")
    	if err != nil {
    		return err
    	}
    	ti.setupCmds = append(ti.setupCmds, &exec.Cmd{
    		Path: xname,
    		Args: []string{"ifconfig", ti.name, "create"},
    	})
    	ti.setupCmds = append(ti.setupCmds, &exec.Cmd{
    		Path: xname,
    		Args: []string{"ifconfig", ti.name, "inet", ti.local, ti.remote},
    	})
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  3. src/net/interface_unix_test.go

    	"runtime"
    	"strings"
    	"testing"
    	"time"
    )
    
    type testInterface struct {
    	name         string
    	local        string
    	remote       string
    	setupCmds    []*exec.Cmd
    	teardownCmds []*exec.Cmd
    }
    
    func (ti *testInterface) setup() error {
    	for _, cmd := range ti.setupCmds {
    		if out, err := cmd.CombinedOutput(); err != nil {
    			return fmt.Errorf("args=%v out=%q err=%v", cmd.Args, string(out), err)
    		}
    	}
    	return nil
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jul 18 23:51:35 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. security/pkg/nodeagent/sds/sdsservice_test.go

    		s := setupSDS(t)
    		c := s.Connect()
    		s.Verify(c.RequestResponseAck(t, &discovery.DiscoveryRequest{ResourceNames: []string{rootResourceName}}), expectRoot)
    		s.Verify(c.RequestResponseAck(t, &discovery.DiscoveryRequest{ResourceNames: []string{rootResourceName}}), expectRoot)
    		c.ExpectNoResponse(t)
    	})
    	t.Run("parallel", func(t *testing.T) {
    		s := setupSDS(t)
    		cert := s.Connect()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 17 20:12:58 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  5. src/cmd/dist/test.go

    // run. testFlags is the list of flags to pass to the test package.
    //
    // The caller must call setupCmd on the resulting exec.Cmd to set its directory
    // and environment.
    func (opts *goTest) buildArgs(t *tester) (build, run, pkgs, testFlags []string, setupCmd func(*exec.Cmd)) {
    	run = append(run, "-count=1") // Disallow caching
    	if opts.timeout != 0 {
    		d := opts.timeout * time.Duration(t.timeoutScale)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 16:01:35 UTC 2024
    - 50K bytes
    - Viewed (0)
Back to top