Example #1
0
func TestEGL(t *testing.T) {
	pt.Run(
		t,
		new(testInitEGLSuite),
		new(testCreateEGLContextSuite),
	)
}
Example #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()
	}
}
Example #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()
	}
}
Example #4
0
func TestConsole(t *testing.T) {
	pt.Run(
		t,
		new(consoleTestSuite),
	)
}
Example #5
0
func TestRunner(t *testing.T) {
	prettytest.Run(
		t,
		new(testSuite),
	)
}
func TestRunner(t *testing.T) {
	prettytest.Run(t, new(mySuite))
}
func TestApplication(t *testing.T) {
	pt.Run(t, new(basicTestSuite), new(errorTestSuite))
}
Example #8
0
func TestEGL(t *testing.T) {
	prettytest.Run(
		t,
		new(testSuite),
	)
}
Example #9
0
func TestDatastoreSuite(t *testing.T) {
	prettytest.Run(t, new(datastoreTestSuite))
}
Example #10
0
func TestCompare(t *testing.T) {
	pt.Run(t, new(testSuite))
}