From b480bbd8c1548984c805c1e03295efaa98c6caf8 Mon Sep 17 00:00:00 2001 From: Jan Staněk Date: Jun 20 2019 15:12:32 +0000 Subject: Run doctests in requirement generator --- diff --git a/.gitignore b/.gitignore index 0572610..b867f40 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,8 @@ +__pycache__/ +*.pyc + +nodejs_req.py + test/*/package.json test/*/nodejs.prov.err test/*/nodejs.prov.out diff --git a/test/run b/test/run index cc2af26..6afb356 100755 --- a/test/run +++ b/test/run @@ -1,5 +1,9 @@ #!/bin/sh +ln -sf nodejs.req nodejs_req.py +"$(command -v python2 || echo :)" -m doctest nodejs_req.py || exit 1 +"$(command -v python3 || echo :)" -m doctest nodejs_req.py || exit 1 + for test in unbundled bundled do sed -e "s|//.*$||" < test/$test/package.json.in > test/$test/package.json