| 1 | #!/usr/bin/env bash
 | 
| 2 | #
 | 
| 3 | # Test stdlib dependencies
 | 
| 4 | #
 | 
| 5 | # Usage:
 | 
| 6 | #   test/stdlib.sh <function name>
 | 
| 7 | 
 | 
| 8 | set -o nounset
 | 
| 9 | set -o pipefail
 | 
| 10 | set -o errexit
 | 
| 11 | 
 | 
| 12 | # TODO:
 | 
| 13 | # - Test under CPython (need in-tree build)
 | 
| 14 | # - Under OVM?  How?
 | 
| 15 | # - Under byterun
 | 
| 16 | #   - although I won't use all of every module
 | 
| 17 | 
 | 
| 18 | # Lib/test/regrtest.py gets ImportError?  How are you supposed to run this?
 | 
| 19 | # - I think the out of tree build is fucking things up?    You need an
 | 
| 20 | # in-tree build?
 | 
| 21 | 
 | 
| 22 | oil-deps() {
 | 
| 23 |   grep Python _build/oil/opy-app-deps.txt
 | 
| 24 | }
 | 
| 25 | 
 | 
| 26 | opy-deps() {
 | 
| 27 |   #make _bin/opy.ovm
 | 
| 28 |   grep Python _build/opy/opy-app-deps.txt
 | 
| 29 |   #grep Python _build/opy/app-deps-cpython.txt
 | 
| 30 | }
 | 
| 31 | 
 | 
| 32 | "$@"
 |