add atest to auto pick a project and test

This commit is contained in:
Tyrel Souza 2017-02-03 15:52:34 -05:00
parent 11b56f4fd5
commit 645ec935cd
No known key found for this signature in database
GPG Key ID: 2EECB5087209E6A5
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
function atest
set a_test (echo $argv | sed -e 's/\//\./g' | sed -e 's/.py//g')
set a_project (echo -n $a_test | python -c "import sys; print sys.stdin.read().split('.', 1)[0]");
set run_test (echo "bin/manage_"$a_project".py test "$a_test)
echo $run_test
eval $run_test
end