Home | History | Annotate | Download | only in test
      1 #!/usr/bin/python2
      2 """Check to see if the working set produces a good executable."""
      3 
      4 from __future__ import print_function
      5 
      6 import os
      7 import sys
      8 
      9 import common
     10 
     11 
     12 def Main():
     13   if not os.path.exists('./is_setup'):
     14     return 1
     15   working_set = common.ReadWorkingSet()
     16   for w in working_set:
     17     if w == 1:
     18       return 1  ## False, linking failure
     19   return 0
     20 
     21 
     22 if __name__ == '__main__':
     23   retval = Main()
     24   sys.exit(retval)
     25