gitlab.com/apertussolutions/u-root@v7.0.0+incompatible/pkg/gpio/gpio_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  // +build !race
     6  
     7  package gpio
     8  
     9  import (
    10  	"testing"
    11  
    12  	"github.com/u-root/u-root/pkg/qemu"
    13  	"github.com/u-root/u-root/pkg/vmtest"
    14  )
    15  
    16  func TestIntegration(t *testing.T) {
    17  	vmtest.GolangTest(t, []string{"github.com/u-root/u-root/pkg/gpio"}, &vmtest.Options{
    18  		QEMUOpts: qemu.Options{
    19  			// Make GPIOs nums 10 to 20 available through the
    20  			// mockup driver.
    21  			KernelArgs: "gpio-mockup.gpio_mockup_ranges=10,20",
    22  		},
    23  	})
    24  }