Wideband autonomous SDR analysis engine forked from sdr-visual-suite
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
543B

  1. package gpudemod
  2. import "testing"
  3. func TestStreamingExtractGPUExecUnavailableByDefault(t *testing.T) {
  4. r := &BatchRunner{eng: &Engine{sampleRate: 4000000}, streamState: make(map[int64]*ExtractStreamState)}
  5. job := StreamingExtractJob{
  6. SignalID: 1,
  7. OffsetHz: 12500,
  8. Bandwidth: 20000,
  9. OutRate: 200000,
  10. NumTaps: 65,
  11. ConfigHash: 777,
  12. }
  13. _, err := r.StreamingExtractGPUExec(makeDeterministicIQ(2048), []StreamingExtractJob{job})
  14. if err == nil {
  15. t.Fatalf("expected unavailable/disabled execution path by default")
  16. }
  17. }