#
# Regression tester for SRC.
#
-trap "rm -f testfile*" 0 1 2 15
+trap "rm -f testfile* .src/testfile*" 0 1 2 15
check() {
case $? in
# Catches dumb and obvious case of code having a Python syntax error
src >>/dev/null 2>&1
-check "smoketest"
+check "smoke test"
cat >testfile$$ <<EOF
Now is the time
EOF
+src add testfile$$ >/dev/null
+check "add"
+
+src commit -m "First comment" >/dev/null
+check "commit"
+
# end