Skip to content

Commit

Permalink
Initial e2e test for R language environment (#1342)
Browse files Browse the repository at this point in the history
* Support installing R environment in DEB822 format

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* Support installing R environment in DEB822 format

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* Support installing R environment in DEB822 format

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* Support installing R environment in DEB822 format

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* Temporarily removed return error from installRLang

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* Append to apt.conf

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* Move apt configuration to a separate file /etc/apt/apt.conf.d/DEB822.conf

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* Add comments and change some typos

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* Adjust comments

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* Adjust comments

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* Fix typo

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* Change to const

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* Change to const

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* Change internal message when install R environment

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* Add e2e test for R language environment

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* Format rlang/build.envd

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* remove incorrect user-switching

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* Discard the changes in main

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* add install.r_packages()

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* update e2e test

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* update e2e test

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* update e2e test

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

* switched to small library for e2e test

Signed-off-by: Botong Ou <richard97@g.ucla.edu>

Signed-off-by: Botong Ou <richard97@g.ucla.edu>
  • Loading branch information
oubotong committed Jan 9, 2023
1 parent 3f7d699 commit b4c08c8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
18 changes: 18 additions & 0 deletions e2e/v1/language/rlang_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package language

import (
. "github.com/onsi/ginkgo/v2"

e2e "github.com/tensorchord/envd/e2e/v1"
)

var _ = Describe("rlang", Ordered, func() {
It("Should build rlang environment successfully", func() {
exampleName := "rlang"
testcase := "e2e"
e := e2e.NewExample(e2e.BuildContextDirWithName(exampleName), testcase)
e.BuildImage(true)()
e.RunContainer()()
e.DestroyContainer()()
})
})
7 changes: 7 additions & 0 deletions e2e/v1/language/testdata/rlang/build.envd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# syntax=v1


def build():
base(dev=True)
install.r_lang()
install.r_packages(name=["drat"])

0 comments on commit b4c08c8

Please sign in to comment.