// Copyright IBM Corp. 2024, 2026
// SPDX-License-Identifier: BUSL-1.1

package plugin_tests

import (
	"testing"

	"github.com/hashicorp/packer/packer_test/common"
	"github.com/stretchr/testify/suite"
)

type PackerPluginTestSuite struct {
	*common.PackerTestSuite
}

func Test_PackerPluginSuite(t *testing.T) {
	baseSuite, cleanup := common.InitBaseSuite(t)
	defer cleanup()
	baseSuite.CompileTestPluginVersions(t,
		"1.0.0",
		"1.0.0+metadata",
		"1.0.1-alpha1",
		"1.0.9",
		"1.0.10",
		"1.0.0-dev",
		"1.0.0-dev+metadata",
		"1.0.10+metadata",
		"1.0.1-dev",
		"2.0.0",
	)

	ts := &PackerPluginTestSuite{
		baseSuite,
	}

	suite.Run(t, ts)
}
