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