python3.14-Cython/tests/smoke/runtest.sh
Tomáš Hrnčiar 88b804c3f8 Convert from Fedora for the Python 3.14 stack in RHEL
Fedora contributions by:
    Alex Cobb <alex.cobb@smart.mit.edu>
    Benjamin A. Beasley <code@musicinmybrain.net>
    Bill Nottingham <notting@fedoraproject.org>
    Charalampos Stratakis <cstratak@redhat.com>
    David Malcolm <dmalcolm@redhat.com>
    Dennis Gilmore <dennis@ausil.us>
    Gwyn Ciesla <gwync@protonmail.com>
    Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com>
    Igor Gnatenko <i.gnatenko.brain@gmail.com>
    Jesse Keating <jkeating@fedoraproject.org>
    José Matos <jamatos[AT]fc.up.pt>
    Karolina Surma <ksurma@redhat.com>
    Kevin Fenzi <kevin@fedoraproject.org>
    Lumír Balhar <lbalhar@redhat.com>
    Marcel Plch <mplch@redhat.com>
    Miro Hrončok <mhroncok@redhat.com>
    Neal Becker <ndbecker2@gmail.com>
    Orion Poplawski <orion@cora.nwra.com>
    Peter Robinson <pbrobinson@fedoraproject.org>
    Petr Viktorin <pviktori@redhat.com>
    Robert Kuska <rkuska@redhat.com>
    Sandro <devel@penguinpee.nl>
    Scott Talbert <swt@techie.net>
    serge-sans-paille <sguelton@redhat.com>
    sguelton@redhat.com
    Thomas Spura <tomspur@fedoraproject.org>
    Tomáš Hrnčiar <thrnciar@redhat.com>
    Toshio くらとみ <toshio@fedoraproject.org>
    Yaakov Selkowitz <yselkowi@redhat.com>
2025-11-28 10:45:50 +01:00

42 lines
1.5 KiB
Bash
Executable File

#!/bin/bash
# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# runtest.sh of /CoreOS/Cython/Sanity/smoke
# Description: smoke test
# Author: Jan Kepler <jkepler@redhat.com>
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# Copyright (c) 2017 Red Hat, Inc.
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied
# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
# PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
#
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Include Beaker environment
. /usr/share/beakerlib/beakerlib.sh || exit 1
set -o pipefail
PYTHON="${PYTHON:-python3.14}"
rlJournalStart
rlPhaseStartTest
rlRun "$PYTHON setup.py build_ext --inplace" 0 "Building Cython file"
rlRun "$PYTHON -c 'import helloworld' | tee output.log" 0 "Running Cython file"
rlAssertGrep "Hello World" "output.log"
rlPhaseEnd
rlJournalPrintText
rlJournalEnd