Figure 2: A session with CodeSketch
$ CodeSketch -copyright "Copyright (C) 2002, BigCorporation"
-open_source -author "Alfred B. Constantine" -initials ABC
-class PressureSensor -char_driver -os linux
[output deleted to save space]
$ rm *
$ alias create_code= 'CodeSketch -copyright
"Copyright (C) 2002, BigCorporation" -open_source
-author "Alfred B. Constantine" -initials ABC -class '
$ create_code PressureSensor -char -os linux
Created ./PressureSensor.c
Created ./BuildPressureSensor.bash
Created ./CommonBuildRoutines.bash
Created ./StandardCodeSketchCommands.h
Created ./makefile
$ make
if [ ! -x BuildPressureSensor.bash ];
then chmod u+x BuildPressureSensor.bash; fi
if [ ! -d LINUX_X86 ]; then mkdir LINUX_X86;fi
./BuildPressureSensor.bash -tidy
Performing a clean build of the following drivers: PressureSensor
Compiling PressureSensor.c ...
Linking LINUX_X86/PressureSensor.drv...
Removing intermediate files, because you specified -tidy...
$ mkdir Testing; cd Testing
$ create_code "DeflectionTest LatencyTest AccuracyTest"
-namespace pressure_testing -base_filename PressureTestSuite
Created ./PressureTestSuite.h
Created ./PressureTestSuite.cpp
Created ./PressureTestSuite.icc
Created ./PressureTestSuite_UnitTest.cpp
Created ./makefile
$ make --silent local_test
Building LINUX_X86/PressureTestSuite.o ...
Building LINUX_X86/PressureTestSuite_UnitTest.o ...
Linking LINUX_X86/PressureTestSuite_UnitTest ...
Building for the LINUX_X86 platform...
DeflectionTest diagnostics dump.
LatencyTest diagnostics dump.
AccuracyTest diagnostics dump.