2015-09-20 01:47:04 +00:00
|
|
|
package executor
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2015-09-25 23:49:14 +00:00
|
|
|
|
|
|
|
ctestutil "github.com/hashicorp/nomad/client/testutil"
|
2015-11-25 19:05:08 +00:00
|
|
|
"github.com/hashicorp/nomad/helper/testtask"
|
2015-09-20 01:47:04 +00:00
|
|
|
)
|
|
|
|
|
2015-11-25 19:05:08 +00:00
|
|
|
func init() {
|
|
|
|
// Add test binary to chroot during test run.
|
|
|
|
chrootEnv[testtask.Path()] = testtask.Path()
|
|
|
|
}
|
|
|
|
|
2015-11-05 17:58:57 +00:00
|
|
|
func TestExecutorLinux(t *testing.T) {
|
2015-11-24 20:12:31 +00:00
|
|
|
t.Parallel()
|
2015-11-05 17:58:57 +00:00
|
|
|
testExecutor(t, NewLinuxExecutor, ctestutil.ExecCompatible)
|
2015-09-20 01:47:04 +00:00
|
|
|
}
|