Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. TESTS = t1.aspx t2.aspx t3.aspx t4.aspx t5.aspx t6.aspx t7.aspx
  2. TESTS2 = c1.aspx c2.aspx c3.aspx
  3. #SERVER=quack
  4. SERVER=lalo-office.boston.ximian.com
  5. all: rtest.exe ctest.exe test
  6. rtest.exe: rtest.cs
  7. mcs rtest.cs
  8. ctest.exe: ctest.cs
  9. mcs ctest.cs
  10. copy:
  11. for i in $(TESTS) $(TESTS2); do cp $$i /q/web; done
  12. test: local compare
  13. compare:
  14. @for i in $(TESTS) $(TESTS2); do \
  15. if cmp $$i.expected $$i.result; then echo OK; else echo FAILED; exit 1; fi; \
  16. if test -f $$i.oexpected; then \
  17. if cmp $$i.oexpected $$i.oresult; then echo OK; else echo FAILED; exit 1; fi; fi \
  18. done
  19. local:
  20. @for i in $(TESTS); do \
  21. echo running test $$i; \
  22. mono rtest.exe localhost 8080 /$$i > $$i.result; \
  23. mono ctest.exe localhost 8080 /$$i > $$i.oresult; \
  24. done
  25. @for i in $(TESTS2); do \
  26. echo running test $$i; \
  27. mono rtest.exe -header Cache-Control: localhost 8080 /$$i > $$i.result; \
  28. done
  29. tw:
  30. @for i in $(TESTS); do \
  31. echo running test $$i; \
  32. mono rtest.exe $(SERVER) 80 /test/$$i > $$i.expected; \
  33. mono ctest.exe $(SERVER) 80 /test/$$i > $$i.oexpected; \
  34. done
  35. @for i in $(TESTS2); do \
  36. echo running test $$i; \
  37. mono rtest.exe -header Cache-Control: $(SERVER) 80 /test/$$i > $$i.expected; \
  38. done