Some of the other answers have alluded or mentioned this fact but it is important enough that it bears foregrounding with an answer. Whether or not your university has rules about this in its guidelines for student conduct, you are almost certainly violating copyright by redistributing course material without permission and there are civil and criminal penalties for doing so.
Copyright gives the exclusive right of distribution to the authors of creative works in almost every country on earth. As a result, copyright will almost always apply to tests, homework assignments, syllabuses, slides, and other course materials. The owners, depending on the situation, may be the institution, the professor, or a third party that has licensed content. In any case, unless you have a license to redistribute course material, you cannot do so without putting yourself at risk of civil, and possibly even criminal, penalties.