mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-29 22:47:47 -04:00
24 lines
821 B
Go
24 lines
821 B
Go
package distros
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/duxlabs-dev/dux-shell/core/internal/deps"
|
|
)
|
|
|
|
func TestFedoraPackageMapping_EnterpriseLinuxUsesCOPRForMissingEPELPackages(t *testing.T) {
|
|
el := NewFedoraDistribution(Registry["rhel"], nil).GetPackageMapping(deps.WindowManagerNiri)
|
|
for _, name := range []string{"alacritty", "xwayland-satellite"} {
|
|
if el[name].Repository != RepoTypeCOPR || el[name].RepoURL != "avengemedia/danklinux" {
|
|
t.Errorf("rhel %s = %+v, want avengemedia/danklinux COPR", name, el[name])
|
|
}
|
|
}
|
|
|
|
fedora := NewFedoraDistribution(Registry["fedora"], nil).GetPackageMapping(deps.WindowManagerNiri)
|
|
for _, name := range []string{"alacritty", "xwayland-satellite"} {
|
|
if fedora[name].Repository != RepoTypeSystem {
|
|
t.Errorf("fedora %s = %+v, want system repo", name, fedora[name])
|
|
}
|
|
}
|
|
}
|