Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/GAP/pkg/wpe/dev/tests_gen/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 21.9.2024 mit Größe 860 B image not shown  

Quelle  genTests.py   Sprache: Python

 
import sys
import os
import shutil
from subprocess import Popen, PIPE, STDOUT, TimeoutExpired

https://stackoverflow.com/questions/287871/how-to-print-colored-text-to-the-terminal
class bcolors:
    FAIL = '\033[91m'
    ENDC = '\033[0m'

# optional argument GAP path
GAP = '/bin/gap.sh'
if sys.argv[1:]:
    GAP = sys.argv[1]

MEMORY = '3G'

for ROOT in ['centraliser''conjugacyClasses''cycleIndexPA''cycleIndexIA'] :

    print('Working in %s' % ROOT)

    OUT = ROOT+'/out'
    if os.path.exists(OUT):
        shutil.rmtree(OUT)

    os.mkdir(OUT)

    pop = Popen([GAP, '-q''-o', MEMORY, 'generate.g'], cwd = ROOT, stdin=PIPE, stdout=PIPE, stderr=STDOUT,encoding='utf8')
    pop.communicate()
    for FILE in [f for f in os.listdir(OUT) if os.path.isfile(os.path.join(OUT, f))] :
        shutil.copyfile(OUT+'/'+FILE, '../../tst/files/gen/'+FILE)

Messung V0.5
C=93 H=97 G=94

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© 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.