Showing the changes to python/bench-test (1 of 8 files). Show all
Unified · Split
| @@ -0,0 +1,13 @@ | ||
| 1 | +#! /usr/bin/python | |
| 2 | + | |
| 3 | +from aubio.bench.node import * | |
| 4 | + | |
| 5 | +datapath = '/var/www' | |
| 6 | +respath = '/var/tmp' | |
| 7 | + | |
| 8 | +def my_print(input,output): | |
| 9 | + cmd = "%s %s %s" % ("time sleep 0.3; echo",input,output) | |
| 10 | + return runcommand(cmd,debug=0) | |
| 11 | + | |
| 12 | +act_on_results(mkdir,datapath,respath,filter='d') | |
| 13 | +act_on_data(my_print,datapath,respath,suffix='.txt') | |