{
unsigned int i;
+ /* were we ran via the test framework? */
+ if (argc < 2 || strcmp(argv[1], "__test") != 0)
+ return rumprun_test(argc, argv);
+
/*
* XXX: need a better way to determine disk device!
* e.g. rumpconfig (which has currently not been
*/
printf("=== FOE RUMPRUN 12345 TES-TER 54321 ===\n");
atexit(logexit);
- logrv = rumprun_test(argc, argv);
+ logrv = rumprun_test(argc+1, argv-1);
printf("=== RUMPRUN 12345 TES-TER 54321 EOF ===\n");
exit(logrv);
# img2=$3
[ -n "${img1}" ] || die runtest without a disk image
- cookie=$(${RUMPRUN} ${STACK} ${OPT_SUDO} -b ${img1} ${testprog})
+ cookie=$(${RUMPRUN} ${STACK} ${OPT_SUDO} -b ${img1} ${testprog} __test)
if [ $? -ne 0 -o -z "${cookie}" ]; then
TEST_RESULT=ERROR
TEST_ECODE=-2