mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-08 04:04:53 +02:00
Added travis.yml file, added simple test for modlists
This commit is contained in:
parent
8535bf59f6
commit
ed71358a17
9
.travis.yml
Normal file
9
.travis.yml
Normal file
@ -0,0 +1,9 @@
|
||||
language: go
|
||||
go:
|
||||
- 1.4.3
|
||||
- 1.5.4
|
||||
- release
|
||||
- tip
|
||||
|
||||
script:
|
||||
- go test -v ./...
|
20
mods_test.go
Normal file
20
mods_test.go
Normal file
@ -0,0 +1,20 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
var (
|
||||
modDir = "/home/mitch/bin/factorio/mods"
|
||||
)
|
||||
|
||||
func TestListInstalledMods(t *testing.T) {
|
||||
result, err := listInstalledMods(modDir)
|
||||
if err != nil {
|
||||
t.Errorf("Error listing mods test: %s", err)
|
||||
}
|
||||
if len(result) < 1 {
|
||||
fmt.Println("No Mods installed")
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user