frysk.testbed
Class TestRegs

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by frysk.junit.TestCase
              extended by frysk.testbed.TestLib
                  extended by frysk.testbed.TestRegs
All Implemented Interfaces:
Test

public class TestRegs
extends TestLib

Sanity check of the RegsCase - that everything needed is present.


Field Summary
private  RegsCase regsCase
           
 
Fields inherited from class frysk.testbed.TestLib
host
 
Constructor Summary
TestRegs()
           
 
Method Summary
private  void checkRegisterGroupPresent(RegisterGroup group)
           
private  void checkRegisterGroupPresent(String what)
           
private  byte[] nonzeroBytes(Random random, int size)
          Create a byte array with all elements filled in with random non-zero values.
 void setUp()
          Sets up the fixture, for example, open a network connection.
 void tearDown()
          Tears down the fixture, for example, close a network connection.
 void testFloatRegistersPresent()
           
 void testGeneralRegistersPresent()
          Called by TestRegsCase; to verify that all registers are present; if some are missing it dumps out suggested test values.
 void testValues()
           
 void testValuesAvailable()
          Check that there is a value to test.
 void testVectorRegistersPresent()
           
 
Methods inherited from class frysk.testbed.TestLib
addToTearDown, addToTearDown, assertRunToFindProc, assertRunUntilStop, assertRunUntilStop, getExecPath, isChildOf, isChildOfMine, isDescendantOf, isDescendantOfMine, runPending
 
Methods inherited from class frysk.junit.TestCase
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, getTimeoutMilliseconds, getTimeoutSeconds, missing32or64, unresolved, unresolvedOffUtrace, unresolvedOn32On64, unresolvedOnIA32, unresolvedOnPPC, unresolvedOnUtrace, unresolvedOnx8664, unsupported
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

regsCase

private RegsCase regsCase
Constructor Detail

TestRegs

public TestRegs()
Method Detail

setUp

public void setUp()
Description copied from class: TestCase
Sets up the fixture, for example, open a network connection. This method is called before a test is executed.

Overrides:
setUp in class TestLib

tearDown

public void tearDown()
Description copied from class: TestCase
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.

Overrides:
tearDown in class TestLib

testValuesAvailable

public void testValuesAvailable()
Check that there is a value to test.


nonzeroBytes

private byte[] nonzeroBytes(Random random,
                            int size)
Create a byte array with all elements filled in with random non-zero values.


testValues

public void testValues()

testGeneralRegistersPresent

public void testGeneralRegistersPresent()
Called by TestRegsCase; to verify that all registers are present; if some are missing it dumps out suggested test values.


testFloatRegistersPresent

public void testFloatRegistersPresent()

testVectorRegistersPresent

public void testVectorRegistersPresent()

checkRegisterGroupPresent

private void checkRegisterGroupPresent(String what)

checkRegisterGroupPresent

private void checkRegisterGroupPresent(RegisterGroup group)