frysk.sys.proc
Class TestAuxv

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by frysk.junit.TestCase
              extended by frysk.sys.proc.TestAuxv
All Implemented Interfaces:
Test

public class TestAuxv
extends TestCase

Test the AuxvBuilder against a predefined set of auxv buffers. The test buffers are obtained by running, and than massaging, the output from prog/print/auxv


Nested Class Summary
(package private) static class TestAuxv.Auxiliary
           
 
Constructor Summary
TestAuxv()
           
 
Method Summary
private  void check(int wordSize, boolean bigEndian, TestAuxv.Auxiliary[] vec, byte[] auxv)
          Verify that the unpacked auxv matches expected.
 void testAMD64()
          Check that an AUXV taken from an AMD64 (AMD Opteron(tm) Processor 846) can be parsed.
 void testIA32()
          Check that an AUXV taken from an IA-32 (Intel(R) Pentium(R) M processor 1.10GHz) machine can be parsed.
 void testIA64()
          Check that the AUXV from an IA-64 (Itanium 2) can be parsed.
 void testNative()
           
 void testPPC32()
          Check that an AUXV taken from a 32-bit PowerPC program running on a 64-bit PowerPC machine (PPC970, altivec supported) can be parsed.
 void testPPC64()
          Check that an AUXV taken from a 64-bit PowerPC program running on a 64-bit PowerPC machine (PPC970, altivec supported) can be parsed.
 
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, setUp, tearDown, 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
 

Constructor Detail

TestAuxv

public TestAuxv()
Method Detail

check

private void check(int wordSize,
                   boolean bigEndian,
                   TestAuxv.Auxiliary[] vec,
                   byte[] auxv)
Verify that the unpacked auxv matches expected.


testIA32

public void testIA32()
Check that an AUXV taken from an IA-32 (Intel(R) Pentium(R) M processor 1.10GHz) machine can be parsed.


testAMD64

public void testAMD64()
Check that an AUXV taken from an AMD64 (AMD Opteron(tm) Processor 846) can be parsed.


testIA64

public void testIA64()
Check that the AUXV from an IA-64 (Itanium 2) can be parsed.


testPPC32

public void testPPC32()
Check that an AUXV taken from a 32-bit PowerPC program running on a 64-bit PowerPC machine (PPC970, altivec supported) can be parsed.


testPPC64

public void testPPC64()
Check that an AUXV taken from a 64-bit PowerPC program running on a 64-bit PowerPC machine (PPC970, altivec supported) can be parsed.


testNative

public void testNative()