test: rmwprog: support command-line argument
authorBrian Norris <banorris@uci.edu>
Tue, 22 Jan 2013 19:08:06 +0000 (11:08 -0800)
committerBrian Norris <banorris@uci.edu>
Tue, 22 Jan 2013 19:08:06 +0000 (11:08 -0800)
commit92db01802459e4913d32683c27e8b5cea2d9c2b2
tree74b464dd183edd04794533feab78b77e7713e10e
parenteb1426f85d917dff60bc087d0af04900caae9a29
test: rmwprog: support command-line argument

This test can easily be extended to allow more than 2 atomic increments
per thread. For instance, it's interesting to see the model-checker
behavior for 4 increments per thread. Now, you can do this with a simple
numeric command-line argument that gets passed to the user program.

Example - run rmwprog with 4 increments per thread, viewing the
execution traces verbosely:

  ./run.sh test/rmwprog.o -v -- 4
test/rmwprog.c