1f08c3bdfSopenharmony_ci#!/usr/bin/env python3 2f08c3bdfSopenharmony_ci''' 3f08c3bdfSopenharmony_ci Access Control Lists testing based on newpynfs framework 4f08c3bdfSopenharmony_ci Aurelien Charbon - Bull SA 5f08c3bdfSopenharmony_ci''' 6f08c3bdfSopenharmony_ci 7f08c3bdfSopenharmony_cifrom random_gen import * 8f08c3bdfSopenharmony_cifrom optparse import OptionParser 9f08c3bdfSopenharmony_ci 10f08c3bdfSopenharmony_ciparser = OptionParser() 11f08c3bdfSopenharmony_ciparser.add_option("-u", "--users", dest="nu",type="int",help="number of users to create") 12f08c3bdfSopenharmony_ciparser.add_option("-g", "--group",dest="ng",type="int",help="number of groups to create") 13f08c3bdfSopenharmony_ci 14f08c3bdfSopenharmony_ci(options, args) = parser.parse_args() 15f08c3bdfSopenharmony_ci 16f08c3bdfSopenharmony_ci''' Measuring time to add an ACE to a list regarding the number of ACE already in the list''' 17f08c3bdfSopenharmony_ci''' Doing the measurement on 100 files ''' 18f08c3bdfSopenharmony_citest=RandomGen() 19f08c3bdfSopenharmony_citest.createNGroup(options.ng) 20f08c3bdfSopenharmony_citest.getGroupList() 21f08c3bdfSopenharmony_citest.createNUser(options.nu) 22