Skip to content

Commit 49ce249

Browse files
Aisukomudler
andauthored
feat: Add more test-cases and remove dev container (#433)
Signed-off-by: Aisuko <[email protected]> Co-authored-by: Ettore Di Giacinto <[email protected]>
1 parent f401181 commit 49ce249

File tree

7 files changed

+33
-76
lines changed

7 files changed

+33
-76
lines changed

.devcontainer/Dockerfile

Lines changed: 0 additions & 3 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 0 additions & 46 deletions
This file was deleted.

.devcontainer/docker-compose.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
go-llama
33
gpt4all
44
go-stable-diffusion
5+
go-ggml-transformers
56
go-gpt2
67
go-rwkv
78
whisper.cpp
9+
bloomz
10+
go-bert
811

912
# LocalAI build binary
1013
LocalAI
@@ -15,6 +18,7 @@ local-ai
1518
# Ignore models
1619
models/*
1720
test-models/
21+
test-dir/
1822

1923
release/
2024

.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
],
2626
"env": {
2727
"C_INCLUDE_PATH": "${workspaceFolder}/go-llama:${workspaceFolder}/go-stable-diffusion/:${workspaceFolder}/gpt4all/gpt4all-bindings/golang/:${workspaceFolder}/go-gpt2:${workspaceFolder}/go-rwkv:${workspaceFolder}/whisper.cpp:${workspaceFolder}/go-bert:${workspaceFolder}/bloomz",
28-
"LIBRARY_PATH": "$${workspaceFolder}/go-llama:${workspaceFolder}/go-stable-diffusion/:${workspaceFolder}/gpt4all/gpt4all-bindings/golang/:${workspaceFolder}/go-gpt2:${workspaceFolder}/go-rwkv:${workspaceFolder}/whisper.cpp:${workspaceFolder}/go-bert:${workspaceFolder}/bloomz",
28+
"LIBRARY_PATH": "${workspaceFolder}/go-llama:${workspaceFolder}/go-stable-diffusion/:${workspaceFolder}/gpt4all/gpt4all-bindings/golang/:${workspaceFolder}/go-gpt2:${workspaceFolder}/go-rwkv:${workspaceFolder}/whisper.cpp:${workspaceFolder}/go-bert:${workspaceFolder}/bloomz",
2929
"DEBUG": "true"
3030
}
3131
}

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ prepare: prepare-sources gpt4all/gpt4all-bindings/golang/libgpt4all.a $(OPTIONAL
193193
clean: ## Remove build related file
194194
rm -fr ./go-llama
195195
rm -rf ./gpt4all
196+
rm -rf ./go-gpt2
196197
rm -rf ./go-stable-diffusion
197198
rm -rf ./go-ggml-transformers
198199
rm -rf ./go-rwkv

api/config_test.go

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package api
2+
3+
import (
4+
"os"
5+
6+
. "github.com/onsi/ginkgo/v2"
7+
. "github.com/onsi/gomega"
8+
)
9+
10+
var _ = Describe("Test cases for config related functions", func() {
11+
12+
var (
13+
configFile string
14+
)
15+
16+
Context("Test Read configuration functions", func() {
17+
configFile = os.Getenv("CONFIG_FILE")
18+
It("Test ReadConfigFile", func() {
19+
config, err := ReadConfigFile(configFile)
20+
Expect(err).To(BeNil())
21+
Expect(config).ToNot(BeNil())
22+
// two configs in config.yaml
23+
Expect(len(config)).To(Equal(2))
24+
})
25+
26+
})
27+
})

0 commit comments

Comments
 (0)