github.com/replit/upm@v0.0.0-20240423230255-9ce4fc3ea24c/test-suite/install_replit_nix_system_dependencies_test.go (about)

     1  package testSuite
     2  
     3  import (
     4  	"os"
     5  	"testing"
     6  
     7  	testUtils "github.com/replit/upm/test-suite/utils"
     8  )
     9  
    10  func TestInstallReplitNixSystemDependencies(t *testing.T) {
    11  	for _, bt := range languageBackends {
    12  		bt.Start(t)
    13  
    14  		bt.Subtest(bt.Backend.Name, doInstallReplitNixSystemDependencies)
    15  	}
    16  }
    17  
    18  func doInstallReplitNixSystemDependencies(bt testUtils.BackendT) {
    19  	os.Setenv("REPL_HOME", ".")
    20  	for _, tmpl := range standardTemplates {
    21  		bt.Subtest(tmpl, func(bt testUtils.BackendT) {
    22  			bt.UpmInstallReplitNixSystemDependencies()
    23  		})
    24  	}
    25  }