示例#1
0
文件: egl_test.go 项目: remogatto/egl
func TestEGL(t *testing.T) {
	pt.Run(
		t,
		new(testInitEGLSuite),
		new(testCreateEGLContextSuite),
	)
}
示例#2
0
func main() {
	runtime.LockOSThread()
	defer runtime.UnlockOSThread()
	defer glfw.Terminate()

	mandala.Verbose = true

	if !glfw.Init() {
		panic("Can't init glfw!")
	}

	// Enable OpenGL ES 2.0.
	glfw.WindowHint(glfw.ClientApi, glfw.OpenglEsApi)
	glfw.WindowHint(glfw.ContextVersionMajor, 2)
	window, err := glfw.CreateWindow(Width, Height, "gltext black-box testing", nil, nil)
	if err != nil {
		panic(err)
	}

	glfw.SwapInterval(0)
	mandala.Init(window)

	go prettytest.Run(new(testing.T), testlib.NewTestSuite(outputPath))

	for !window.ShouldClose() {
		glfw.WaitEvents()
	}
}
示例#3
0
文件: runner.go 项目: kebo/gorgasm
func main() {
	runtime.LockOSThread()
	defer runtime.UnlockOSThread()
	defer glfw.Terminate()

	gorgasm.Verbose = true

	if !glfw.Init() {
		panic("Can't init glfw!")
	}

	// Enable OpenGL ES 2.0.
	glfw.WindowHint(glfw.ClientApi, glfw.OpenglEsApi)
	glfw.WindowHint(glfw.ContextVersionMajor, 2)
	window, err := glfw.CreateWindow(testlib.Width, testlib.Height, "Gorgasm Test", nil, nil)
	if err != nil {
		panic(err)
	}

	gorgasm.Init(window)

	go prettytest.Run(new(testing.T), testlib.NewTestSuite())

	for !window.ShouldClose() {
		glfw.WaitEvents()
	}
}
示例#4
0
func TestConsole(t *testing.T) {
	pt.Run(
		t,
		new(consoleTestSuite),
	)
}
示例#5
0
func TestRunner(t *testing.T) {
	prettytest.Run(
		t,
		new(testSuite),
	)
}
func TestRunner(t *testing.T) {
	prettytest.Run(t, new(mySuite))
}
示例#7
0
func TestApplication(t *testing.T) {
	pt.Run(t, new(basicTestSuite), new(errorTestSuite))
}
示例#8
0
func TestEGL(t *testing.T) {
	prettytest.Run(
		t,
		new(testSuite),
	)
}
示例#9
0
func TestDatastoreSuite(t *testing.T) {
	prettytest.Run(t, new(datastoreTestSuite))
}
示例#10
0
func TestCompare(t *testing.T) {
	pt.Run(t, new(testSuite))
}