Permalink
Browse files

Add method for running tests which do not have a final csv output

  • Loading branch information...
anjakefala committed Nov 10, 2017
1 parent a91d09c commit 81ecfce64364e5d129917ed356b8e1b60048fb95
Showing with 32 additions and 1 deletion.
  1. +6 −1 test.sh
  2. +10 −0 testdiff.sh
  3. 0 tests/{graph-sincos.vd → graph-sincos-notest.vd}
  4. +16 −0 tests/quantum-sum-notest.vd
View
@@ -4,7 +4,12 @@
for i in tests/*.vd ; do
echo "--- $i"
outbase=${i##tests/}
PYTHONPATH=. bin/vd --confirm-overwrite=False --play $i --batch --output tests/golden/${outbase%.vd}.tsv
if [ "${i%-notest.vd}-notest" == "${i%.vd}" ]
then
PYTHONPATH=. bin/vd --play $i --batch
else
PYTHONPATH=. bin/vd --confirm-overwrite=False --play $i --batch --output tests/golden/${outbase%.vd}.tsv
fi
done
echo '=== git diffs ==='
git --no-pager diff --exit-code --numstat tests/
View
@@ -0,0 +1,10 @@
#!/bin/bash
for fn in tests/*.vd ; do
if [ "${fn%-notest.vd}-notest" != "${fn%.vd}" ]
then
fna=${fn##tests/}
tsvfn=tests/golden/${fna%.vd}.tsv
git show HEAD^:$tsvfn | bin/vd --diff $tsvfn
fi
done
File renamed without changes.
@@ -0,0 +1,16 @@
sheet col row keystrokes input comment
A 1 open new blank sheet with number columns
unnamed 0 0 ga 100000 add N blank rows
unnamed 0 0 = random.random() create new column from Python expression, with column names as variables
unnamed 0 0 % set type of current column to float
unnamed random.random() 0 % set type of current column to float
unnamed random.random() 1 ^ x edit name of current column
unnamed x 1 = int(x*6+1) create new column from Python expression, with column names as variables
unnamed x 1 - hide current column (to unhide go to Columns sheet and edit its width)
unnamed int(x*6+1) 1 ^ d6 edit name of current column
unnamed 0 = random.choice(string.ascii_uppercase) create new column from Python expression, with column names as variables
unnamed random.choice(string.ascii_uppercase) 0 _ adjust width of current column
unnamed d6 0 + sum add aggregator to the current column
unnamed random.choice(string.ascii_uppercase) 0 F open Frequency Table grouped on current column
unnamed_random.choice(string.ascii_uppercase)_freq random.choice(string.ascii_uppercase) 0 ] sort descending by current column
unnamed_random.choice(string.ascii_uppercase)_freq random.choice(string.ascii_uppercase) 0 [ sort ascending by current column

0 comments on commit 81ecfce

Please sign in to comment.