Пример #1
0
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
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))
}