I'm not sure how this could be done with a software program, you'd basically need a midi interface for your bass that would compare what you were playing to the score. I've used software like auralia or practica musica where it will play a rhythmic phrase and you have to notate it correctly, but the other way around is not so easy...
I'd recommend getting a metronome and a book with some challenging rhythms. If you're up to it check out Anthony Vitti's
Sight Reading Funk Rhythms for Bass.