tests: Turn fbtest into a gtest and move it to src/base.
[gem5.git] / src / base / SConscript
index ffad1929ad69865055fdc9b9fc2c76d94833fa95..d1c4a14bf0120c92b693266659be7d267cf3f2c4 100644 (file)
 
 Import('*')
 
-Source('annotate.cc')
+if env['CP_ANNOTATE']:
+    SimObject('CPA.py')
+    Source('cp_annotate.cc')
+SimObject('Graphics.py')
 Source('atomicio.cc')
+Source('bitfield.cc')
 Source('bigint.cc')
-Source('circlebuf.cc')
-Source('cprintf.cc')
-Source('crc.cc')
+Source('imgwriter.cc')
+Source('bmpwriter.cc')
+Source('callback.cc')
+Source('cprintf.cc', add_tags='gtest lib')
+GTest('cprintftest', 'cprintftest.cc')
 Source('debug.cc')
-Source('fast_alloc.cc')
 if env['USE_FENV']:
     Source('fenv.c')
-Source('fifo_buffer.cc')
+if env['USE_PNG']:
+    Source('pngwriter.cc')
+Source('framebuffer.cc')
 Source('hostinfo.cc')
-Source('hybrid_pred.cc')
 Source('inet.cc')
 Source('inifile.cc')
 Source('intmath.cc')
+Source('logging.cc')
 Source('match.cc')
-Source('misc.cc')
 Source('output.cc')
+Source('pixel.cc')
+GTest('pixeltest', 'pixeltest.cc', 'pixel.cc')
 Source('pollevent.cc')
 Source('random.cc')
-Source('random_mt.cc')
-Source('range.cc')
-Source('remote_gdb.cc')
-Source('sat_counter.cc')
+if env['TARGET_ISA'] != 'null':
+    Source('remote_gdb.cc')
 Source('socket.cc')
 Source('statistics.cc')
 Source('str.cc')
 Source('time.cc')
 Source('trace.cc')
-Source('userinfo.cc')
-
-Source('compression/lzss_compression.cc')
+GTest('trietest', 'trietest.cc')
+Source('types.cc')
 
 Source('loader/aout_object.cc')
+Source('loader/dtb_object.cc')
 Source('loader/ecoff_object.cc')
 Source('loader/elf_object.cc')
 Source('loader/hex_file.cc')
@@ -72,27 +78,27 @@ Source('loader/object_file.cc')
 Source('loader/raw_object.cc')
 Source('loader/symtab.cc')
 
-Source('stats/events.cc')
-Source('stats/output.cc')
 Source('stats/text.cc')
-Source('stats/visit.cc')
 
-if env['USE_MYSQL']:
-    Source('mysql.cc')
-    Source('stats/mysql.cc')
+GTest('bituniontest', 'bituniontest.cc')
 
-TraceFlag('Annotate', "State machine annotation debugging")
-TraceFlag('GDBAcc', "Remote debugger accesses")
-TraceFlag('GDBExtra', "Dump extra information on reads and writes")
-TraceFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
-TraceFlag('GDBRead', "Reads to the remote address space")
-TraceFlag('GDBRecv', "Messages received from the remote application")
-TraceFlag('GDBSend', "Messages sent to the remote application")
-TraceFlag('GDBWrite', "Writes to the remote address space")
-TraceFlag('SQL', "SQL queries sent to the server")
-TraceFlag('StatEvents', "Statistics event tracking")
+DebugFlag('Annotate', "State machine annotation debugging")
+DebugFlag('AnnotateQ', "State machine annotation queue debugging")
+DebugFlag('AnnotateVerbose', "Dump all state machine annotation details")
+DebugFlag('GDBAcc', "Remote debugger accesses")
+DebugFlag('GDBExtra', "Dump extra information on reads and writes")
+DebugFlag('GDBMisc', "Breakpoints, traps, watchpoints, etc.")
+DebugFlag('GDBRead', "Reads to the remote address space")
+DebugFlag('GDBRecv', "Messages received from the remote application")
+DebugFlag('GDBSend', "Messages sent to the remote application")
+DebugFlag('GDBWrite', "Writes to the remote address space")
+DebugFlag('SQL', "SQL queries sent to the server")
+DebugFlag('StatEvents', "Statistics event tracking")
 
 CompoundFlag('GDBAll',
     [ 'GDBMisc', 'GDBAcc', 'GDBRead', 'GDBWrite', 'GDBSend', 'GDBRecv',
       'GDBExtra' ],
     desc="All Remote debugging flags")
+CompoundFlag('AnnotateAll', ['Annotate', 'AnnotateQ', 'AnnotateVerbose'],
+    desc="All Annotation flags")
+