16 lines
449 B
Go
16 lines
449 B
Go
|
|
package decisionpep
|
||
|
|
|
||
|
|
import (
|
||
|
|
"os/exec"
|
||
|
|
"path/filepath"
|
||
|
|
"testing"
|
||
|
|
)
|
||
|
|
|
||
|
|
// The distribution is a generated source slice, never a second implementation.
|
||
|
|
func TestConsumerExportMatchesProducerSource(t *testing.T) {
|
||
|
|
command := exec.Command("python3", filepath.Join("..", "..", "tools", "export_decisionpep_adapter.py"), "--check")
|
||
|
|
if output, err := command.CombinedOutput(); err != nil {
|
||
|
|
t.Fatalf("consumer export drift: %v\n%s", err, output)
|
||
|
|
}
|
||
|
|
}
|