Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 


Quelle  check-libstdc++.py   Sprache: Python

 
#!/usr/bin/env python3

import sys, os, shutil, subprocess

os.chdir (os.getenv ('srcdir', os.path.dirname (__file__)))

libs = os.getenv ('libs''.libs')

ldd = os.getenv ('LDD', shutil.which ('ldd'))
if not ldd:
 otool = os.getenv ('OTOOL', shutil.which ('otool'))
 if otool:
  ldd = otool + ' -L'
 else:
  print ('check-libstdc++.py: \'ldd\' not found; skipping test')
  sys.exit (77)

stat = 0
tested = False

# harfbuzz-icu links to libstdc++ because icu does.
for soname in ['harfbuzz''harfbuzz-subset''harfbuzz-gobject''harfbuzz-cairo']:
 for suffix in ['so''dylib']:
  so = os.path.join (libs, 'lib%s.%s' % (soname, suffix))
  if not os.path.exists (so): continue

  print ('Checking that we are not linking to libstdc++ or libc++ in %s' % so)
  ldd_result = subprocess.check_output (ldd.split() + [so])
  if (b'libstdc++' in ldd_result) or (b'libc++' in ldd_result):
   print ('Ouch, %s is linked to libstdc++ or libc++' % so)
   stat = 1

  tested = True

if not tested:
 print ('check-libstdc++.py: libharfbuzz shared library not found; skipping test')
 sys.exit (77)

sys.exit (stat)

Messung V0.5
C=86 H=100 G=93

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge