original_docstring: Verify non-default toolchain SDK example build.
docstring: Verify non-default toolchain SDK example build.
docstring_tokens: Verify non - default toolchain SDK example build .
code: def testBuildExamplesVariant(self):
        '''Verify non-default toolchain SDK example build.'''
  
        # Note that --nacl-platform is set to ".".  This is done so that the bots
        # will use the repo's toolchain, instead of a platform-specific one.
        # There are no platform-specific toolchains in the repo.
        self.buildExamplesWithFlags(['--architecture=x86',
                                     '--variant=newlib'])
        self.buildExamplesWithFlags(['--architecture=x86',
                                     '--variant=glibc'])
        print "Test with bogus architectures, variants."
        print "We expect these tests to throw exceptions:"
        self.assertRaises(subprocess.CalledProcessError,
                          self.buildExamplesWithFlags,
                          flags=['--architecture=nosucharch'])
        self.assertRaises(subprocess.CalledProcessError,
                          self.buildExamplesWithFlags,
                          flags=['--variant=nosuchvariant'])
code_tokens: def testBuildExamplesVariant ( self ) : self . buildExamplesWithFlags ( [ '--architecture=x86' , '--variant=newlib' ] ) self . buildExamplesWithFlags ( [ '--architecture=x86' , '--variant=glibc' ] ) print "Test with bogus architectures, variants." print "We expect these tests to throw exceptions:" self . assertRaises ( subprocess . CalledProcessError , self . buildExamplesWithFlags , flags = [ '--architecture=nosucharch' ] ) self . assertRaises ( subprocess . CalledProcessError , self . buildExamplesWithFlags , flags = [ '--variant=nosuchvariant' ] )
short_docstring: Verify non-default toolchain SDK example build.
short_docstring_tokens: Verify non - default toolchain SDK example build .
comment: '''Verify non-default toolchain SDK example build.'''$SEP$# Note that --nacl-platform is set to ".".  This is done so that the bots$SEP$# will use the repo's toolchain, instead of a platform-specific one.$SEP$# There are no platform-specific toolchains in the repo.