Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file added base/iox/imagex/testdata/test.bmp
Binary file not shown.
Binary file added base/iox/imagex/testdata/test.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added base/iox/imagex/testdata/test.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added base/iox/imagex/testdata/test.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added base/iox/imagex/testdata/test.tif
Binary file not shown.
36 changes: 36 additions & 0 deletions cli/testdata/testwrite.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
Includes = [
'testinc.toml',
'testinc3.toml',
'testinc2.toml'
]
GUI = true
GPU = true
Debug = false
ParamSet = ''
ParamFile = ''
ParamDocFile = ''
Tag = 'testing'
Note = 'something else'
Run = 0
Runs = 8
Epochs = 500
NTrials = 32
NData = 12
SaveWts = false
EpochLog = false
RunLog = false
TrialLog = false
TestEpochLog = false
TestTrialLog = false
NetData = false
Enum = 'TestValue2'
Slice = []
StrSlice = []

[PatParams]
NPats = 14
Sparseness = 0.22

[Network]
'#VSPatchPrjn:Prjn.Learn.LRate' = '0.01'
'.PFCLayer:Layer.Inhib.Layer.Gi' = '2.4'
16 changes: 8 additions & 8 deletions cmd/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,27 +147,27 @@ func (ld *linuxDistro) String() string {
// based on https://docs.fyne.io/started.
var linuxDistros = []*linuxDistro{
{name: "Debian/Ubuntu", sudo: true, tool: "apt", command: []string{"install"}, packages: []string{
"gcc", "libgl1-mesa-dev", "libegl1-mesa-dev", "mesa-vulkan-drivers", "xorg-dev",
"gcc", "libgl1-mesa-dev", "libegl1-mesa-dev", "mesa-vulkan-drivers", "xorg-dev", "libwayland-dev",
}},
{name: "Fedora", sudo: true, tool: "dnf", command: []string{"install"}, packages: []string{
"gcc", "libX11-devel", "libXcursor-devel", "libXrandr-devel", "libXinerama-devel", "mesa-libGL-devel", "libXi-devel", "libXxf86vm-devel", "mesa-vulkan-drivers",
"gcc", "libX11-devel", "libXcursor-devel", "libXrandr-devel", "libXinerama-devel", "mesa-libGL-devel", "libXi-devel", "libXxf86vm-devel", "mesa-vulkan-drivers", "wayland-devel",
}},
{name: "Arch", sudo: true, tool: "pacman", command: []string{"-S"}, packages: []string{
"xorg-server-devel", "libxcursor", "libxrandr", "libxinerama", "libxi", "vulkan-swrast",
"xorg-server-devel", "libxcursor", "libxrandr", "libxinerama", "libxi", "vulkan-swrast", "wayland",
}},
{name: "Solus", sudo: true, tool: "eopkg", command: []string{"it", "-c"}, packages: []string{
"system.devel", "mesalib-devel", "libxrandr-devel", "libxcursor-devel", "libxi-devel", "libxinerama-devel", "vulkan",
"system.devel", "mesalib-devel", "libxrandr-devel", "libxcursor-devel", "libxi-devel", "libxinerama-devel", "vulkan", "wayland-devel",
}},
{name: "openSUSE", sudo: true, tool: "zypper", command: []string{"install"}, packages: []string{
"gcc", "libXcursor-devel", "libXrandr-devel", "Mesa-libGL-devel", "libXi-devel", "libXinerama-devel", "libXxf86vm-devel", "libvulkan1",
"gcc", "libXcursor-devel", "libXrandr-devel", "Mesa-libGL-devel", "libXi-devel", "libXinerama-devel", "libXxf86vm-devel", "libvulkan1", "wayland-devel",
}},
{name: "Void", sudo: true, tool: "xbps-install", command: []string{"-S"}, packages: []string{
"base-devel", "xorg-server-devel", "libXrandr-devel", "libXcursor-devel", "libXinerama-devel", "vulkan-loader",
"base-devel", "xorg-server-devel", "libXrandr-devel", "libXcursor-devel", "libXinerama-devel", "vulkan-loader", "wayland-devel",
}},
{name: "Alpine", sudo: true, tool: "apk", command: []string{"add"}, packages: []string{
"gcc", "libxcursor-dev", "libxrandr-dev", "libxinerama-dev", "libxi-dev", "linux-headers", "mesa-dev", "vulkan-loader",
"gcc", "libxcursor-dev", "libxrandr-dev", "libxinerama-dev", "libxi-dev", "linux-headers", "mesa-dev", "vulkan-loader", "wayland-dev",
}},
{name: "NixOS", sudo: false, tool: "nix-shell", command: []string{"-p"}, packages: []string{
"libGL", "pkg-config", "xorg.libX11.dev", "xorg.libXcursor", "xorg.libXi", "xorg.libXinerama", "xorg.libXrandr", "xorg.libXxf86vm", "mesa.drivers", "vulkan-loader",
"libGL", "pkg-config", "xorg.libX11.dev", "xorg.libXcursor", "xorg.libXi", "xorg.libXinerama", "xorg.libXrandr", "xorg.libXxf86vm", "mesa.drivers", "vulkan-loader", "wayland",
}},
}
16 changes: 8 additions & 8 deletions cmd/setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import (
"github.com/stretchr/testify/assert"
)

const expectedlinuxDistroString = `Debian/Ubuntu: sudo apt install gcc libgl1-mesa-dev libegl1-mesa-dev mesa-vulkan-drivers xorg-dev
Fedora: sudo dnf install gcc libX11-devel libXcursor-devel libXrandr-devel libXinerama-devel mesa-libGL-devel libXi-devel libXxf86vm-devel mesa-vulkan-drivers
Arch: sudo pacman -S xorg-server-devel libxcursor libxrandr libxinerama libxi vulkan-swrast
Solus: sudo eopkg it -c system.devel mesalib-devel libxrandr-devel libxcursor-devel libxi-devel libxinerama-devel vulkan
openSUSE: sudo zypper install gcc libXcursor-devel libXrandr-devel Mesa-libGL-devel libXi-devel libXinerama-devel libXxf86vm-devel libvulkan1
Void: sudo xbps-install -S base-devel xorg-server-devel libXrandr-devel libXcursor-devel libXinerama-devel vulkan-loader
Alpine: sudo apk add gcc libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev linux-headers mesa-dev vulkan-loader
NixOS: nix-shell -p libGL pkg-config xorg.libX11.dev xorg.libXcursor xorg.libXi xorg.libXinerama xorg.libXrandr xorg.libXxf86vm mesa.drivers vulkan-loader
const expectedlinuxDistroString = `Debian/Ubuntu: sudo apt install gcc libgl1-mesa-dev libegl1-mesa-dev mesa-vulkan-drivers xorg-dev libwayland-dev
Fedora: sudo dnf install gcc libX11-devel libXcursor-devel libXrandr-devel libXinerama-devel mesa-libGL-devel libXi-devel libXxf86vm-devel mesa-vulkan-drivers wayland-devel
Arch: sudo pacman -S xorg-server-devel libxcursor libxrandr libxinerama libxi vulkan-swrast wayland
Solus: sudo eopkg it -c system.devel mesalib-devel libxrandr-devel libxcursor-devel libxi-devel libxinerama-devel vulkan wayland-devel
openSUSE: sudo zypper install gcc libXcursor-devel libXrandr-devel Mesa-libGL-devel libXi-devel libXinerama-devel libXxf86vm-devel libvulkan1 wayland-devel
Void: sudo xbps-install -S base-devel xorg-server-devel libXrandr-devel libXcursor-devel libXinerama-devel vulkan-loader wayland-devel
Alpine: sudo apk add gcc libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev linux-headers mesa-dev vulkan-loader wayland-dev
NixOS: nix-shell -p libGL pkg-config xorg.libX11.dev xorg.libXcursor xorg.libXi xorg.libXinerama xorg.libXrandr xorg.libXxf86vm mesa.drivers vulkan-loader wayland
`

func TestLinuxDistroString(t *testing.T) {
Expand Down
Binary file added colors/colormap/testdata/colormaps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added colors/gradient/testdata/linear-user-space.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added colors/gradient/testdata/linear.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added colors/gradient/testdata/radial-rot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added colors/gradient/testdata/radial-user-space.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added colors/gradient/testdata/radial.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added colors/testdata/alpha_blend_10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added colors/testdata/alpha_blend_50.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added colors/testdata/alpha_blend_90.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added colors/testdata/spaceddark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added colors/testdata/spacedlight.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added content/testdata/set-source.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/testdata/app/scene-init.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/testdata/bind/basic.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/testdata/bind/change.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/testdata/bind/meter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/testdata/bind/slider.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/testdata/bind/spinner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/testdata/bind/text.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/testdata/bind/update.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/testdata/bind/validator-invalid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/testdata/bind/validator-valid.png
Binary file added core/testdata/button/font-size.png
Binary file added core/testdata/button/icon.png
Binary file added core/testdata/button/menu-click.png
Binary file added core/testdata/button/menu.png
Binary file added core/testdata/button/shortcut-menu.png
Binary file added core/testdata/button/text-icon.png
Binary file added core/testdata/button/text.png
Binary file added core/testdata/button/type-action.png
Binary file added core/testdata/button/type-elevated.png
Binary file added core/testdata/button/type-filled.png
Binary file added core/testdata/button/type-menu.png
Binary file added core/testdata/button/type-outlined.png
Binary file added core/testdata/button/type-text.png
Binary file added core/testdata/button/type-tonal.png
Binary file added core/testdata/canvas/basic.png
Binary file added core/testdata/chooser/allow-new-click.png
Binary file added core/testdata/chooser/basic.png
Binary file added core/testdata/chooser/change.png
Binary file added core/testdata/chooser/click.png
Binary file added core/testdata/chooser/current-value.png
Binary file added core/testdata/chooser/editable-click.png
Binary file added core/testdata/chooser/editable.png
Binary file added core/testdata/chooser/icon.png
Binary file added core/testdata/chooser/items.png
Binary file added core/testdata/chooser/outlined.png
Binary file added core/testdata/chooser/placeholder.png
Binary file added core/testdata/duration-input/basic.png
Binary file added core/testdata/duration-input/read-only.png
Binary file added core/testdata/events/event-manager.png
Binary file added core/testdata/events/system-events.png
Binary file added core/testdata/form/addfields.png
Binary file added core/testdata/form/change.png
Binary file added core/testdata/form/field-value.png
Binary file added core/testdata/form/inline.png
Binary file added core/testdata/form/read-only.png
Binary file added core/testdata/form/style.png
Binary file added core/testdata/frame/background.png
Binary file added core/testdata/frame/basic.png
Binary file added core/testdata/frame/border-radius.png
Binary file added core/testdata/frame/border.png
Binary file added core/testdata/frame/gradient.png
Binary file added core/testdata/frame/no-grow.png
Binary file added core/testdata/frame/scroll-margin-padding.png
Binary file added core/testdata/frame/scroll-margin.png
Binary file added core/testdata/frame/scroll-no-margin.png
Binary file added core/testdata/func-button/args.png
Binary file added core/testdata/icon/basic.png
Binary file added core/testdata/icon/filled.png
Binary file added core/testdata/image/basic.png
Binary file added core/testdata/image/cropped.png
Binary file added core/testdata/image/direct.png
Binary file added core/testdata/image/scrolled.png
Binary file added core/testdata/image/size.png
Binary file added core/testdata/inline-list/basic.png
Binary file added core/testdata/inline-list/update.png
Binary file added core/testdata/keyed-list/any.png
Binary file added core/testdata/keyed-list/basic.png
Binary file added core/testdata/keyed-list/change-key.png
Binary file added core/testdata/keyed-list/change.png
Binary file added core/testdata/keyed-list/inline.png
Binary file added core/testdata/keyed-list/read-only.png
Binary file added core/testdata/layout/custom-button.png
Binary file added core/testdata/layout/custom.png
Binary file added core/testdata/layout/maxgrow/all.png
Binary file added core/testdata/layout/maxgrow/first.png
Binary file added core/testdata/layout/maxgrow/none.png
Binary file added core/testdata/layout/maxgrow/two.png
Binary file added core/testdata/layout/parent-relative-splits.png
Binary file added core/testdata/layout/parent-relative.png
Binary file added core/testdata/layout/scroll/label.png
Binary file added core/testdata/list/basic.png
Binary file added core/testdata/list/read-only.png
Binary file added core/testdata/list/scroll.png
Binary file added core/testdata/list/strings.png
Binary file added core/testdata/meter/basic.png
Binary file added core/testdata/meter/bounds.png
Binary file added core/testdata/meter/circle-text.png
Binary file added core/testdata/meter/circle.png
Binary file added core/testdata/meter/column.png
Binary file added core/testdata/meter/semicircle-text.png
Binary file added core/testdata/meter/semicircle.png
Binary file added core/testdata/meter/value.png
Binary file added core/testdata/render/border-leak.png
Binary file added core/testdata/render/button-alignment.png
Binary file added core/testdata/render/element-cut-off.png
Binary file added core/testdata/render/frame-alignment-center.png
Binary file added core/testdata/render/frame-alignment.png
Binary file added core/testdata/render/grid-centered-frame.png
Binary file added core/testdata/render/one-side-border.png
Binary file added core/testdata/render/parent-border-radius.png
Binary file added core/testdata/render/parent-gradient.png
Binary file added core/testdata/slider/arrow-keys.png
Binary file added core/testdata/slider/basic.png
Binary file added core/testdata/slider/bounds.png
Binary file added core/testdata/slider/change-click.png
Binary file added core/testdata/slider/enforce-step.png
Binary file added core/testdata/slider/icon.png
Binary file added core/testdata/slider/start.png
Binary file added core/testdata/slider/step.png
Binary file added core/testdata/slider/value.png
Binary file added core/testdata/snackbar/button-icon.png
Binary file added core/testdata/snackbar/button.png
Binary file added core/testdata/snackbar/error-label.png
Binary file added core/testdata/snackbar/error.png
Binary file added core/testdata/snackbar/icon.png
Binary file added core/testdata/snackbar/message.png
Binary file added core/testdata/snackbar/no-error.png
Binary file added core/testdata/snackbar/text.png
Binary file added core/testdata/spinner/arrow-keys.png
Binary file added core/testdata/spinner/basic.png
Binary file added core/testdata/spinner/bounds.png
Binary file added core/testdata/spinner/buttons.png
Binary file added core/testdata/spinner/change-arrow-key.png
Binary file added core/testdata/spinner/change-button.png
Binary file added core/testdata/spinner/change-number-key.png
Binary file added core/testdata/spinner/enforce-step.png
Binary file added core/testdata/spinner/format.png
Binary file added core/testdata/spinner/outlined.png
Binary file added core/testdata/spinner/step.png
Binary file added core/testdata/spinner/value.png
Binary file added core/testdata/splits/column-2-row.png
Binary file added core/testdata/splits/column-2.png
Binary file added core/testdata/splits/column-4.png
Binary file added core/testdata/splits/mixed-vertical.png
Binary file added core/testdata/splits/row-2-column.png
Binary file added core/testdata/splits/row-2-set.png
Binary file added core/testdata/splits/row-2.png
Binary file added core/testdata/splits/row-4.png
Binary file added core/testdata/splits/tiles-column-span-first.png
Binary file added core/testdata/splits/tiles-column-span-second.png
Binary file added core/testdata/splits/tiles-row-span-first-set.png
Binary file added core/testdata/splits/tiles-row-span-first.png
Binary file added core/testdata/splits/tiles-row-span-plus.png
Binary file added core/testdata/splits/tiles-row-span-second.png
Binary file added core/testdata/style/parent-units.png
Binary file added core/testdata/svg/basic.png
Binary file added core/testdata/svg/size.png
Binary file added core/testdata/svg/string.png
Binary file added core/testdata/svg/zoom.png
Binary file added core/testdata/switch/basic.png
Binary file added core/testdata/switch/change.png
Binary file added core/testdata/switch/checkbox.png
Binary file added core/testdata/switch/chip-checked.png
Binary file added core/testdata/switch/chip.png
Binary file added core/testdata/switch/radio-button.png
Binary file added core/testdata/switch/text.png
Binary file added core/testdata/switches/basic.png
Binary file added core/testdata/switches/change.png
Binary file added core/testdata/switches/checkboxes.png
Binary file added core/testdata/switches/chips.png
Binary file added core/testdata/switches/items.png
Binary file added core/testdata/switches/mutex.png
Binary file added core/testdata/switches/radio-buttons.png
Binary file added core/testdata/switches/segmented-buttons.png
Binary file added core/testdata/table/basic.png
Binary file added core/testdata/table/read-only.png
Binary file added core/testdata/tabs/basic.png
Binary file added core/testdata/tabs/click.png
Binary file added core/testdata/tabs/functional.png
Binary file added core/testdata/tabs/icons.png
Binary file added core/testdata/tabs/many.png
Binary file added core/testdata/tabs/navigation.png
Binary file added core/testdata/tabs/new-click.png
Binary file added core/testdata/tabs/new.png
Binary file added core/testdata/tabs/widgets.png
Binary file added core/testdata/text-field/basic.png
Binary file added core/testdata/text-field/change.png
Binary file added core/testdata/text-field/clear-click.png
Binary file added core/testdata/text-field/clear.png
Binary file added core/testdata/text-field/icons.png
Binary file added core/testdata/text-field/input.png
Binary file added core/testdata/text-field/outlined.png
Binary file added core/testdata/text-field/overflow.png
Binary file added core/testdata/text-field/password-click.png
Binary file added core/testdata/text-field/password.png
Binary file added core/testdata/text-field/placeholder.png
Binary file added core/testdata/text-field/text.png
Binary file added core/testdata/text-field/validator-invalid.png
Binary file added core/testdata/text-field/validator-valid.png
Binary file added core/testdata/text/decoration/overline-italic.png
Binary file added core/testdata/text/decoration/overline-normal.png
Binary file added core/testdata/text/decoration/underline-italic.png
Binary file added core/testdata/text/decoration/underline-normal.png
Binary file added core/testdata/text/link.png
Binary file added core/testdata/text/rem.png
Binary file added core/testdata/text/type/body-large.png
Binary file added core/testdata/text/type/body-medium.png
Binary file added core/testdata/text/type/body-small.png
Binary file added core/testdata/text/type/display-large.png
Binary file added core/testdata/text/type/display-medium.png
Binary file added core/testdata/text/type/display-small.png
Binary file added core/testdata/text/type/headline-large.png
Binary file added core/testdata/text/type/headline-medium.png
Binary file added core/testdata/text/type/headline-small.png
Binary file added core/testdata/text/type/label-large.png
Binary file added core/testdata/text/type/label-medium.png
Binary file added core/testdata/text/type/label-small.png
Binary file added core/testdata/text/type/supporting.png
Binary file added core/testdata/text/type/title-large.png
Binary file added core/testdata/text/type/title-medium.png
Binary file added core/testdata/text/type/title-small.png
Binary file added core/testdata/time-input/basic.png
Binary file added core/testdata/time-input/date.png
Binary file added core/testdata/time-input/time.png
Binary file added core/testdata/tree/basic.png
Binary file added core/testdata/tree/read-only.png
Binary file added core/testdata/valuer/bitflag.png
Binary file added core/testdata/valuer/bool.png
Binary file added core/testdata/valuer/byte-slice.png
Binary file added core/testdata/valuer/checkbox.png
Loading