From 738e4dd786a422e6c36d5cdd439458dbc81289ed Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Tue, 27 Jan 2009 14:15:57 -0500 Subject: [PATCH] first test implementation for kristina's framework --- tools/dispatcher | 10 ++++++++++ tools/driver-tests/test1.py | 6 ++++++ 2 files changed, 16 insertions(+) create mode 100755 tools/dispatcher create mode 100644 tools/driver-tests/test1.py diff --git a/tools/dispatcher b/tools/dispatcher new file mode 100755 index 000000000..78da233d6 --- /dev/null +++ b/tools/dispatcher @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +pushd .. > /dev/null + +python "tools/driver-tests/${1}.py" +exitval=$? + +echo "exit_code:$exitval" >> $2 + +popd > /dev/null diff --git a/tools/driver-tests/test1.py b/tools/driver-tests/test1.py new file mode 100644 index 000000000..a45c2d6eb --- /dev/null +++ b/tools/driver-tests/test1.py @@ -0,0 +1,6 @@ +from pymongo.connection import Connection + +db = Connection().test1 +db.drop_collection("part1") +for i in range(100): + db.part1.save({"x": i})