blob: f28f7cda9cd3f9fcb9b0f858d6e2b29fa4fa71a9 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package targets
import (
"context"
"testing"
)
func TestNewAEMUTarget(t *testing.T) {
ctx := context.Background()
a, err := NewAEMUTarget(
ctx,
QEMUConfig{
Target: "x64",
},
Options{},
)
if err != nil {
t.Fatalf("Unable to create NewAEMUTarget: %s", err)
}
if a.binary != aemuBinaryName {
t.Errorf("Unexpected aemu binary %s, expected %s", a.binary, aemuBinaryName)
}
}