/
githubmirror
/
os-python3.9
Обзор
Документация
Войти
/
githubmirror
/
os-python3.9
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
bullseye
debian/tests/module-install-local
33 строки
782 B
Matthias Klose
Imported Debian patch 3.9.2-1
21 мар 2022, 14:03
21 мар 2022, 14:03
96023b3
Код
Авторство
О чём код?
#!/bin/sh cp -a debian/tests/packages "$AUTOPKGTEST_TMP" setUp() { mount -t tmpfs tmpfs /usr/local/lib/python3.9/dist-packages } tearDown() { umount /usr/local/lib/python3.9/dist-packages } testFibPy() { cd "$AUTOPKGTEST_TMP/packages/fibpy" python3.9 setup.py install assertTrue 'Install fibpy in /usr/local' $? cd "$AUTOPKGTEST_TMP" stdout=$(python3.9 -m fibpy 5) assertTrue 'Execute fibpy from a virtualenv' $? assertEquals 'Correct result' 8 "$stdout" } testFibC() { cd "$AUTOPKGTEST_TMP/packages/fibc" python3.9 setup.py install assertTrue 'Install fibc in /usr/local' $? cd "$AUTOPKGTEST_TMP" stdout=$(python3.9 -c 'from fibc import fib; print(fib(5))') assertTrue 'Execute fibc from a virtualenv' $? assertEquals 'Correct result' 8 "$stdout" } . shunit2