github.com/mvdan/u-root-coreutils@v0.0.0-20230122170626-c2eef2898555/pkg/pty/pty_integration_test.go (about)

     1  // Copyright 2019 the u-root Authors. All rights reserved
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build !race
     6  // +build !race
     7  
     8  package pty
     9  
    10  import (
    11  	"testing"
    12  	"time"
    13  
    14  	"github.com/mvdan/u-root-coreutils/pkg/qemu"
    15  	"github.com/mvdan/u-root-coreutils/pkg/vmtest"
    16  )
    17  
    18  func TestIntegration(t *testing.T) {
    19  	o := &vmtest.Options{
    20  		QEMUOpts: qemu.Options{
    21  			Timeout: 120 * time.Second,
    22  		},
    23  	}
    24  	vmtest.GolangTest(t, []string{"github.com/mvdan/u-root-coreutils/pkg/pty"}, o)
    25  }