AutoSim Developer Documents
The structure of AutoSim is simple and easy to understand. It first parse the command line arguments and specification files supplied. During the parsing the scripts will verify the arguments user provided and it also may verify if all prerequisite is installed or not. During the parsing stage it also would create a list of benchmarks it is going to execute automatically later. Having done all tasks mentioned above it will iteratively kick off the benchmarking, and it also keeps account of how many benchmarks have run and how many of them are failed. The following figure illustrate this process.
Structure of AutoSim.pl
Some Important Global Variables:
| $sim_root_dir, $source_dir and $sim_config_dir | Their value will be assigned at the parsing stage. All variables will contain string to indicate the directory absolute path. | These three variable together can define the directory structure based on which AutoSim works |
| $test_accouts and $test_failed | These variable will hold integer values. It will be updated at the end of each benchmarking during the AutoRun procedure. | Both value are initialized to 0. |
| $auto_spec_file | Its value will be assigned at the parsing stage. The variable contains the path to locate the spec file for the current automated benchmarking. | This variable will tell the AutoSim which specification file to use. |
| @test_cases | It is an array. It is created in the parsing stage according to user's requirements. | This variable holds the list of the benchmarks AutoSim will need to run. |